jQuery.noConflict();
try{
		jQuery(document).ready(function(){
					
			if(jQuery().fancybox){ //namespace check
				jQuery("#mod_pukkaPictures .picture a").fancybox({
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity': true
				});
				jQuery("#mod_pukkaGalleries ul li a").fancybox({
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity': true
				});
				jQuery("#mod_pukkaRooms ul li a").fancybox({
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity': true
				});
				jQuery("#mod_pukkaNews ul li a").fancybox({
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity': true
				});
				jQuery("#page_servicesandfacilities #main-content .contentBlock .servicesContentWrapper .servicesThmbList li a").fancybox({
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity': true
				});
			}
			
			jQuery("input[value=Magazine], [value=Online Travel Agent], [value=Web / blog / forum], [value=Other]").click(function() {
				jQuery("#radioLog").html( jQuery("input:checked").val() + " is selected" );
				jQuery("#radioLog, .otherways").css("display","block");				
					jQuery("#ff_submit1").click(function () {
					if ( jQuery('#ff_otherways1').is(':empty') ){
							alert("Please Enter A Specification !");
						}
					});				
				});
				
			jQuery("input[value=seo], [value=googleadvertisment], [value=friend], [value=salesrep], [value=enewsletter]").click(function() {
				jQuery("#radioLog, .otherways").css("display","none");
					jQuery("#ff_submit1").click(function () {
					jQuery('#ff_otherways1').remove();
					});	
				});
				
			// jQuery("#ff_submit1").click(function () {
			    // if ( jQuery('#ff_otherways1').is(':empty') ){
						// alert("Check!");
					// }
				// });

			
			if(jQuery().cycle){ //namespace check
				jQuery('#photo-gallery').append('<div class="nav-bar"><span class="previous"><a href=""><img src="/templates/main/images/previous-photo.png" width="18" height="49" alt="" /></a></span><span class="play"><a href=""><img src="/templates/main/images/pause-slideshow.png" width="62" height="62" alt="" /></a></span><span class="next"><a href=""><img src="/templates/main/images/next-photo.png" width="18" height="49" alt="" /></a></span></div>');	
				
				jQuery('#photo-gallery .photos').cycle({
					fx: 'fade', 
					speed:  800, 
					timeout: 2000, 
					next:   '#photo-gallery .nav-bar .next a', 
					prev:   '#photo-gallery .nav-bar .previous a' 
				});
				
				jQuery("#photo-gallery .nav-bar .play a").addClass("playing");
				
				jQuery("#photo-gallery .nav-bar .play a").click(function(){
					var play=jQuery(this);
					if(play.hasClass("playing")){
						jQuery('#photo-gallery .photos').cycle("pause"); 
						jQuery("#photo-gallery .nav-bar .play img").attr("src","/templates/main/images/play-slideshow.png");
						play.removeClass("playing");
						play.addClass("paused");
					}else if(play.hasClass("paused")){
						jQuery('#photo-gallery .photos').cycle("resume"); 
						jQuery("#photo-gallery .nav-bar .play img").attr("src","/templates/main/images/pause-slideshow.png");
						play.removeClass("paused");
						play.addClass("playing");
					}
					return false;
				});
			
		jQuery('#offersCarousel ul').after('<div id="pager">').cycle({ 
					fx:     'fade', 
					speed:  'slow', 
					timeout: 3000,
					pause:   1,
					pager:  '#offersCarousel #pager',
					cleartypeNoBg:true,
					cleartype:  1
				});
			
			}
			
		// CALENDAR SETTINGS - START
			if(jQuery().datepicker){
				jQuery("#ff_arrivalDate1, #ff_dateOfBirth1").datepicker({dateFormat: 'dd/mm/yy'});
			}
		// CALENDAR SETTINGS - END
			
			/* ACCORDIONS */
				
				// jQuery("#mod_pukkaRooms .moduleBody").accordion({
					// active: 0,
					// header: 'h3',
					// event: 'click'
				// });
				
			/* END ACCORDIONS */
			
		});
}catch(error){

}
