// // psd2css.js // // This is where all the javascript required by your design is written. // // Originally generated at http://psd2cssonline.com // June 26, 2011, 12:48 pm with psd2css Online version 1.95 var timerId; $(document).ready(function(){ // This is required for the PNG fix to work. if (window.DD_belatedPNG) DD_belatedPNG.fix('.pngimg'); // This is some javascript to stop IE from displaying the img alt attributes // when you mouse over imagess. If you would like IE to display the alt attributes, // just comment out the following 4 lines. Don't worry, if you leave this in // place, your ALT attributes are still readable by the search engines. var tmpalt; $("img").hover( function(){ tmpalt = $(this).attr( "alt" ); $(this).attr( "alt", "" ); }, function(){ $(this).attr( "alt", tmpalt ); }); // This is code to handle all of the _linkover events. It works by // creating a special Wrap class, adding it to the link and linkover // divs of each link and linkover pair, and assigning a hover event to // that. $("#Layer-33").addClass("Wrap-27-33").hide(); $("#Layer-27").addClass("Wrap-27-33"); $(".Wrap-27-33").hover( function(){ $("#Layer-33").show(); $("#Layer-27").hide(); }, function(){ $("#Layer-27").show(); $("#Layer-33").hide(); }); $("#Layer-34").addClass("Wrap-28-34").hide(); $("#Layer-28").addClass("Wrap-28-34"); $(".Wrap-28-34").hover( function(){ $("#Layer-34").show(); $("#Layer-28").hide(); }, function(){ $("#Layer-28").show(); $("#Layer-34").hide(); }); $("#Layer-35").addClass("Wrap-29-35").hide(); $("#Layer-29").addClass("Wrap-29-35"); $(".Wrap-29-35").hover( function(){ $("#Layer-35").show(); $("#Layer-29").hide(); }, function(){ $("#Layer-29").show(); $("#Layer-35").hide(); }); $("#Layer-36").addClass("Wrap-30-36").hide(); $("#Layer-30").addClass("Wrap-30-36"); $(".Wrap-30-36").hover( function(){ $("#Layer-36").show(); $("#Layer-30").hide(); }, function(){ $("#Layer-30").show(); $("#Layer-36").hide(); }); $("#Layer-37").addClass("Wrap-31-37").hide(); $("#Layer-31").addClass("Wrap-31-37"); $(".Wrap-31-37").hover( function(){ $("#Layer-37").show(); $("#Layer-31").hide(); }, function(){ $("#Layer-31").show(); $("#Layer-37").hide(); }); $("#Layer-38").addClass("Wrap-32-38").hide(); $("#Layer-32").addClass("Wrap-32-38"); $(".Wrap-32-38").hover( function(){ $("#Layer-38").show(); $("#Layer-32").hide(); }, function(){ $("#Layer-32").show(); $("#Layer-38").hide(); }); $("#Layer-44").addClass("Wrap-40-44").hide(); $("#Layer-40").addClass("Wrap-40-44"); $(".Wrap-40-44").hover( function(){ $("#Layer-44").show(); $("#Layer-40").hide(); }, function(){ $("#Layer-40").show(); $("#Layer-44").hide(); }); $("#Layer-45").addClass("Wrap-41-45").hide(); $("#Layer-41").addClass("Wrap-41-45"); $(".Wrap-41-45").hover( function(){ $("#Layer-45").show(); $("#Layer-41").hide(); }, function(){ $("#Layer-41").show(); $("#Layer-45").hide(); }); $("#Layer-46").addClass("Wrap-42-46").hide(); $("#Layer-42").addClass("Wrap-42-46"); $(".Wrap-42-46").hover( function(){ $("#Layer-46").show(); $("#Layer-42").hide(); }, function(){ $("#Layer-42").show(); $("#Layer-46").hide(); }); $("#Layer-47").addClass("Wrap-43-47").hide(); $("#Layer-43").addClass("Wrap-43-47"); $(".Wrap-43-47").hover( function(){ $("#Layer-47").show(); $("#Layer-43").hide(); }, function(){ $("#Layer-43").show(); $("#Layer-47").hide(); }); $("#Layer-51").addClass("Wrap-49-51").hide(); $("#Layer-49").addClass("Wrap-49-51"); $(".Wrap-49-51").hover( function(){ $("#Layer-51").show(); $("#Layer-49").hide(); }, function(){ $("#Layer-49").show(); $("#Layer-51").hide(); }); $("#Layer-52").addClass("Wrap-50-52").hide(); $("#Layer-50").addClass("Wrap-50-52"); $(".Wrap-50-52").hover( function(){ $("#Layer-52").show(); $("#Layer-50").hide(); }, function(){ $("#Layer-50").show(); $("#Layer-52").hide(); }); // This is code to handle the services_hmenu menu $("#Layer-48").hide().addClass("allMenus"); $("#Layer-36").mouseover(function(e){ e.preventDefault(); $(".allMenus").hide(); $("#Layer-48").show(); // Remove the following 2 lines if you don't want this menu to dissappear // automatically. Change how long the menu stays visible by changing // the 4000 to another number of milliseconds clearTimeout( timerId ); timerId = setTimeout( '$("#Layer-48").hide()', 4000 ); }); // This is code to handle the about_hmenu menu $("#Layer-39").hide().addClass("allMenus"); $("#Layer-37").mouseover(function(e){ e.preventDefault(); $(".allMenus").hide(); $("#Layer-39").show(); // Remove the following 2 lines if you don't want this menu to dissappear // automatically. Change how long the menu stays visible by changing // the 4000 to another number of milliseconds clearTimeout( timerId ); timerId = setTimeout( '$("#Layer-39").hide()', 4000 ); }); });