jQuery.noConflict();
try{
		jQuery(document).ready(function(){
			
			if(jQuery().fancybox){ //namespace check
				jQuery("#mod_pukkaPictures div.picture a, a[rel*=lightbox]").fancybox({ 
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity':true
				});
				jQuery("#mod_pukkaRooms div.itemPreview ul.mediaAttachmentList a.zoom, a[rel*=lightbox]").fancybox({ 
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity':true
				});
			}
			
			/*ACCOMMODATION PAGE ENLARGE IMAGE*/
			if(jQuery("div#holder").hasClass("page_accommodation")){
				jQuery("a.zoom").click(function(){
					var link=jQuery(this);
					jQuery("ul.mediaAttachmentList li.mediaAttachmentItem:first a",link.parent().parent()).click();
					return false;
				});
			}
			/*END ACCOMMODATION PAGE ENLARGE IMAGE*/					
				
			/* Cycle Plugin */
			if(jQuery().cycle){
				jQuery("#main-visual .imgRotate").cycle({
					prev:'.prev',
					next:'.next',
					fx:'fade',
					speed:500,
					timeout:8000,
					cleartype:1,
					after:function(curr, next, opts){
						jQuery(".caption .text").html(jQuery("#main-visual .imgRotate img:eq("+opts.currSlide+")").attr("alt"));
						jQuery(".caption .last").html(opts.slideCount);
						jQuery(".caption .first").html(opts.currSlide+1);
					}
				});
			}
			/* Cycle Plugin */
			
		});
}catch(error){

}