var _history = new Array();
    _history[0] = "homeM";
var _hist_Count = 0;

dynam_loadJs('home'); 
history('homeM');

function hide(lObj)
{
	lObj.style.display = 'none';
}

function show(lObj)
{
	lObj.style.display = 'block';
}

function dynam_loadJs(lName)
{
  var fileref = document.createElement('script');
      fileref.setAttribute("type","text/javascript");
      fileref.setAttribute("src",'includes//' + lName + '.js');
	  
  if (typeof fileref!="undefined")
  	document.getElementsByTagName("head")[0].appendChild(fileref);
}

function history(sPage)
{
		pntCurrPage(_history[_hist_Count], sPage);
		_history[++_hist_Count] = sPage;
}

function pntCurrPage(sCPage, sFPage)
{
	var cPage = document.getElementById(sCPage);
	cPage.className = cPage.className.replace('current_page_item', '');
	cPage.className = cPage.className.replace('current_page_parent', '');
	document.getElementById(sFPage).className += ' current_page_item current_page_parent';
}
