$(document).ready(function(){ //*----------------------- // NAVIGATION //*----------------------- $("#navigation .noSubmenu").hover(function(){ $(".submenuLink").removeClass("selected"); $("#OpenNav").slideUp("fast", function() { $(".submenu").removeClass("target"); }) },function(){ }) $("#LinkServices").hover(function(){ openSubMenu("Services"); targetSubMenu("Services"); },function(){ }) $("#LinkDownload").hover(function(){ openSubMenu("Download"); targetSubMenu("Download"); },function(){ }) $("#LinkLooking").hover(function(){ openSubMenu("Looking"); targetSubMenu("Looking"); },function(){ }) $("#LinkAbout").hover(function(){ openSubMenu("About"); targetSubMenu("About"); },function(){ }) $("#MenuServices").hover(function(){ selectedMenu("Services"); targetSubMenu("Services"); },function(){ }) $("#MenuDownload").hover(function(){ selectedMenu("Download"); targetSubMenu("Download"); },function(){ }) $("#MenuLooking").hover(function(){ selectedMenu("Looking"); targetSubMenu("Looking"); },function(){ }) $("#MenuAbout").hover(function(){ selectedMenu("About"); targetSubMenu("About"); },function(){ }) function selectedMenu(Tab){ $(".submenuLink").removeClass("selected"); $("#Link"+Tab).addClass("selected"); } function openSubMenu(Tab){ $(".submenuLink").removeClass("selected"); $("#Link"+Tab).addClass("selected"); $("#OpenNav").slideDown("fast" , function() { $("#OpenNav").addClass('NavigOpen'); }) } function targetSubMenu(target){ $(".submenu").removeClass("target"); $("#Menu"+target).addClass("target"); } $("#header").hover(function() { }, function(){ $(".submenuLink").removeClass("selected"); $("#OpenNav").slideUp("fast", function() { $(".submenu").removeClass("target"); }) }) //*----------------------- // HOME SLIDER //*----------------------- $(function () { $('#slider1').anythingSlider({ width : 940, // Override the default CSS width height : 270, // Override the default CSS height resizeContents : true, // If true, solitary images/objects in the panel will expand to fit the viewport // Navigation startPanel : 1, // This sets the initial panel hashTags : true, // Should links change the hashtag in the URL? buildArrows : false, // If true, builds the forwards and backwards buttons buildNavigation : true, // If true, buildsa list of anchor links to link to each panel navigationFormatter : null, // Details at the top of the file on this use (advanced use) // Slideshow options autoPlay : true, // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not startStopped : false, // If autoPlay is on, this can force it to start stopped pauseOnHover : false, // If true & the slideshow is active, the slideshow will pause on hover resumeOnVideoEnd : true, // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page playRtl : false, // If true, the slideshow will move right-to-left startText : "", // Start button text stopText : "", // Stop button text delay : 4000, // How long between slideshow transitions in AutoPlay mode (in milliseconds) animationTime : 800, // How long the slideshow transition takes (in milliseconds) easing : "swing" // Anything other than "linear" or "swing" requires the easing plugin }); }); //*----------------------- // SEARCH FIELD //*----------------------- $('.searchbutton').toggle(function(){ $('#searchbutton').addClass("hidden"); $('#searchbuttonOff').removeClass("hidden"); $('#searchform').addClass("opened"); },function(){ $('#searchbutton').removeClass("hidden"); $('#searchbuttonOff').addClass("hidden"); $('#searchform').removeClass("opened"); }) }); //END DOCUMENT READy