var activeID, activeObject, activeMenu, headerHeight, subMenuWidth, menuOffset;

// Page onLoad Event
function Page_onLoad()
{
	{
	// Settings
	menuOffset = (document.all) ? 0 : 0;	// 215 or 0
	headerHeight = '50%';	//document.getElementById("header_right").offsetHeight;				// '74px'
	}

	{

	var width = screen.width
	var height = screen.height
	if (width <= 800)
		alert('To view this website properly you must have your screen resolution set to 800x600 or higher.');
	}

}

// Show Layer Function
function show(theMenu, obj)
{ 
	if (activeID)
	{
		clearTimeout(activeID);
		hide(activeMenu);
	}
	
	activeObject = obj;

	
	var menuObj = document.getElementById(theMenu);
	if (menuObj)
	{
		var menuPos = activeObject.offsetLeft + menuOffset;
		//menuObj.style.left = (menuPos > subMenuMaxLeft) ? subMenuMaxLeft + 'px' : menuPos + 'px';
		menuObj.style.left = menuPos + 'px';
		menuObj.style.top = headerHeight;
		menuObj.style.display = "block";
			
	}
}

// Start Hide Layer Timeout Function
function timeoutHide(theMenu)
{
	activeMenu = theMenu;
	activeID = setTimeout("hide('" + theMenu + "')", 800);

}

// Hide Layer Function
function hide(theMenu)
{
	var menuObj = document.getElementById(theMenu);
	if (activeObject) activeObject.className = "menu_off";
	if (menuObj) menuObj.style.display = "none";
	
	
}

function designclever() {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=480;
 
    var xOffset = (xMax)/2-415, yOffset = (yMax - 200)/2-150;
  
window.open('http://www.designclever.com/','V','width=800,height=480,scrollbars=yes,toolbar=yes,resizable=yes,location=yes,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}

function thincbig() {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=480;
 
    var xOffset = (xMax)/2-415, yOffset = (yMax - 200)/2-150;
  
window.open('http://www.thincbig.com/','V','width=800,height=480,scrollbars=yes,toolbar=yes,resizable=yes,location=yes,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//-->