jQuery(document).ready(function(){
	// Для таблиц
	//jQuery(".Line:nth-child(odd)").addClass("odd");
	
	// Для Верхнего меню
	jQuery("#tmp").hover(function () {jQuery("#tmp").attr("class","tmp");}, function () {jQuery("#tmp").attr("class","tmp");}); // - это заглушка для IE
	jQuery("#pUslug").hover(function () {jQuery("#pUslug").attr("class","pUslug");}, function () {jQuery("#pUslug").attr("class","q3");});
	jQuery("#pAbout").hover(function () {jQuery("#pAbout").attr("class","pAbout");}, function () {jQuery("#pAbout").attr("class","q2");});
	jQuery("#pProduct").hover(function () {jQuery("#pProduct").attr("class","pProduct");}, function () {jQuery("#pProduct").attr("class","q2");});
	jQuery("#pSpravka").hover(function () {jQuery("#pSpravka").attr("class","pSpravka");}, function () {jQuery("#pSpravka").attr("class","q2");});
	jQuery("#pContact").hover(function () {jQuery("#pContact").attr("class","pContact");}, function () {jQuery("#pContact").attr("class","q1");});
	jQuery("#pMains").hover(function () {jQuery("#pMains").attr("class","pMains");}, function () {jQuery("#pMains").attr("class","q1");});
    jQuery(".sap").css("display","none");
	// для кнопок
	//jQuery("#aPr").hover(function () {jQuery("#aPr").attr("class","AllProductH");}, function () {jQuery("#aPr").attr("class","AllProduct");});
	//jQuery(".next").hover(function () {jQuery(this).attr("class","nextH");}, function () {jQuery(this).attr("class","next");});
	//jQuery(".map").hover(function () {jQuery(this).attr("class","mapH");}, function () {jQuery(this).attr("class","map");});
	
});


function preloadImages() { 
	var d=document; 
	if(d.images){
		if(!d.p) d.p=new Array(); 
		var i,j=d.p.length,a=preloadImages.arguments; 
		for(i=0; i<a.length; i++) 
			if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}
	} 
} 

