// JavaScript Document
	var loginfade;
	function loginFadeIn() {
		$("#login").fadeIn(600,function(){ loginfade=setTimeout("loginFadeOut()",1300); });
	}
	function loginFadeOut() {
		$("#login").fadeOut(600,function(){ loginfade=setTimeout("loginFadeIn()",100); });
	}

	if (document.images) {
		pic1= new Image(132,31); 
		pic1.src="images/requestinfo-on.jpg";
		pic2= new Image(132,31); 
		pic2.src="images/requestdemo-on.jpg";
	}
	// Purpose: This function sets the parameters of the tab group with id=tabs using jQuery
		var delay;
	$(document).ready(function() {
		$(".tablink").mouseover(function() {
		    if(this.id.indexOf("#")>-1) {
				str="#"+this.id.substr(this.id.indexOf("#")+5);
				$(str).children("div.menudropitem").hide();
 		    	$(str).slideDown("fast").siblings("div").hide();
				str=str.replace("#","#hide");
				$(str).slideDown("fast").siblings(".iframehide").hide();
			} else {
				$(this).parent().parent().siblings("div").hide();
				$(".iframehide").hide();
			}
	    });
		$("div.tabcontentwindow").mousemove(function() { clearTimeout(delay); }).mouseover(function() { $(this).siblings("div").hide(); });
		$("#tabs").mouseout(function() { delay=setTimeout(function(){$("#tabs").children("div").hide();$(".iframehide").hide();},1000); }).mousemove(function() { clearTimeout(delay); });
		
		// Purpose: This provides a rollover effect for images with the .rollover class specified.
		//          Images with -off in the name will be replaced with the image with -on in the name.
		//			Cross-browser compliant.
		$("img.rollover").hover(
 			function() {
  				this.src = this.src.replace("-off","-on");
 			},
 			function() {
  				this.src = this.src.replace("-on","-off");
 			}
		);
		$(".menudropheader").click(function() { $(this).next("div.menudropitem").slideToggle(400).siblings("div.menudropitem").slideUp(400); });
		loginfade=setTimeout("loginFadeOut()",500);
		$("#login").mouseover(function() { $('#login').show(); clearTimeout(loginfade); }).mouseout(function() { loginfade=setTimeout("loginFadeOut()",100); });
		
		//$("#hideanswers").css({display:"block"});
	});

