/* Accordion2 */
	$(document).ready(function(){	
	$(".accordion2 h5").eq(0).addClass("active");
	$(".accordion2 ul").eq(0).show();
	
			$(".accordion2 h5").click(function(){
			$(this).next("ul").slideToggle("slow")
			.siblings("ul:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h5").removeClass("active");
		});
	});
/* Accordion3 */
	$(document).ready(function(){	
	$(".accordion3 h5").eq(0).addClass("active");
	$(".accordion3 ul").eq(0).show();
	
			$(".accordion3 h5").click(function(){
			$(this).next("ul").slideToggle("slow")
			.siblings("ul:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h5").removeClass("active");
		});
	});
/* Rotator Menu */
	$(document).ready(function(){
    	$("#rotator").tabs({ fx: { opacity: 'toggle' } }).tabs( 'rotate' , 10000 , false );
    });
/* Stop Rotator Menu */
    function stop()
	{
		$("#rotator").tabs('rotate', null);
	} 
/* Small Rotator */
    $(document).ready(function(){
    	$("#smallRotator").tabs({ fx: { opacity: /*'show'*/ 'toggle' } }).tabs( 'rotate' , 7500 , false );
    });

/* Search box */
$(document).ready(function(){
	document.getElementById("Criteria").value = "Search";
	document.getElementById("Criteria").style.color = "#999999";
	
	document.getElementById("Criteria").onclick = function()
	{
		if(document.getElementById("Criteria").value == "Search")
		{
			document.getElementById("Criteria").value = "";
			document.getElementById("Criteria").style.color = "#000000";
		}
	}
	
	document.getElementById("Criteria").onblur = function()
	{
		if(document.getElementById("Criteria").value == "")
		{
			document.getElementById("Criteria").value = "Search";
			document.getElementById("Criteria").style.color = "#999999";
		}
	}
});
	
/* Google Search box */
$(document).ready(function(){
	document.getElementById("Google").value = "Search";
	document.getElementById("Google").style.color = "#999999";
	
	document.getElementById("Google").onclick = function()
	{
		if(document.getElementById("Google").value == "Search")
		{
			document.getElementById("Google").value = "";
			document.getElementById("Google").style.color = "#000000";
		}
	}
	
	document.getElementById("Google").onblur = function()
	{
		if(document.getElementById("Google").value == "")
		{
			document.getElementById("Google").value = "Search";
			document.getElementById("Google").style.color = "#999999";
		}
	}
});