$.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    $("<img>").attr("src", arguments[i]);
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.winL=window.open(theURL,'winL',features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

$(function(){

	$(".right_category_header a").hover(
	function () {
	var srcx= $(this).children('img').attr('src').replace(/cache\//ig,"cache/hover_");
	
	$(this).children('img').attr('src',srcx);
	
	}, 
	function () {
	var srcx=$(this).children('img').attr('src').replace(/hover_/ig,'');
	$(this).children('img').attr('src',srcx);
	
	});

});

$(document).ready(function(){
	
	$("#shop_by_artist_menu").change(function () { 
		//alert($("#shop_by_artist_menu").val());
		window.location=$("#shop_by_artist_menu").val();
		});
	
	//clear search box when clicked
	$("input[name=search_query]").click(function () { 
		$(this).val(''); 
	});
	

$("tr:nth-child[class!='tour_table_band_row']").filter("[class!='tour_table_row']").filter("class='tour_table_month_row'").filter('even').addClass("odd");
$(".media_item:nth-child(odd)").addClass("odd_dark");
$("#streams tr:nth-child(odd)").addClass("odd_dark");

	
});


