var $j = jQuery.noConflict(); // **DROPDOWN MENU $j(document).ready(function() { $j(".sub-nav-a dl").addClass("dropdown"); $j(".sub-nav-b dl").addClass("dropdown"); $j("dl.dropdown").hover( function () { $j(this).children("dt").css("cursor","pointer"); $j(this).children("dd").fadeIn("fast"); }, function () { $j(this).children("dd").fadeOut("fast"); } ); $j("#hero-southgate").cycle({ fx: 'fade', random: 1, speed: 2200, timeout: 7400 }); $j("#hero-freshwater").cycle({ fx: 'fade', random: 1, speed: 2200, timeout: 7500 }); // **VALIDATIONENGINE $j("#fcontact").validationEngine({ // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft, centerRight, bottomRight promptPosition: "topRight", success : false, failure : function() {} }) $j("#qkdwn").validationEngine({ // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft, centerRight, bottomRight promptPosition: "topLeft", success : false, failure : function() {} }) /* Download Form blur */ $j("#qkdwn input").focus(function() { if($j(this).hasClass("dflt")) { $j(this).attr("value","").removeClass("dflt"); } }); $j("#qkdwn input").blur(function() { if($j(this).val()=="") { if($j(this).attr("id") == "qkdwn-name") { $j(this).val('Full name').addClass("dflt"); } else if($j(this).attr("id") == "qkdwn-email") { $j(this).val('Email address').addClass("dflt"); } } }); $j("#fcontact-arrival").datepicker({ dateFormat: 'dd-mm-yy' }); $j("#fcontact-departure").datepicker({ dateFormat: 'dd-mm-yy' }); });