	//jQuery.browser.msie == true
	//Pass
	jQuery(function() {
			$('.passHD').myPass({
					charReplace : '%u25CF',
					charDuration : 1000
			});
		});
		
		
	//Ani

		//Feedback

		jQuery(function(){

		$("#write2sokolov").click(function(){
		// for ie
		//alert(jQuery.browser.msie);
			if(jQuery.browser.msie){
				$("#write2us1").fadeOut("slow", function() {
		            $("#write2us1").fadeIn("slow").removeClass("h_write2us");
		            $("#write2us1").addClass("write2us");
		        });
		        
		        /*$("#write2us1").removeClass("h_write2us");
                $("#write2us1").addClass("write2us");
                return false;*/
			}else{
				$(".h_write2us").animateToClass("write2us", 700, 'backinout');
			}
			});
		});
		
		jQuery(function(){

		$("#closeWrite").click(function(){
			if(jQuery.browser.msie){
				$("#write2us1").fadeOut("slow", function() {
		            $("#write2us1").fadeOut("slow").removeClass("write2us");
		            $("#write2us1").addClass("h_write2us");
		        });
				//$("#write2us1").removeClass("write2us");
		        //$("#write2us1").addClass("h_write2us");
		        //return false;
		    }else{
				$(".h_write2us").animateToClass("h_write2us", 700, 'backinout');
			}
			});

		});
		
		
		//Map2Sokolov On Top
		jQuery(function(){

		$("#map2sokolov").click(function(){

			if(jQuery.browser.msie){
					$("#map2us1").fadeOut("slow", function() {
			            $("#map2us1").fadeIn("slow").removeClass("h_map2us");
			            $("#map2us1").addClass("map2us");
			        });
			}else{
					$(".h_map2us").animateToClass("map2us", 700, 'backinout');
			}
			});
		});
		
		jQuery(function(){

		$("#closeMap").click(function(){
			if(jQuery.browser.msie){
					$("#map2us1").fadeOut("slow", function() {
			            $("#map2us1").fadeIn("slow").removeClass("map2us");
			            $("#map2us1").addClass("h_map2us");
			        });
			}else{
					$(".h_map2us").animateToClass("h_map2us", 700, 'backinout');
			}
			});

		});



$(document).ready(function() {

		//Services
			$("#fx li a").wrapInner( '<span class="out"></span>' ).append( '<span class="bg"></span>' );


			$("#fx li a").each(function() {
				$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
			});

			$("#fx li a").hover(function() {
				
				$(".out",	this).stop().animate({'top':	'45px'},	250); // move down - hide
				$(".over",	this).stop().animate({'top':	'0px'},		250); // move down - show
				$(".bg",	this).stop().animate({'top':	'0px'},		120); // move down - show

			}, function() {
				
				$(".out",	this).stop().animate({'top':	'0px'},		250); // move up - show
				$(".over",	this).stop().animate({'top':	'-45px'},	250); // move up - hide
				$(".bg",	this).stop().animate({'top':	'-45px'},	120); // move up - hide
			});
					

		//Products
			$("#fx2 li a").wrapInner( '<span class="out"></span>' ).append( '<span class="bg"></span>' );


			$("#fx2 li a").each(function() {
				$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
			});

			$("#fx2 li a").hover(function() {
				
				$(".out",	this).stop().animate({'top':	'45px'},	250); // move down - hide
				$(".over",	this).stop().animate({'top':	'0px'},		250); // move down - show
				$(".bg",	this).stop().animate({'top':	'0px'},		120); // move down - show

			}, function() {
				
				$(".out",	this).stop().animate({'top':	'0px'},		250); // move up - show
				$(".over",	this).stop().animate({'top':	'-45px'},	250); // move up - hide
				$(".bg",	this).stop().animate({'top':	'-45px'},	120); // move up - hide
			});
					

		//Photo
			$("#fx3 li a").wrapInner( '<span class="out"></span>' ).append( '<span class="bg"></span>' );


			$("#fx3 li a").each(function() {
				$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
			});

			$("#fx3 li a").hover(function() {
				
				$(".out",	this).stop().animate({'top':	'45px'},	250); // move down - hide
				$(".over",	this).stop().animate({'top':	'0px'},		250); // move down - show
				$(".bg",	this).stop().animate({'top':	'0px'},		120); // move down - show

			}, function() {
				
				$(".out",	this).stop().animate({'top':	'0px'},		250); // move up - show
				$(".over",	this).stop().animate({'top':	'-45px'},	250); // move up - hide
				$(".bg",	this).stop().animate({'top':	'-45px'},	120); // move up - hide
			});
					
						

		});
