//window.onresize = new Function("window.location.reload();");
	 
	var ie=document.all?1:0;
	var hide=-1;
	var isMozilla=false;
	var bDom = document.getElementById?1:0;
	var bVersion=navigator.appVersion;
	isMozilla=(bDom&&parseInt(bVersion)>=5)?1:0;
	opera=window.opera?1:0;
	var AgntUsr=navigator.userAgent.toLowerCase();

function fnDivCheck()
	{	
	   var val = tblView.offsetHeight;
	    if (tblView.offsetHeight >= 350)DivDisplay.style.overflow = "auto";
	    else{DivDisplay.style.overflow = "hidden";DivDisplay.style.height = val;}
	}
    if(ie)
    {
    var menu_x;
        if (screen.availWidth > 1360)  { menu_x=[300,850,0];}
        else if (screen.availWidth == 1360)  { menu_x=[262,835,0];}
        else if (screen.availWidth == 1280) { menu_x=[220,793,0];}	
	    else if (screen.availWidth == 1024) { menu_x=[92,665,0];}	
	    else if (screen.availWidth ==800){ menu_x=[86,659,0];}
	    else if (screen.availWidth < 800){ menu_x=[79,645,0];}var menu_y=[172,0,0];
	}	
	else if(isMozilla)
	 {	
	    if (screen.availWidth > 1360)  {var menu_x=[300,850,0];}
        else if (screen.availWidth == 1360)  {var menu_x=[262,835,0];}
        else if (screen.availWidth == 1280) {var menu_x=[223,795,0];}	
	    else if (screen.availWidth == 1024) {var menu_x=[93,670,0];}	
	    else if (screen.availWidth ==800){var menu_x=[86,659,0];}
	    else if (screen.availWidth < 800){var menu_x=[79,652,0];}var menu_y=[174,0,0];
	 }
	 else
	 {
        var menu_x=[240,304,376];
        var menu_y=[182,182,182];
	 }
	
	var str=""
	document.write("<style type='text/css'>\n");
	if(ie)
	{
		str+="#Mmenu0{filter:alpha(opacity=100);position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[0] + "px;visibility:hidden;z-index:10;}\n";
		str+="#Mmenu1{filter:alpha(opacity=100);position:absolute;top:" + menu_y[0] + "px;left:"+menu_x[1] +"px;visibility:hidden;z-index:10;}\n";
	}
	else
	{
		str+="#Mmenu0{position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[0] + "px;left:" + ";visibility:hidden;}\n";
		str+="#Mmenu1{position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[1] + "px;left:" + ";visibility:hidden;}\n";
	}
	
	document.write(str);
	document.write("</style>");
	

	
	
	function hideall()
	{    
	     
		for(i=0;i<2;i++) { 
			if(ie) eval("Mmenu"+i +".style.visibility='hidden';");
			else if (isMozilla){
				var objMDiv = document.getElementById("Mmenu"+i);
				objMDiv.style.visibility="hidden";
			}
			else  document.layers[i].visibility="hide";
			}
	}
	
	function menu(x){
	
		temp=x;
		if(ie) eval("Mmenu"+ x +".style.visibility='visible';");
		  else if (isMozilla){
				var objMDiv = document.getElementById("Mmenu"+ x);

				objMDiv.style.left = (window.innerWidth>800?(window.innerWidth-800)-((window.innerWidth-800)/2)+menu_x[x]:menu_x[x]-10);
				objMDiv.style.visibility="visible";
			}
		else  document.layers[x].visibility="show";
	}
	
	function smout(x,y){
				
		if (!isMozilla){
		//eval("c"+x+y).style.backgroundColor = "#a4a3a3";
		//eval("c"+x+y).style.color = "#dde0d7";
		document.getElementById("c"+x+y).style.backgroundColor = "#a4a3a3";
		document.getElementById("c"+x+y).style.color = "#dde0d7";
		
			}
		else{
			document.getElementById("c"+x+y).style.backgroundColor = "#a4a3a3";
			document.getElementById("c"+x+y).style.color = "#dde0d7";
			}
	}

	function smover(x,y){
	

		if (!isMozilla){
		    //alert(eval("c"+x+y));
			document.getElementById("c"+x+y).style.backgroundColor = "#981b1e";
			document.getElementById("c"+x+y).style.color = "#ffffff";
			}
		else{
			document.getElementById("c"+x+y).style.backgroundColor = "#981b1e";
			document.getElementById("c"+x+y).style.color = "#ffffff";
		}

	}
	document.write("<div id='Mmenu0'>");
	document.write("<table cellpadding='0' cellspacing='0' border='0' bgcolor='#FFFFFF'>");
	document.write(	"<tr> <td width='1'><img src='images/menu_left.gif' width='8' height='30' border='0' alt='menu'/></td>");
	document.write(	"<td valign='center' id='c00' name='c00' onmouseover=smover('0','0'); onmouseout=smout('0','0');  class='menu_bg' style='cursor:pointer;' ><a href='signup.aspx' class='menu'>User&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td>");
	document.write(	" <td width='1' ><img src='images/menu_right.gif' width='9' height='30' border='0' alt='menu'/></td></tr>");
	document.write(	"<tr> <td width='1'><img src='images/menu_left.gif' width='8' height='30' border='0' alt='menu'/></td>");
	document.write(	"<td id='c01' name='c01'  onmouseover=smover('0','1'); onmouseout=smout('0','1');  class='menu_bg' style='cursor:pointer;' ><a href='AcagentRegistration.aspx' class='menu'>Accountant / BSP</a></td>");
	document.write(" <td width='1' ><img src='images/menu_right.gif' width='9' height='30' border='0' alt='menu'/></td></tr>");
	document.write("<tr> <td width='1'><img src='images/menu_left.gif' width='8' height='30' border='0' alt='menu'/></td>");
	document.write("<td id='c02' name='c02'  onmouseover=smover('0','2'); onmouseout=smout('0','2');  class='menu_bg' style='cursor:pointer;' ><a href='salesagent.aspx' class='menu'>Sales Agent</a></td>");
	document.write(" <td width='1' ><img src='images/menu_right.gif' width='9' height='30' border='0' alt='menu'/></td></tr>");
	document.write("</table>");
	document.write("</div>");	
	
	
	document.write("<div id='Mmenu1'>");
	document.write("<table cellpadding='0' cellspacing='0' border='0' bgcolor='#FFFFFF'>");
	document.write(	"<tr> <td width='1'><img src='images/menu_left.gif' width='8' height='30' border='0' alt='menu'/></td>");
	document.write(	"<td valign='center' id='c00' name='c00' onmouseover=smover('0','0'); onmouseout=smout('0','0');  class='menu_bg' style='cursor:pointer;' ><a href='http://interactiveaccountsmanager.blogspot.com/' class='menu' target='_blank'>&nbsp;&nbsp;&nbsp;&nbsp;Blog &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td>");
	document.write(	" <td width='1' ><img src='images/menu_right.gif' width='9' height='30' border='0' alt='menu'/></td></tr>");
	document.write("</table>");
	document.write("</div>");	
	

