

	// Get the height of the entire document
	// --------------------------------------------------------------------
	/*
	screen.getDocumentHeight = function() {
	var body = screen.getBody();
	var innerHeight =
	(defined(self.innerHeight)&&!isNaN(self.innerHeight))?self.innerHeight:0;
	if (!document.compatMode || document.compatMode=="CSS1Compat") {
	var topMargin = parseInt(CSS.get(body,'marginTop'),10) || 0;
	var bottomMargin = parseInt(CSS.get(body,'marginBottom'), 10) || 0;
	return Math.max(body.offsetHeight + topMargin + bottomMargin,
	document.documentElement.clientHeight,
	document.documentElement.scrollHeight, screen.zero(self.innerHeight));
	}
	return Math.max(body.scrollHeight, body.clientHeight,
	screen.zero(self.innerHeight));
	};
	var topSpacing = (innerHeight - $(".page").height())/2;
	topSpacing = Math.floor(topSpacing);
	topSpacingPX = Math.floor(topSpacing) + "px";
	*/
	/*
	var topSpacing = "30";
	if(topSpacing > 0){
	//if(topSpacing > 0){
		// set spacing
		topSpacingPX = "15px";
		$(".page").css("top",topSpacingPX);
	}else {
		// set min-spacing
		$(".page").css("top","10px");
	}
	

	
	$(".switcher").hover(function() {
		$(this).parent().find("ul.subnav").fadeSliderToggleOn();
		setTimeout(hideLastLink, 3);
	});
	
	
	function hideLastLink() {
		$(this).parent().find("ul.subnav").css('display','none');
	}*/
$(document).ready(function(){
    
    $("ul.subnav").parent().append("<span class='switcher'></span>");

	$('#LogoLink').click( function() {
		location.href = 'http://www.artech-is.com';
	});
	$('#logo').hover( function() {
		$('#logo').addClass('logoHover');
	}).mouseout( function(){
		$('#logo').removeClass('logoHover');
	});
		
});




