// JavaScript Document
$(document).ready(function() {

	//When page loads...
	$("#tab1, #tab2").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$("#tab1").show(); //Show first tab content
	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$("#tab1").toggle('slow'); //Hide all tab content
		$("#tab2").toggle('slow');
		return false;
	});

});

$(document).ready(function() {

	//When page loads...
	$("#mostpopular, #highestrated").hide(); //Hide all content
	$("ul.secondtabs li:first").addClass("active").show(); //Activate first tab
	$("#mostpopular").show(); //Show first tab content
	//On Click Event
	$("ul.secondtabs li").click(function() {

		$("ul.secondtabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$("#mostpopular").toggle('slow'); //Hide all tab content
		$("#highestrated").toggle('slow');
		return false;
	});
});

/*$(document).ready(function(){
   $(".dropshadow").wrap("<div class='wrap1'><div class='wrap2'>" +
     "<div class='wrap3'></div></div></div>");
 });

$(document).ready(function(){
   $(".dropshadow").wrap('<div class="shadow"></div>');
 });*/
 /*function clearText(thisForm)
 {
		document.getElementById("ArticleSearch").value = "";
		document.getElementById("ArticleSearch").focus();
	 
 }*/
 function clearText(id)
 {
		document.getElementById(id).value = "";
		document.getElementById(id).focus();
	 
 }
