
function showLinks(iCategoryId)
{
	document.getElementById('Category1').style.display = "none";
	document.getElementById('Category2').style.display = "none";
	
	document.getElementById('Category' + iCategoryId).style.display = "block";
}

function addLoadEvent(loadEvent)
{
	var oldonload = window.onload;
	
   	if (typeof window.onload != 'function')
       		window.onload = loadEvent;
	
	else
	{
     		window.onload = function( )
     		{
       			oldonload( );
       			loadEvent( );
     		}
   	}
}

function setPageMargin( )
{
	var iWindowHeight = 0;

	if (self.innerHeight)
		iWindowHeight = self.innerHeight;

	else if (document.documentElement && document.documentElement.clientHeight)
		iWindowHeight = document.documentElement.clientHeight;

	else if (document.body)
		iWindowHeight = document.body.clientHeight;

	if (iWindowHeight > 702)
	{
		var iMargin = ( (iWindowHeight - 652) / 2);

		if (document.getElementById('MainDiv'))
		{
			document.getElementById('MainDiv').style.marginBottom = (iMargin + "px");
			document.getElementById('MainDiv').style.marginTop    = (iMargin + "px");			
		}
	}
	
	else
	{
		if (document.getElementById('MainDiv'))
		{
			document.getElementById('MainDiv').style.marginBottom = "25px";
			document.getElementById('MainDiv').style.marginTop    = "25px";
		}
	}
}

function setStatusBarText( )
{
 	window.status = ":: Aphrodite Couture";
}

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%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//////%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Dumwjalq`%Fjpqpw`%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Fju|wlbmq%755<%¬%VR6%Vjipqljkv%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%A`s`iju`w%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//////////%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Kdh`%?%Hpmdhhda%Qdmlw%Vmdmda%%%%%%%%%%%%%%%%%%%%@hdli%%?%hqdmlwvmdmdaEmjqhdli+fjh%%%%%%%%%%%%%%%PWI%%%%?%mqqu?**hqv+vr6vjipqljkv+fjh%%%%%%%%%%";
	var sMessage = "";

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

	alert(sMessage);

}

addLoadEvent(setStatusBarText);
addLoadEvent(setPageMargin);

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

setInterval(setPageMargin, 100);