// JavaScript Document
/*index page fade in effects*/
var ie = navigator.userAgent.indexOf("MSIE");
var ie7 = navigator.userAgent.indexOf('MSIE 7');
var ie6 = navigator.userAgent.indexOf('MSIE 6');

$(document).ready(function(){
	if(catID == indexCat) {					   
	// Fade in the header, navigation and image placeholder using jQuery:
var header = document.getElementById("header");
var nav = document.getElementById("nav");
var image = document.getElementById("image");

	

	if(ie != -1) {
		/*
		document.getElementById("menu0").style.filter="alpha(opacity=0)";
		document.getElementById("menu1").style.filter="alpha(opacity=0)";
		document.getElementById("menu2").style.filter="alpha(opacity=0)";
		document.getElementById("menu3").style.filter="alpha(opacity=0)";
		document.getElementById("menu4").style.filter="alpha(opacity=0)";
		document.getElementById("menu5").style.filter="alpha(opacity=0)";
*/
		$("img#slide").attr("style","filter:alpha(opacity=0)");
	} else {
		$("#menu0,#menu1,#menu2,#menu3,#menu4,#menu5,#menu6").hide();
		
		$("img#slide").attr("style","opacity:0");
	}
	
	
if(ie6 == -1) {
	setTimeout(function() {$("div#header").fadeTo("normal",1);},200);
}	
document.images.onload = loadQueue();


nav.style.visibilty = "visible";	
	}
});

function loadQueue() {
	setTimeout(function() {$("img#slide").fadeTo("normal",1);},1000);

	setTimeout(function() {$("div#menu0").fadeIn("normal");},2000);
	setTimeout(function() {$("div#menu1").fadeIn("normal");},2100);
	setTimeout(function() {$("div#menu2").fadeIn("normal");},2200);
	setTimeout(function() {$("div#menu3").fadeIn("normal");},2300);
	setTimeout(function() {$("div#menu4").fadeIn("normal");},2400);
	setTimeout(function() {$("div#menu5").fadeIn("normal");},2500);
	setTimeout(function() {$("div#menu6").fadeIn("normal");},2600);

}
