jQuery.noConflict();

jQuery(window).load(function() {
		  jQuery('#featured').orbit({
          animation: 'horizontal-slide',                  // fade, horizontal-slide, vertical-slide, horizontal-push
          animationSpeed: 800,                // how fast animtions are
          timer: true, 			 // true or false to have the timer
          advanceSpeed: 3000, 		 // if timer is enabled, time between transitions 
          pauseOnHover: false, 		 // if you hover pauses the slider
          startClockOnMouseOut: false, 	 // if clock should start on MouseOut
          startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
          directionalNav: true, 		 // manual advancing directional navs
          captions: true, 			 // do you want captions?
          captionAnimation: 'fade', 		 // fade, slideOpen, none
          captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
          bullets: false,			 // true or false to activate the bullet navigation
          bulletThumbs: false,		 // thumbnails for the bullets
          bulletThumbLocation: '',		 // location from this file where thumbs will be
          afterSlideChange: function(){} 	 // empty function 
        });
		});
		
jQuery(function(){

jQuery("select[name=typNier]").change(function() {
var test=jQuery(this).val();
jQuery('#testtt').text(test);
  if(jQuery(this).val()=='mieszkanie' || jQuery(this).val()=='dom' || jQuery(this).val()=='biuro' || jQuery(this).val()==''){
  if(jQuery(this).val()=='dom'){
	  jQuery('.rok').show();
	  jQuery('.pietro').hide();
	  jQuery('.rodzBud').hide();
	  jQuery('.balkon').hide();
	  jQuery('.winda').hide();
	}else{
	  jQuery('.pietro').show();
	  jQuery('.rodzBud').show();
	  jQuery('.balkon').show();
	  jQuery('.winda').show();	
	  jQuery('.rok').show();
	}
  }else{
    jQuery('.pietro').hide();
	jQuery('.rodzBud').hide();
	jQuery('.balkon').hide();
	jQuery('.winda').hide();
	jQuery('.rok').hide();
  }
});

  jQuery('textarea.required').click(function(){
  jQuery(this).text("Jestem zainteresowany/a powyższą ofertą proszę o kontakt.");             
  })
  
  jQuery('.artical img.buttonMainSmall').click(function(){
    jQuery('.longInfo').css('display','none');
	jQuery('.shortInfo').css('display','block');
    jQuery(this).parent().prev().prev().css('display','none');      
    jQuery(this).parent().prev().toggle('200', function() {
    // Animation complete.
  });
	
  })
  
  jQuery('.footerSchowek a').mouseover(function(){
    jQuery(this).css('color','red');
  }).mouseout(function(){
    jQuery(this).css('color','white');
  })

  jQuery('#storeLink').css('textDecoration','underline');
  
	// validate signup form on keyup and submit
	jQuery("#commentForm").validate({
		rules: {
			email: {
				required: true,
				email: true
			},
		},
		messages: {
			email: "Proszę wpisać prawidłowy adres e-mail",

		}
	});
	 
});

