$(window).load(function (jQuery) { $("#toplefttab").liquidCanvas("[fill{color:#4199b9}] => bottom_roundedRect{radius:5}"); $("#about").liquidCanvas("[fill{color:#3b94b6}] => roundedRect{radius:5}"); $("#contentwrap").liquidCanvas("gradient{from:#97ccdc; to:#fff;} => roundedRect{radius:5}"); $("#contentinnerwrap").liquidCanvas("[fill{color:#fff}] => roundedRect{radius:5}"); $('#slideShow').cycle({ fx: 'fade' }); $('a[rel=lightbox]').colorbox(); $("ul.dropdown li").dropdown(); $('#nav>li>ul').hide(); $('#nav>li').mouseover(function(){ // create a reference to the active element (this) // so we don't have to keep creating a jQuery object $heading = $(this); // check to see if any sub menus are open if ($heading.siblings().find('ul:visible').size()!=0) { // close open sub menus $heading.siblings().find('ul:visible').slideUp(100, function(){ // open current menu if it's closed $heading.find('ul:hidden').slideDown(100); }); } else { // open current menu if it's closed $heading.find('ul:hidden').slideDown(100); } }); }); $.fn.dropdown = function() { $(this).hover(function(){ $(this).addClass("hover"); $('> .dir',this).addClass("open"); $('ul:first',this).css('visibility', 'visible'); },function(){ $(this).removeClass("hover"); $('.open',this).removeClass("open"); $('ul:first',this).css('visibility', 'hidden'); }); } function bookmarksite(title, url) { if (window.sidebar) window.sidebar.addPanel(title, url, ""); else if (window.opera && window.print) { var elem = document.createElement('a'); elem.setAttribute('href', url); elem.setAttribute('title', title); elem.setAttribute('rel', 'sidebar'); elem.click(); } else if (document.all) window.external.AddFavorite(url, title); } function reDo() { window.location.reload() } window.onresize = reDo; function Doit(imgName, imgObjName) { if (document.images) { document.images[imgName].src = imgObjName; } }