﻿var isIE4 = false;
MM_reloadPage(true);
expireDate = new Date

// Browser Stuff
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

function setCookie(params) 
{
	document.cookie = "res="+params
}

function CheckBrowser() 
	{ 
		if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) >= 4) { isIE4 = true; }
	}

function mOvr(src,clrOver)
	{ 
		if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; src.children.tags('A')[0].style.color = '#ffffff';}
	}

function mOut(src,clrIn) 
	{ 
		if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn;  src.children.tags('A')[0].style.color = '#ffffff';}
	}

function mClk(src) 
	{ 
		if(event.srcElement.tagName=='TD'){src.children.tags('A')[0].click();} 
	}

function MM_reloadPage(init) 
	{  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

 function togglevisibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }