$(window).load(function() { jQuery('.clearField').clearField(); }); function SubmitFrm(){ var name = document.getElementById("Name"); var phone = document.getElementById("Phone"); var email = document.getElementById("Email"); var question = document.getElementById("Comments"); if( (name.value == "") || (name.value == "Name:") ){ alert("Please enter your Name."); name.focus(); } else if( (email.value == "") || (email.value == "Email address:") ){ alert("Please enter your E-mail."); email.focus(); } else if( (phone.value == "") || (phone.value == "Phone:") ){ alert("Please enter your Phone."); phone.focus(); } else if( (question.value == "") || (phone.value == "Question:") ){ alert("Please enter your Question or Comments."); question.focus(); } else{ document.frm.submit(); } } $(function(){ /* $(".slides").each(function(index){ $(".sld" + (index+1)).css("z-index", 10*(index+1)); }); $(".wrap_submenu").css("height", "0px"); */ $(".gallery_ a img, .facebook_ img").hover(function(){ $(this).stop().animate({"opacity": 0.5}); },function(){ $(this).stop().animate({"opacity": 1}); }); /* $('#menu_ ul li').hover( function(){ $(".submenu_wraper_").show(); //$(this).find(".submenu_").show(); $(".submenu_").show(); $('.wrap_submenu_').show(); }, function(){ //$(".submenu_wraper_").hide(); //$(this).find(".submenu_").hide(); //$(".submenu_").hide(); } ); $('.wrap_submenu_').hover( function(){ // //$(this).show(); //$(".submenu_").show(); //$(".submenu_wraper_").show(); }, function(){ // $(this).hide(); $(".submenu_").hide(); $(".submenu_wraper_").hide(); } ); */ $('#menu_ ul li').hover( function(){ $(".submenu_wraper_").show(); $(".submenu_").show(); $('.wrap_submenu_').show(); }, function(){ $(".submenu_wraper_").hide(); //$(this).find(".submenu_").hide(); $(".submenu_").hide(); $('.wrap_submenu_').hide(); } ); jQuery('.tool[title]').qtip({ style: { classes: 'qtip-tipsy qtip-shadow' }, position: { my: 'top center' } }); }); /*$(function(){ $(".header_ ul li a").click(function(){ //alert( $(window).width() ); }); $(".wrp_playvideo").click(function(){ // }); $(".wrp_playvideo").stop(true).animate({'opacity':0},0,'easeOutBack'); $(".wrp_playvideo").show(); $(".wrp_playvideo").hover( function(){ $(this).stop(true).animate({'opacity':1},400,'easeOutBack'); }, function(){ $(this).stop(true).animate({'opacity':0},400,'easeOutBack'); } ); });*/ $(function(){ $(".header_ ul li a").click(function(){ //alert( $(window).width() ); }); $(".wrp_playvideo").click(function(){ // }); /*$(".wrp_playvideo").stop(true).animate({'opacity':1},0,'easeOutBack');*/ $(".wrp_playvideo").css({'background-image' : 'url(http://www.sailfishmarina.com/wp-content/themes/sailfishmarina/imgs/play_video_.png)', 'background-repeat' : 'no-repeat', 'background-position' : 'center' }); $(".wrp_playvideo").show(); $(".wrp_playvideo").hover( function(){ /*$(this).stop(true).animate({'opacity':1},400,'easeOutBack');*/ $(this).css({'background-image' : 'url(http://www.sailfishmarina.com/wp-content/themes/sailfishmarina/imgs/play_video.png)', 'background-repeat' : 'no-repeat', 'background-position' : 'center' }); }, function(){ /*$(this).stop(true).animate({'opacity':0},400,'easeOutBack');*/ $(this).css({'background-image' : 'url(http://www.sailfishmarina.com/wp-content/themes/sailfishmarina/imgs/play_video_.png)', 'background-repeat' : 'no-repeat', 'background-position' : 'center' }); } ); }); jQuery(function(){ jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: true}); jQuery("area[rel^='prettyPhoto'], a[rel^='prettyPhoto'], .prettyPhoto").prettyPhoto({social_tools:''}); jQuery(".mobilemenu_").prettyPhoto({animation_speed:'normal',theme:'facebook',social_tools:''}); jQuery(".slider_").css("height","500px"); var texts = new Array(); texts = ['Welcome to Sailfish Marina Resort
Where the season never ends.','Whether you are looking for a slip for the day
or dockage for the year, we will welcome your boat on one of our three docks.','Enjoy breakfast, lunch and dinner
at the Sailfish Marina Restaurant, where fresh local seafood is the true star of the menu.','The Palm Beach Water Taxi
is the BEST way to "sea" the Palm Beaches.','Sailfish Marina Resort is the home of one of the world s
finest sport fishing charter fleets. Just minutes from the Gulf Stream, our crystalblue waters are swarming with prized game fish waiting to be caught.','Loberfest Gallery
Check out our pictures gallery ยป']; var t = $(this); jQuery('#camera_wrap_2').camera({ height: '40%', loader: 'circle', pagination: false, thumbnails: false, hover: false, opacityOnGrid: false, time: 10000, transPeriod: 1500, fx: 'simpleFade', onLoaded: function () { var ind = t.find('.cameraContents .cameraContent.cameracurrent + div').index(); if (ind < 0) ind = 0; $(".slider_text_").html(texts[ind]); $(".slider_").css("height", "auto"); //alert(texts[ind]); }, onEndTransition: function () { var ind = t.find('.cameraContents .cameraContent.cameracurrent').index(); //alert(texts[ind]); $(".slider_").css("height", "auto"); } }); }); function Validate() { var filter= /^[A-Za-z][A-Za-z0-9_.-]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/ if(jQuery("#First_Name").val()=="") { jQuery("#First_Name").focus(); alert("Please enter your First Name."); } else if(jQuery("#Last_Name").val()=="") { jQuery("#Last_Name").focus(); alert("Please enter your Last Name."); } else if(jQuery("#Email").val()=="") { jQuery("#Email").focus(); alert("Please enter your E-mail."); } else if(!filter.test(jQuery("#Email").val())) { jQuery("#Email").focus(); alert("E-mail is wrong."); } else { jQuery.post("http://www.sailfishmarina.com/sendemail.php",$("#formu").serialize(),function(data){ //alert(data); jQuery("#First_Name").val(""); jQuery("#Last_Name").val(""); jQuery("#Email").val(""); jQuery("#Phone").val(""); jQuery("#Comments").val(""); alert("Your message has been sent successfully. We will contact you soon. Thank you."); }); } } function ValidateDockage() { var filter= /^[A-Za-z][A-Za-z0-9_.-]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/ if(jQuery("#Your_Name").val()=="") { jQuery("#Your_Name").focus(); // alert("Please enter Your Name."); } else if(jQuery("#Company_Name").val()=="") { jQuery("#Company_Name").focus(); // alert("Please enter your Company Name."); } else if(jQuery("#Email").val()=="") { jQuery("#Email").focus(); // alert("Please enter your E-mail."); } else if(!filter.test(jQuery("#Email").val())) { jQuery("#Email").focus(); // alert("E-mail is wrong."); } else if(jQuery("#Comments").val()=="") { jQuery("#Comments").focus(); // alert("Please enter your Company Name."); } else { jQuery.post("http://www.sailfishmarina.com/sendemail.php",$("#formu").serialize(),function(data){ //alert(data); jQuery("#Your_Name").val(""); jQuery("#Company_Name").val(""); jQuery("#Email").val(""); jQuery("#Phone").val(""); jQuery("#Comments").val(""); alert("Your message has been sent successfully. We will contact you soon. Thank you."); }); } } function ValidateApp() { //alert(jQuery('#I_understand').attr('checked')); var filter= /^[A-Za-z][A-Za-z0-9_.-]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/ if(jQuery("#Type_of_Art_Displayed").val()=="") { jQuery("#Type_of_Art_Displayed").focus(); alert("Please enter your Type of Art Displayed."); } else if(jQuery("#Artist_Name").val()=="") { jQuery("#Artist_Name").focus(); alert("Please enter your Artist Name."); } else if(jQuery("#Phone").val()=="") { jQuery("#Phone").focus(); alert("Please enter your Phone."); } else if(jQuery("#Email").val()=="") { jQuery("#Email").focus(); alert("Please enter your E-mail."); } else if(!filter.test(jQuery("#Email").val())) { jQuery("#Email").focus(); alert("E-mail is wrong."); } else if(!jQuery('#I_understand').is(':checked')) { jQuery("#I_understand_that_I_show_my_art_or_craft_in_accordance_with_the_rules_and_guidelines_set_by_the_Sailfish_Marina").focus(); alert("I understand that I show my art or craft in accordance with the rules and guidelines set by the Sailfish Marina must be checked"); } else { jQuery.post("http://www.sailfishmarina.com/sendemailapp.php",$("#formapp").serialize(),function(data){ jQuery("#Type_of_Art_Displayed").val(""); jQuery("#Artist_Name").val(""); jQuery("#Email").val(""); jQuery("#Phone").val(""); jQuery("#Drivers_License").val(""); jQuery("#Address").val(""); jQuery("#City").val(""); jQuery("#State").val(""); jQuery("#Zip").val(""); jQuery("#Month_Youd_Like_to_Show").val(""); jQuery('#I_understand').attr('checked', false); alert("We have received your application and you will be contacted within 5 business days. Thanks and have a great day. "); }); } } function ValidateSurveyForm() { var filter= /^[A-Za-z][A-Za-z0-9_.-]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/ if(jQuery("#name").val()=="") { jQuery("#name").focus(); alert("Please enter your Name."); } else if(jQuery("#email").val()=="") { jQuery("#email").focus(); alert("Please enter your E-mail."); } else if(!filter.test(jQuery("#email").val())) { jQuery("#email").focus(); alert("E-mail is wrong."); } else { jQuery.post("http://www.sailfishmarina.com/sendemailsurveyapp.php",$("#formsurvey").serialize(),function(data){ //alert(data); alert("We have received your survey submission. Thanks and have a great day."); jQuery("#name").val(""); jQuery("#email").val(""); jQuery("#comments").val(""); jQuery("#address").val(""); jQuery("#city").val(""); jQuery("#state").val(""); jQuery("#zip").val(""); jQuery("#phone").val(""); }); } }