// JavaScript Document

function menuCurrentPage(cl,d){
	var i,ob,tA,tL,h=document.location.href.toLowerCase();
	if(document.getElementById)
	{
		ob=(d)?document.getElementById(d):document;
		if(ob)
		{
			tA=ob.getElementsByTagName('A');
			tL=ob.getElementsByTagName('LI');
			for(i=0;i<tA.length;i++)
			{
				if(tA[i].href.toLowerCase()==h){
					tA[i].className=cl;
					if(tL[i].className=="sub2")
					{
						for(j=i;j>0;j--)
						{
							if(tL[j].className=="sub1")
							{
								tA[j].className=cl;	
								break;
							}
						}
					}
				}
			}
		}
	}
}

function popUp(URL, width, height) {
     day = new Date();
     id = day.getTime();
     eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=' + width +',height=' + height + ',left = 0,top = 0');");
}
            
