 $(document).ready(function() {  
   
     //move the image in pixel  
     var move = 0;  
       
     //zoom percentage, 1.2 =120%  
     var zoom = 1;  
   
     //On mouse over those thumbnail  
     $('.zitem').hover(function() {  
           
         //Set the width and height according to the zoom percentage  
         width = $('.zitem').width() * zoom;  
         height = $('.zitem').height() * zoom;  
           
         //Move and zoom the image  
        // $(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});  
           
         //Display the caption  
         $(this).find('div.caption').stop(false,true).fadeIn(200);  
     },  
     function() {  
         //Reset the image  
        // $(this).find('img').stop(false,true).animate({'width':$('.zitem').width(), 'height':$('.zitem').height(), 'top':'0', 'left':'0'}, {duration:100});    
   
         //Hide the caption  
         $(this).find('div.caption').stop(false,true).fadeOut(200);  
     });  
   
    viewImg(1);
 });  
 
 
 function viewImg(num)
 {
	$("#img1").css({display: "none"});	
	$("#img2").css({display: "none"});	
	$("#img3").css({display: "none"});	
	$("#img"+num).css({display: ""});	
	
	$("#new1T").removeClass("cur");
	$("#new2T").removeClass("cur");
	$("#new3T").removeClass("cur");
	$("#new"+num+"T").addClass("cur");
 }
 
 var pogoda = 0;
 var valute = 0;
 
 function onofpogoda ()
 {
	if (pogoda==0)
	{
		$("#pogodaH").removeClass("menuOn");
		$("#pogodaH").addClass("menuOff");
		$("#pogodaT").hide(200);
		pogoda=1;
	}
	else if (pogoda==1)
	{
		$("#pogodaH").removeClass("menuOff");
		$("#pogodaH").addClass("menuOn");
		$("#pogodaT").show(200);
		pogoda=0;
	}
 }
 
 function onovalute ()
 {
	if (valute==0)
	{
		$("#valutaH").removeClass("menuOn");
		$("#valutaH").addClass("menuOff");
		$("#valutaT").hide(200);
		valute=1;
	}
	else if (valute==1)
	{
		$("#valutaH").removeClass("menuOff");
		$("#valutaH").addClass("menuOn");
		$("#valutaT").show(200);
		valute=0;
	}
 }