jQuery(document).ready(function(){
				//vhod
				jQuery(".link-enter").click(function(){
					jQuery(".formm").show();
				});
				
				//karusel
				var cits = jQuery(".city");
				cits.length= jQuery(".city").length;
				for(i=0;i<4;i++){
					jQuery(cits[i]).addClass('cit'+i);
				}
				for(i=4;i<cits.length;i++){
					jQuery(cits[i]).hide();
				}
				var j = 0;
				
				jQuery("#city_next").click(function(){
				if (Math.abs(j) == cits.length-1) j=0
					else j++;
					
					jQuery(cits).hide()
					jQuery(cits).removeClass('cit0');
					jQuery(cits).removeClass('cit1');
					jQuery(cits).removeClass('cit2');
					jQuery(cits).removeClass('cit3');
					
					jQuery(cits[Math.abs(cits.length +j)%cits.length]).addClass('cit0');
					jQuery(cits[Math.abs(cits.length +j+1)%cits.length]).addClass('cit1');
					jQuery(cits[Math.abs(cits.length +j+2)%cits.length]).addClass('cit2');
					jQuery(cits[Math.abs(cits.length +j+3)%cits.length]).addClass('cit3');
						
					jQuery(cits[Math.abs(cits.length +j)%cits.length]).show();
					jQuery(cits[Math.abs(cits.length +j+1)%cits.length]).show();
					jQuery(cits[Math.abs(cits.length +j+2)%cits.length]).show();
					jQuery(cits[Math.abs(cits.length +j+3)%cits.length]).show();
				});
				
				jQuery("#city_prev").click(function(){
				if (Math.abs(j) == cits.length-1) j=0
					else j--;
					
					jQuery(cits).hide()
					jQuery(cits).removeClass('cit0');
					jQuery(cits).removeClass('cit1');
					jQuery(cits).removeClass('cit2');
					jQuery(cits).removeClass('cit3');
					
					jQuery(cits[Math.abs(cits.length +j)%cits.length]).addClass('cit0');
					jQuery(cits[Math.abs(cits.length + j+1)%cits.length]).addClass('cit1');
					jQuery(cits[Math.abs(cits.length + j+2)%cits.length]).addClass('cit2');
					jQuery(cits[Math.abs(cits.length + j+3)%cits.length]).addClass('cit3');
					
					jQuery(cits[Math.abs(cits.length +j)%cits.length]).show();
					jQuery(cits[Math.abs(cits.length + j+1)%cits.length]).show();
					jQuery(cits[Math.abs(cits.length + j+2)%cits.length]).show();
					jQuery(cits[Math.abs(cits.length + j+3)%cits.length]).show();
				});
				
				//karusel 2
				var ofrs = jQuery(".offer");
				ofrs.length= jQuery(".offer").length;
				for(i=0;i<4;i++){
					jQuery(ofrs[i]).addClass('of'+i);
				}
				for(i=4;i<ofrs.length;i++){
					jQuery(ofrs[i]).hide();
				}
				var j = 0;
				
				jQuery("#offer_button_next").click(function(){
				if (Math.abs(j) == ofrs.length-1) j=0
					else j++;
					
					jQuery(ofrs).hide()
					jQuery(ofrs).removeClass('of0');
					jQuery(ofrs).removeClass('of1');
					jQuery(ofrs).removeClass('of2');
					jQuery(ofrs).removeClass('of3');
					
					jQuery(ofrs[Math.abs(ofrs.length +j)%ofrs.length]).addClass('of0');
					jQuery(ofrs[Math.abs(ofrs.length +j+1)%ofrs.length]).addClass('of1');
					jQuery(ofrs[Math.abs(ofrs.length +j+2)%ofrs.length]).addClass('of2');
					jQuery(ofrs[Math.abs(ofrs.length +j+3)%ofrs.length]).addClass('of3');
						
					jQuery(ofrs[Math.abs(ofrs.length +j)%ofrs.length]).show();
					jQuery(ofrs[Math.abs(ofrs.length +j+1)%ofrs.length]).show();
					jQuery(ofrs[Math.abs(ofrs.length +j+2)%ofrs.length]).show();
					jQuery(ofrs[Math.abs(ofrs.length +j+3)%ofrs.length]).show();
				});
				
				jQuery("#offer_button_prev").click(function(){
				if (Math.abs(j) == ofrs.length-1) j=0
					else j--;
					
					jQuery(ofrs).hide()
					jQuery(ofrs).removeClass('of0');
					jQuery(ofrs).removeClass('of1');
					jQuery(ofrs).removeClass('of2');
					jQuery(ofrs).removeClass('of3');
					
					jQuery(ofrs[Math.abs(ofrs.length +j)%ofrs.length]).addClass('of0');
					jQuery(ofrs[Math.abs(ofrs.length + j+1)%ofrs.length]).addClass('of1');
					jQuery(ofrs[Math.abs(ofrs.length + j+2)%ofrs.length]).addClass('of2');
					jQuery(ofrs[Math.abs(ofrs.length + j+3)%ofrs.length]).addClass('of3');
					
					jQuery(ofrs[Math.abs(ofrs.length +j)%ofrs.length]).show();
					jQuery(ofrs[Math.abs(ofrs.length + j+1)%ofrs.length]).show();
					jQuery(ofrs[Math.abs(ofrs.length + j+2)%ofrs.length]).show();
					jQuery(ofrs[Math.abs(ofrs.length + j+3)%ofrs.length]).show();
				});
				
			});
