function pathChenger(path,pathElements,floatbar){
	/*jQuery("#all").animate({
		left: '+=1'
	  }, 1 );*/
	
	jQuery("#all div").removeAttr("style");
	jQuery("#all div").attr("style", "background-position:"+ $fon +"px 0px;");
	$fon++;

	
	 if  (($amfalse == 0)&&($am >=0)){
	 $am++;
	 jQuery("#fl").attr("style", "top:"+$am+"px;");
	 }
	 if  (($amfalse == 0)&&($am ==8)){
	 $amfalse = 1;
	 $am--;
	 jQuery("#fl").attr("style", "top:"+$am+"px;");
	 }
	 if  (($amfalse == 1)&&($am >=0)){
	 $amfalse = 1;
	 $am--;
	 jQuery("#fl").attr("style", "top:"+$am+"px;");
	 }
	 if  (($amfalse == 1)&&($am ==0)){
	 $amfalse = 0;
	 $am++;
	 jQuery("#fl").attr("style", "top:"+$am+"px;");
	 }
};



jQuery(document).ready(function()
{
	$fon = 0;
	$am = 0;
	$amfalse =0;
	$wh = jQuery(document).height();
	jQuery("body").attr("style", "height:"+$wh+"px;");
	
setInterval(pathChenger, 100);

	
jQuery("#c_p li").hover(
	  function () {
		jQuery(this).attr("id", "c_p_active");	 
	  },
	  function () {
		jQuery(this).removeAttr("id");	
	  }
	);

jQuery("#leftcol a, #l_tel a, #c_p a, #c_pod_spisok a").tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	fade: 250
});

jQuery("#ico li").eq(0).hover(
	  function () {
		jQuery(this).attr("id", "curr_ico");	 
		//jQuery(this).find("img").attr("src", "/img/ico_tel_act.png");	
		jQuery(this).find("img").attr("width", "31");	
		jQuery(this).find("img").attr("height", "31");	
	  },
	  function () {
		jQuery(this).removeAttr("id");	
		//jQuery(this).find("img").attr("src", "/img/ico_tel.png");	
		jQuery(this).find("img").attr("width", "29");	
		jQuery(this).find("img").attr("height", "29");	
	  }
	);

jQuery("#ico li").eq(1).hover(
	  function () {
		jQuery(this).attr("id", "curr_ico");	 
		jQuery(this).find("img").attr("width", "31");	
		jQuery(this).find("img").attr("height", "31");	
	  },
	  function () {
		jQuery(this).removeAttr("id");	

		jQuery(this).find("img").attr("width", "29");	
		jQuery(this).find("img").attr("height", "29");	
	  }
	);

/*jQuery("#ico li").eq(2).hover(
	  function () {
		jQuery(this).attr("id", "curr_ico");	 
		jQuery(this).find("img").attr("width", "31");	
		jQuery(this).find("img").attr("height", "31");	
	  },
	  function () {
		jQuery(this).removeAttr("id");	

		jQuery(this).find("img").attr("width", "27");	
		jQuery(this).find("img").attr("height", "27");	
	  }
	);*/

jQuery("#leftcol li").hover(
	  function () {
		jQuery("#leftcol li img").attr("width", "22");		
		jQuery("#leftcol li img").attr("height", "22");	
		jQuery("#leftcol li").attr("class", "leftcol_img");
		jQuery(this).attr("id", "curr_leftmenu");	 
		jQuery(this).find("img").attr("width", "34");	
		jQuery(this).find("img").attr("height", "34");	
	  },
	  function () {
		jQuery(this).removeAttr("id");	
		jQuery("#leftcol li").removeAttr("class");	
		jQuery("#leftcol li img").attr("width", "31");	
		jQuery("#leftcol li img").attr("height", "31");
	  }
	);

jQuery("#l_tel img").hover(
	  function () {
		jQuery(this).attr("src", "/img/l_tel_act.png");	 
	  },
	  function () {
		jQuery(this).attr("src", "/img/l_tel.png");
	  }
	);
	
});
