function fancyPol(){
	//$('.accomodation-description').html('vv');
	
	$('#content').css('overflow: hidden;');
	
	if($('.accomodation-gallery-image').length==0){
		if($('.accomodation-images').length!=0){
		//ski
			$('.accomodation-images a').fancyzoom();
			
			$(".picture-projector-big ul").jqGalScroll({height:250, width:435, speed:1000, thumbcointainer: $(".thumbs-box")});

		}else{
			
		//glowna
 $(".accordion").accordion({autoHeight: false});

  $(".picture-projector-big ul").jqGalScroll({height:250, width:435, speed:1000});

  var $projectorTimer = $.timer(5000, function (timer) {

    var $next = $(".jqGSPagination").find("a.selected").parent().next().find("a");

    if( $next.length < 1 ){

      $next = $(".jqGSPagination").find("a").first();

    }

    $next.click();

    });

  $(".jqGSPagination").find("a").click( function(){

    $projectorTimer.reset(5000)

  });
		
		
		}
		
	}else {
	//oferta nie ski
	$('.accomodation-gallery-image a').fancyzoom();
	$(".picture-projector-big ul").jqGalScroll({height:250, width:435, speed:1000});

	}
	
	
	/*
 $(".accordion").accordion({autoHeight: false});

  $(".picture-projector-big ul").jqGalScroll({height:250, width:435, speed:1000});

  var $projectorTimer = $.timer(5000, function (timer) {

    var $next = $(".jqGSPagination").find("a.selected").parent().next().find("a");

    if( $next.length < 1 ){

      $next = $(".jqGSPagination").find("a").first();

    }

    $next.click();

    });

  $(".jqGSPagination").find("a").click( function(){

    $projectorTimer.reset(5000)

  });	
	*/
	

/* <![CDATA[ */
  $('.button-book-holidays').bind({
    mouseover: function(){ $('[rel="'+$(this).attr('rel')+'"]').addClass('col-selected'); $(this).addClass('over').parent().find('td,th').addClass('row-selected'); },
    mouseout:  function(){ $('[rel="'+$(this).attr('rel')+'"]').removeClass('col-selected'); $(this).removeClass('over').parent().find('td,th').removeClass('row-selected');},
    click: function(){
      if( this.id ){
        window.open(
              'http://www.app.gandalftravel.com/formularz2.php?id='+this.id.substring( 1 ),
              'd',
              'toolbar=no,scrollbars=yes,resizable=yes,status=no,location=no,directories=no,width=1050,height=500,menubar=no,title=no'
            );
        }
      }  });
  $('a.event-price').click( function(){return $(this).parent.click();} );

   //if ( !( jQuery.browser.msie && parseInt(jQuery.browser.version) < 8 ) ) {
   //  $('a.event-price').wTooltip();
   //}

/* ]]> */

}

