").attr("src",advanced_url); jQuery(image).load(function() { var originalWidth = 326; var widthDiff = this.width - originalWidth; jQuery("#login h1 a").height(this.height); jQuery("#login h1 a").width(this.width); jQuery("#login h1 a").css("background-size",this.width+"px "+this.height+"px"); var loginWidth = jQuery('#login').width(); var originalLoginWidth = 320; var photoWidth = this.width; if(loginWidth > photoWidth){ jQuery("#login h1 a").css('margin','auto'); }else{ jQuery("#login h1 a").css('margin-left',-(widthDiff/2)+((loginWidth-originalLoginWidth)/2)+"px"); } jQuery("#login h1 a").show(); }); jQuery("#login h1 a").attr("title",""); if(jQuery('p#nav').size() > 0){ jQuery('p#nav').html(jQuery('p#nav').html().replace('|','')); } jQuery('p#nav a').each(function(){ if(jQuery(this).attr('href').indexOf('register') != -1){ jQuery(this).remove(); } }); if(jQuery('p#nav').size() > 0){ jQuery('p#nav').html(jQuery('p#nav').html().replace('|','')); } jQuery('p#nav a').each(function(){ if(jQuery(this).attr('href').indexOf('lostpassword') != -1){ jQuery(this).remove(); } }); jQuery('label,h1,h2,h3,h4,h5,h6,a,p,.form-table th,.form-wrap label').css('text-shadow','none'); jQuery("body.login, html").css("background",""); }catch(err){ console.log("AGCA - LOGIN ERROR: " + err.name + " / " + err.message); }finally{ jQuery('html').show(); jQuery('html').css('visibility','visible'); } }); /* ]]> */