var cuttoffTime;var current_time;var admin_reservation;function changeLanguage(lang){if("_"+lang.toLowerCase()==currentLanguage||(lang=="ENG"&&currentLanguage==''))return;else{jQuery.post(baseUrl+"/common/language",{language:lang},function(data){window.location=window.location})}}function getTiming(hotelid){var hotel_id=hotelid.value;if(hotel_id==-1){jQuery("#specialreq").html('<span class="red">*</span>'+specialreq);jQuery("#specialmsg").html(specialmsg)}else{jQuery("#specialreq").html(specialreq);jQuery("#specialerror").html('');jQuery("#specialmsg").html('')}}checked=false;function checkedAll(frm1,type){var aa=document.getElementById(frm1);if(checked==false&&type==0){checked=true}else{checked=false}if(type==0&&checked==false){return false}if(type==1&&checked==true){return false}for(var i=0;i<aa.elements.length;i++){aa.elements[i].checked=checked}}function switchImgVid(tab){if(tab=="video"){jQuery("#video").show();jQuery("#images").hide()}else{jQuery("#video").hide();jQuery("#images").show()}}var timer;function changeytvideo(id){id=id.replace("ytthumb","");var vidpath=jQuery("#ytpath"+id).val();jQuery("#videoplayer").html('<object width="300" height="200"><param name="movie" value="'+vidpath+'&hl=en_US&fs=1&rel=0&border=1$autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+vidpath+'&hl=en_US&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="200">')}function changeytthumb(id){timer=setInterval(switchytimg,1000,id)}function switchytimg(id){var thumbsrc=jQuery("#"+id).attr("src");var picname=thumbsrc.substring(thumbsrc.lastIndexOf("/"),thumbsrc.length);var newimg;if(picname.indexOf("1")!=-1){newimg="/2.jpg"}else if(picname.indexOf("2")!=-1){newimg="/3.jpg"}else if(picname.indexOf("3")!=-1){newimg="/1.jpg"}var newthumb=thumbsrc.replace(picname,newimg);jQuery("#"+id).attr("src",newthumb)}function setytthumb(id){clearInterval(timer);var thumbsrc=jQuery("#"+id).attr("src");var picname=thumbsrc.substring(thumbsrc.lastIndexOf("/"),thumbsrc.length);var newthumb=thumbsrc.replace(picname,"/1.jpg");jQuery("#"+id).attr("src",newthumb)}function getPickuptime(id){var startuptime=jQuery("#startup_time").val();var hotelid=jQuery("#Hotel_id").val();if(hotelid!=-1){if(hotelid!=''&&startuptime!=''){var url=baseurl+'/reservation/pickuptime/?startup_time='+startuptime+'&hotel_id='+hotelid;jQuery.ajax({type:"GET",url:url,success:function(msg){jQuery("#pickuptime").show();jQuery("#pickuptime").html(' <label class="rsubl">'+pickup+'</label><span class="left"> :</span><span>'+msg+'</span> ')}})}else{jQuery("#pickuptime").hide()}jQuery("#specialreq").html(specialreq);jQuery("#specialerror").html('');jQuery("#specialmsg").html('')}else{jQuery("#pickuptime").hide();jQuery("#specialreq").html('<span class="red">*</span>'+specialreq);jQuery("#specialmsg").html(specialmsg)}}function slideshow(){var url=baseurl+'/index/slideshow/';jQuery.ajax({type:"GET",url:url,success:function(msg){jQuery("#Slideshow").html(msg);jQuery('#Slideshow').innerfade({speed:'slow',timeout:5000,type:'sequence',containerheight:'310px'})}})}function galleryslideshow(){var url=baseurl+'/index/galleryslideshow/';jQuery.ajax({type:"GET",url:url,success:function(msg){jQuery("#gallery").html(msg);jQuery('#gallery').innerfade({speed:'slow',timeout:4000,type:'sequence',containerheight:'320px'})}})}function adventure(){var url=baseurl+'/index/adventure/';jQuery.ajax({type:"GET",url:url,success:function(msg){jQuery("#pkgslidemain").html(msg)}})}jQuery(document).ready(function(){slideshow();galleryslideshow()});
