// JavaScript Document
var selected=1;
document.getElementById(1).style.color="#FFFFFF";

function mouseOver (id)
{ if(id <= 13){ if(id!=selected){document.getElementById(id).style.color="#FFFFFF"} document.body.style.cursor="pointer"; } }
function mouseOut (id)
{ if(id <= 13){ if(id!=selected){document.getElementById(id).style.color="#999999"} document.body.style.cursor="auto"; } }

function onClick (id){
	for(x=1; x<=13; x++){ document.getElementById(x).style.color="#999999"; }
	document.getElementById(id).style.color="#FFFFFF";
	if(id == 1){ iBody.document.location="home.htm"; iLogo.document.location="images/nVeil-1.htm"; parent.location.hash="home"}
	if(id == 2){ iBody.document.location="about.htm"; iLogo.document.location="images/nVeil-2.htm"; parent.location.hash="about"}
	if(id == 3){ iBody.document.location="download.htm"; iLogo.document.location="images/nVeil-3.htm"; parent.location.hash="download"}
	if(id == 4){ iBody.document.location="demo-gallery.htm"; iLogo.document.location="images/nVeil-5.htm"; parent.location.hash="demo"}
	if(id == 5){ iBody.document.location="pro-gallery.htm"; iLogo.document.location="images/nVeil-5.htm"; parent.location.hash="pro"}
	if(id == 6){ iBody.document.location="photo-gallery.htm"; iLogo.document.location="images/nVeil-5.htm"; parent.location.hash="photo"}
	if(id == 7){ iBody.document.location="library.php"; iLogo.document.location="images/nVeil-1.htm";parent.location.hash="library" }
	if(id == 8){ iBody.document.location="design.htm"; iLogo.document.location="images/nVeil-2.htm"; parent.location.hash="design"}
	if(id == 9){ iBody.document.location="tutorials.htm"; iLogo.document.location="images/nVeil-3.htm"; parent.location.hash="tutorials"}
	if(id == 10){ iBody.document.location="faqs.htm"; iLogo.document.location="images/nVeil-4.htm"; parent.location.hash="faqs"}
	if(id == 11){ iBody.document.location="news.htm"; iLogo.document.location="images/nVeil-5.htm"; parent.location.hash="news"}
	if(id == 12){ iBody.document.location="subscribe.php"; iLogo.document.location="images/nVeil-1.htm"; parent.location.hash="subscribe"}
	if(id == 13){ iBody.document.location="contact.php"; iLogo.document.location="images/nVeil-1.htm"; parent.location.hash="contact"}
	selected=id;
}

function check(page){
	page = page.toLowerCase();

	if(page=='#home'){page=1;}
	else if(page=='#about'){page=2;}
	else if(page=='#download'){page=3;}
	else if(page=='#demo'){page=4;}
	else if(page=='#pro'){page=5;}
	else if(page=='#photo'){page=6;}
	else if(page=='#library'){page=7;}
	else if(page=='#design'){page=8;}
	else if(page=='#tutorials'){page=9;}
	else if(page=='#faqs'){page=10;}
	else if(page=='#news'){page=11;}
	else if(page=='#subscribe'){page=12;}
	else if(page=='#contact'){page=13;}
	else if(page=='#cart'){page='';iBody.document.location="cart.htm"; iLogo.document.location="images/nVeil-1.htm"; parent.location.hash="cart"}
	else if(page=='#save'){page='';iBody.document.location="save.htm"; iLogo.document.location="images/nVeil-1.htm"; parent.location.hash="save"}
	else{page=1;}
	
	if(page!=''){onClick(page);}
}