jQuery(document).ready(function() { superMsg(); // fix table $.each($('table.clearborder tr'), function(k, v) { $(v).find('td:first').css('border-left', 'none'); $(v).find('td:last').css('border-right', 'none'); }); // cont-biling function change_moneyclient() { var th = $('select[name=moneyclient] option:selected').attr('class'); $('#moneyclient').attr('class', th); } change_moneyclient(); $('select[name=moneyclient]').live('change', change_moneyclient); // cont-settings function change_talkclient() { var th = $('select[name=talkclient] option:selected').attr('class'); $('#talkclient').attr('class', th); } change_talkclient(); $('select[name=talkclient]').live('change', change_talkclient); // cont-vpn $.each($('.cont-vpn .to3 td div'), function (k, v) { if ($(v).height() > $('.cont-vpn .to3 td div').height()) $('.cont-vpn .to3 td div').height($(v).height()); }); $('.cont-vpn .to3 td div span').css('margin-top', ($('.cont-vpn .to3 td div').height() +4) + 'px'); $('.cont-vpn .to3 td *').live('mouseover', function() { $('.cont-vpn .to3 td').removeClass('hover'); $(this).closest('td').addClass('hover'); }) .live('mouseout', function() { $('.cont-vpn .to3 td').removeClass('hover'); }); $('.cont-vpn .to3 div').live('click', function() { document.location = $(this).find('a').attr('href'); }); // cont-vpn-list $('.cont-vpn.cont-list .enabler').css('margin-top', parseInt((parseInt($('.cont-vpn.cont-list .short').height() + 30) - parseInt($('.cont-vpn.cont-list .enabler').height()))/2) + 'px'); // authzone-login function change_authtype() { var th = $('select[name=authtype] option:selected').val(); if (th == 'pass') $('#authtype-pass').show(); else $('#authtype-pass').hide(); } $('select[name=authtype]').live('change', change_authtype); });