$(function () {
	
	// Sidebar Tabs
	$(".sidebar_content").hide();
	$("ul.sidemenu li:first-child").addClass("active").show();
	$(".block").find(".sidebar_content:first").show();

	$("ul.sidemenu li").click(function() {
		$(this).parent().find('li').removeClass("active");
		$(this).addClass("active");
		$(this).parents('.block').find(".sidebar_content").hide();

		var activeTab = $(this).find("a").attr("href");
		$(activeTab).show();
		return false;
	});	
	
	
});




<!--   Script by hscripts.com          -->
<!--   Copyright of HIOX INDIA         -->
<!-- More scripts @ http://www.hscripts.com -->


function apply()
{
  document.select_listing.submit.disabled=true;
//  document.select_listing.submit.class = "large button green";
  document.getElementById("submit").className += "large button green";

  if(document.select_listing.agree.checked==true)
  {
    document.select_listing.submit.disabled=false;
	document.getElementById("submit").className += "large button green";
  }
  if(document.select_listing.agree.checked==false)
  {
    document.select_listing.submit.enabled=false;
	document.getElementById("submit").className += "large button disable";
  }
}

function checkradio()
{
	if(document.getElementById("BListingType").checked==true)
	{
		document.getElementById("basicListingType").className = "basiclistingtype_selected";
		document.getElementById("premiumListingType").className = "premlistingtype";
		document.getElementById("basiclistingguide").style.display = "block";
		document.getElementById("premiumlistingguide").style.display = "none";
		document.getElementById("gguidelines").style.display = "none";
	}
	if(document.getElementById("PListingType").checked==true)
	{
		document.getElementById("basicListingType").className = "basiclistingtype";
		document.getElementById("premiumListingType").className = "premlistingtype_selected";
		document.getElementById("basiclistingguide").style.display = "none";
		document.getElementById("gguidelines").style.display = "none";
		document.getElementById("premiumlistingguide").style.display = "block";
	}
}


<!-- Script by hscripts.com -->




//<!---------------------------------+
//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use
// --------------------------------->
$(document).ready(function()
{
	$("#coupon_code").blur(function()
	{
		//remove all the class add the messagebox classes and start fading
		$("#msgbox").removeClass().addClass('messagebox').text('Checking coupon, please wait ...').fadeIn("slow");
		//check the username exists or not from ajax
		$.post("check_coupon.php",{ coupon_code:$(this).val() } ,function(data)
        {
		  if(data=='no') //if username not avaiable
		  {
		  	$("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
			{ 
			  //add message and change the class of the box and start fading
			  $(this).html('Coupon code is not valid').addClass('messageboxerror').fadeTo(900,1);
			});		
          }
		  else
		  {
		  	$("#msgbox").fadeTo(200,0.1,function()  //start fading the messagebox
			{ 
			  //add message and change the class of the box and start fading
			  $(this).html('Coupon code is valid and you will get a discount').addClass('messageboxok').fadeTo(900,1);	
			});
		  }
				
        });
 
	});
});


$(function () {
	$('.formdiv input[type=file]').addClass('file');
		// Style file input
	$("input[type=file]").filestyle({ 
	    image: "images/browse.gif",
	    imageheight : 26,
	    imagewidth : 84,
	    width : 220
	});
	
	
});


