$(document).ready(function() { 

	$("input.btnAizvert, input.btnMeklet, input.btnApskatitGrozu, input.btnTell, input.btnGatavs, input.btnNosutit, input.btnAtjaunot, input.btnAtcelt, input.btnDzest, input.btnAkdievs").hover(
	  function () { $(this).addClass("bgShift21"); },
	  function () { $(this).removeClass("bgShift21"); }
	);
	
	$("input.noformet, input.noformet2, input.btnApstiprinat, input.btnParbaudi, input.btnParbaudi2, input.btnApstiprinat2").hover(
	  function () { $(this).addClass("noformetHover"); },
	  function () { $(this).removeClass("noformetHover"); }
	);
	
	
	
	$("tr.product").hover(
		function () {
			relz = $(this).attr('rel'); 
			//alert(relz);
	  		$(this).addClass("highlight"); 
			$('#tr-helper-'+relz).addClass("highlight"); 
		},
		function () { 
			relz = $(this).attr('rel'); 
			//alert(relz);
			$(this).removeClass("highlight");
			$('#tr-helper-'+relz).removeClass("highlight"); 
		}
	);
	
	
	$("tr.pr-helper").hover(
		function () {
			relz = $(this).attr('rel'); 
			//alert(relz);
	  		$(this).addClass("highlight"); 
			$('.tr-product-'+relz).addClass("highlight"); 
		},
		function () { 
			relz = $(this).attr('rel'); 
			//alert(relz);
			$(this).removeClass("highlight");
			$('.tr-product-'+relz).removeClass("highlight"); 
		}
	);
	
	
	
	
	$("#searchByMonth div").hover(
	  function () { $(this).addClass("hover"); },
	  function () { $(this).removeClass("hover"); }
	);
	
	
	// MAIN MENU SLIDE BG.
	
	
	

	
	
	if($.browser.mozilla) {
		//$('input#query').css('border','0px solid red');
		//$('input#query').css('position','absolute');
		//$('input#query').css('margin-top','5px');
		//$('input#query').css('z-index','55');
	}
	
	
	
	

});

function popup(src, aaa, ww, hh){
	var width = ww;
	var height = hh;
	var l = ( screen.width - width )/2;
	var t = ( screen.height - height )/2 - 20;
	l=l-200;
	t=t-400;
	url = src;
	window.open( url, "_blank", "directories=0,location=0,menubar=0,titlebar=0,toolbar=0,scrollbars=1,resizable=1,left="+l+",top="+t+",width="+width+",height="+height );
}
