document.write('<style type="text/css">@import url("/square/css/navshift.css");</style>');$(document).ready(navmaker);		  function navmaker(){		if (pageID && (pageID>0)){		if (pageID.length==3){			$("#nav"+pageID).addClass("active");				pageID=pageID.slice(0,-1);		}		if (pageID.length==2){			if ($("ul",document.getElementById("nav"+pageID))){				$("ul",document.getElementById("nav"+pageID)).css({"left":"180px"});			}			$("#nav"+pageID).addClass("active");				pageID=pageID.slice(0,-1);		}				if ($("ul",document.getElementById("nav"+pageID))){			$("ul",document.getElementById("nav"+pageID)).css({"left":"0"});		}		if ($("#nav"+pageID)){			$("#nav"+pageID).addClass("active");		}		if ($("#nav"+parent)){			//$("#nav"+parent).addClass("active");			//alert("#nav"+parent);		}					}	}addLoadEvent(navmaker);function addLoadEvent(func){	var oldonload = window.onload;	if(typeof window.onload != "function")	{		window.onload = func;	}	else	{		window.onload = function()		{			oldonload();			func();		}	}}// Gallery pop up functionsfunction openCenteredWindow(height,width,url, name){   var left = Math.floor((screen.width - width) / 2);   var top  = Math.floor((screen.height - height) / 2);   var winParams = "top="+top+",left="+left+",height="+height+",width="+width+",scrollbars=none, toolbar=no";   //alert(winParams);   newwindow = window.open(url,name,"height="+height+",width="+width+",status=1,toolbar=no,menubar=no,location=no");   if (window.focus) {newwindow.focus()}   return newwindow;}function galleryPopup(){		if(!document.getElementById('launch') || !document.getElementById('launch_book'))	{		return;	}	else	{		var launchLink = document.getElementById('launch');		var book = document.getElementById('launch_book');					book.onclick = function()		{				popUpWin('gallery.html','fixed',800,800);			return false;		}		launchLink.onclick = function()		{					popUpWin('gallery.html','fixed',400,400);			return false;		}	}	}addLoadEvent(galleryPopup);