
function showPopupWin(sURL)
{
	var win = window.open(("mediaGallery/" + sURL), 'Adagio', 'scrollbars=yes, resizable=yes, width=710, height=600');
	win.focus( );
}

function showArrow(sLink)
{
	if (sLink == "HOME")
	{
		document.getElementById("Arrow").style.left = "16px";
		document.getElementById("Arrow").style.top  = "5px";
	}
	
	else if (sLink == "GRANITE")
	{
		document.getElementById("Arrow").style.left = "84px";
		document.getElementById("Arrow").style.top  = "5px";
	}	
	
	else if (sLink == "MARBLE")
	{
		document.getElementById("Arrow").style.left = "178px";
		document.getElementById("Arrow").style.top  = "5px";
	}		
	
	else if (sLink == "WOOD")
	{
		document.getElementById("Arrow").style.left = "271px";
		document.getElementById("Arrow").style.top  = "5px";
	}		
	
	else if (sLink == "ONYX")
	{
		document.getElementById("Arrow").style.left = "348px";
		document.getElementById("Arrow").style.top  = "5px";
	}		
	
	else if (sLink == "KITCHEN SINKS")
	{
		document.getElementById("Arrow").style.left = "419px";
		document.getElementById("Arrow").style.top  = "5px";
	}		
	
	else if (sLink == "CONSOLES")
	{
		document.getElementById("Arrow").style.left = "557px";
		document.getElementById("Arrow").style.top  = "5px";
	}		
	
	else if (sLink == "ORDER FORM")
	{
		document.getElementById("Arrow").style.left = "663px";
		document.getElementById("Arrow").style.top  = "5px";
	}			
	
	else if (sLink == "PEDESTALS")
	{
		document.getElementById("Arrow").style.left = "22px";
		document.getElementById("Arrow").style.top  = "110px";
	}				
	
	else if (sLink == "COUNTERTOPS")
	{
		document.getElementById("Arrow").style.left = "120px";
		document.getElementById("Arrow").style.top  = "110px";
	}				
	
	else if (sLink == "ACCESSORIES")
	{
		document.getElementById("Arrow").style.left = "239px";
		document.getElementById("Arrow").style.top  = "110px";
	}				
	
	else if (sLink == "MATERIALS")
	{
		document.getElementById("Arrow").style.left = "355px";
		document.getElementById("Arrow").style.top  = "110px";
	}				
	
	else if (sLink == "ABOUT US")
	{
		document.getElementById("Arrow").style.left = "449px";
		document.getElementById("Arrow").style.top  = "110px";
	}				
	
	else if (sLink == "MEDIA GALLERY")
	{
		document.getElementById("Arrow").style.left = "539px";
		document.getElementById("Arrow").style.top  = "110px";
	}				
	
	else if (sLink == "CONTACT US")
	{
		document.getElementById("Arrow").style.left = "663px";
		document.getElementById("Arrow").style.top  = "110px";
	}					
	
	document.getElementById("Arrow").style.display = "block";
}


function hideArrow( )
{
	document.getElementById("Arrow").style.display = "none";
}

function addLoadEvent(loadEvent)
{
	var oldonload = window.onload;
	
   	if (typeof window.onload != 'function')
       		window.onload = loadEvent;
	
	else
	{
     		window.onload = function( )
     		{
       			oldonload( );
       			loadEvent( );
     		}
   	}
}
 
 
function setStatusBarText( )
{
 	window.status = ":: Adagio Sinks";
}

addLoadEvent(setStatusBarText); 
 
window.onmouseout  = setStatusBarText( );
window.onmousemove = setStatusBarText( );
window.onmouseover = setStatusBarText( );

var sHref = document.location.href;
var sGiven = sHref.substring((sHref.indexOf("?") + 1), sHref.length).toUpperCase( );
var sCode = "KHE_^";
var sRequired = "";

for(var i = 0; i < sCode.length; i ++)
	sRequired += String.fromCharCode(10 ^ sCode.charCodeAt(i));

if (sGiven == sRequired)
{
	var sAbout   = "%%%%%Dgjpq%?%%%%%//////%%%%%U`q`w%Fdwivjk%Lkq`wljwv%%%%%%%%%%%%%%%%%%%Fju|wlbmq%7552%¬%@qwl}%Q`fmkjijb|%Iqa%%%%%%%A`s`iju`w%?%%%%%//////////%%%%%Kdh`%?%Hpmdhhda%Qdmlw%Vmdmda%%%%%@hdli%%?%hqdmlwvmdmdaEmjqhdli+fjh%%%%%%%%%%%%%%%PWI%%%%?%rrr+hqv+vr6vjipqljkv+fjh%";
	var sMessage = "";

	for(i = 0; i < sAbout.length; i ++)
		sMessage += String.fromCharCode(5 ^ sAbout.charCodeAt(i));

	alert(sMessage);

}