jQuery.noConflict(); jQuery(document).ready(function(){ /** * This will remove username/password text in the login form fields **/ jQuery('.username, .password').show(function(){ if(jQuery(this).val() != '') { jQuery(this).css({backgroundPosition: "0 -32px"}); } else { jQuery(this).css({backgroundPosition: "0 0"}); } }); jQuery('.username, .password').focusout(function(){ if(jQuery(this).val() != '') { jQuery(this).css({backgroundPosition: "0 -32px"}); } else { jQuery(this).css({backgroundPosition: "0 0"}); } }); jQuery('.username, .password').focusin(function(){ if(jQuery(this).val() == '') { jQuery(this).css({backgroundPosition: "0 -32px"}); } }); /** * Message Notify Drop Down **/ jQuery('.messagenotify .wrap, .alertnotify .wrap').click(function(){ var t = jQuery(this).parent(); var url = t.attr('href'); if(t.hasClass('showmsg')) { t.removeClass('showmsg'); t.find('.thicon').removeClass('thiconhover'); t.parent().find('.dropbox').remove(); } else { jQuery('.topheader li').each(function(){ jQuery(this).find('.showmsg').removeClass('showmsg'); jQuery(this).find('.thicon').removeClass('thiconhover'); jQuery(this).find('.dropbox').remove(); }); t.addClass('showmsg'); t.find('.thicon').addClass('thiconhover'); t.parent().append('
'); jQuery.post(url,function(data){ jQuery('.dropbox').append(data); }); } return false; }); jQuery(document).click(function(event) { var msglist = jQuery('.dropbox'); if(!jQuery(event.target).is('.dropbox')) { if(msglist.is(":visible")) { msglist.prev().removeClass('showmsg'); msglist.prev().find('.thicon').removeClass('thiconhover'); msglist.remove(); } } }); /** * Sidebar accordion **/ jQuery('#accordion h3').click(function() { if(jQuery(this).hasClass('open')) { jQuery(this).removeClass('open'); jQuery(this).next().slideUp('fast'); } else { jQuery(this).addClass('open'); jQuery(this).next().slideDown('fast'); }return false; }); //////////// TABS ///////////////// jQuery( '#tabs' ).tabs(); /** * Notification **/ jQuery('.notification .close').click(function(){ jQuery(this).parent().fadeOut(); }); /** Make footer always at the bottom**/ if(jQuery('body').height() > jQuery(window).height()) { jQuery('.footer').removeClass('footer_float'); } /**DROP DOWN MENU**/ jQuery(".subnav").css({display: "none"}); // Opera Fix jQuery(".tabmenu li").hover(function(){ jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400); },function(){ jQuery(this).find('ul:first').css({visibility: "hidden"}); }); });