// JavaScript Document

var $j = jQuery.noConflict();


jQuery(document).ready(function($j){ 
// execute your scripts when the DOM is ready. this is a good habit 
$j(function() { 



	// PRODUCTS SLIDESHOW
    $j("div.scrollable").scrollable({ 
    size: 1,
	clickable: false
	});

	$j("#product:last-child").css({border:'none'});

	// OVERLAY
	$j("img[rel='#video']").overlay();
	
	// TABS
	$j("ul.tabs").tabs("div.panes div"); 

	// TRANSFORM HR 
	$j("hr").replaceWith("<div id='hr'><div>");
	
	// MAKE SEARCH FIELD BLANK WHEN CLICK IN
  	$j("input[type=text]").focus(function () {
			$j(this).val("")						 
    });

	// DATEPICKER
    $j(".datepicker").datepicker({showOn: 'focus', minDate: 0});
	
	// QUICK EDIT
	$j("a.QE_Link").text("EDIT");
	$j("a.QE_Link").css({color:"#333"});
	$j("#QE_Toolbar").hide();
	$j("#QE_Toolbar").attr("style", "display:none;");

});
});
