function correctPageLoad(a){if(document.getElementById(a)!=null){document.getElementById(a).style.display="none"
}}function getTocDefaultUrlExtension(){if(tocDir!==null){return tocDir.substring(0,tocDir.indexOf("/"))
}else{return""
}}function ifJavascriptisEnabled(){if(document.getElementById("scriptRouteMenu")!=null){document.getElementById("scriptRouteMenu").style.display="block"
}if(document.all){if(document.getElementById("mainDataDiv")!=null){document.getElementById("mainDataDiv").style.marginTop="-14px";
Ext.getBody().clean(true)
}}}function showButtons(a){if(document.getElementById(a)!=null){if(Ext.isIE6){document.getElementById(a).style.display="inline"
}else{document.getElementById(a).style.display="block"
}}}function makeDraggableHelp(a){var b=Ext.get(a);
b.dd=new Ext.dd.DD(a,"group",{defaultPadding:5});
b.dd.setOuterHandleElId(a+"Draggable");
b.dd.startDrag=function(){this.constrainTo(Ext.getBody())
}
}function showHideServiceCallingStations(a,b){var d=document.getElementById(a);
var c=document.getElementById(b);
if(d.style.display!="none"){jcheckSlideOut(a,"t",500,{duration:0.5,useDisplay:true});
d.style.display="none";
c.src=c.src.replace("hide","show");
c.alt="show calling pattern";
c.title="show calling pattern"
}else{d.style.display="block";
jcheckSlideIn(a,"t",500,{duration:0.5,useDisplay:true});
c.src=c.src.replace("show","hide");
c.alt="hide calling pattern";
c.title="hide calling pattern";
c.style.paddingTop="5px"
}}function showEmissionDataBox(e,h,d,c,b,g){var f=document.getElementById("showHideButtonCo2Emission");
var a=document.getElementById(g);
if((f.src.search("btn_hide_f2.png")>0)){jcheckSlideOut(e,"t",500,{duration:0.5,useDisplay:true});
document.getElementById(e).style.display="none";
f.src=f.src.replace("hide_f2.png","show_f2.png");
f.alt="show button";
f.title="show button";
if(a!=null){a.style.display="none"
}}else{if((f.src.search("btn_show_f2.png")>0)){document.getElementById(e).style.display="block";
getDistance(h,d,c,b);
if(distanceInMiles>=minTreshholdDistance){document.getElementById("co2EditSectionDiv").style.display="block";
document.getElementById("co2Data").style.display="block";
document.getElementById("colourSchemeTable").style.display="block";
document.getElementById("co2DisclaimerMessage").style.display="block";
document.getElementById("editCo2EmissionGraph").style.display="block";
document.getElementById("co2MinimumDistanceInfo").style.display="none";
document.getElementById("distanceCal").innerHTML=distanceInMiles+"   miles. ";
printGraph(1);
f.src=f.src.replace("show_f2.png","hide_f2.png");
f.alt="hide button";
f.title="hide button";
if(a!=null){a.style.display="block"
}jcheckSlideIn(e,"t",500,{duration:0.5,useDisplay:true})
}else{document.getElementById("co2EditSectionDiv").style.display="none";
document.getElementById("co2Data").style.display="none";
document.getElementById("colourSchemeTable").style.display="none";
document.getElementById("co2DisclaimerMessage").style.display="none";
document.getElementById("editCo2EmissionGraph").style.display="none";
document.getElementById("co2MinimumDistanceInfo").style.display="block"
}}}}function generateCO2GraphOnPageLoad(){if(distanceInMiles>=minTreshholdDistance){printGraph(1);
document.getElementById("distanceCal").innerHTML=distanceInMiles+"   miles. ";
if(document.getElementById("co2EmissionInformation")!=null){document.getElementById("co2EmissionInformation").style.display="block"
}if(document.getElementById("co2Data")!=null){document.getElementById("co2Data").style.display="block"
}if(document.getElementById("co2DisclaimerMessage")!=null){document.getElementById("co2DisclaimerMessage").style.display="block"
}if(document.getElementById("colourSchemeTable")!=null){document.getElementById("colourSchemeTable").style.display="block"
}if(document.getElementById("editCo2EmissionGraph")!=null){document.getElementById("editCo2EmissionGraph").style.display="block"
}}else{document.getElementById("co2EditSectionDiv").style.display="none";
document.getElementById("editCo2EmissionGraph").style.display="none";
document.getElementById("co2Data").style.display="none";
document.getElementById("editCo2RightGraph").style.display="none";
document.getElementById("colourSchemeTable").style.display="none";
document.getElementById("co2DisclaimerMessage").style.display="none";
document.getElementById("co2MinimumDistanceInfo").style.display="block"
}}function showHideDiv(a,c,e){var f=document.getElementById(a);
var b=document.getElementById(e);
var d=document.getElementById(c);
if(f.style.display!="none"){jcheckSlideOut(a,"t",500,{duration:0.5,useDisplay:true});
f.style.display="none";
if(b!=null){b.style.display="none"
}d.alt="show";
d.title="show";
if(d.onmouseover){d.src=d.src.replace("hide_f2.png","show_f2.png")
}else{d.src=d.src.replace("hide_f2.png","show.png")
}}else{f.style.display="block";
if(b!=null){b.style.display="block"
}jcheckSlideIn(a,"t",500,{duration:0.5,useDisplay:true});
d.alt="hide";
d.title="hide";
if(d.onmouseover){d.src=d.src.replace("show_f2.png","hide_f2.png")
}else{d.src=d.src.replace("show_f2.png","hide.png")
}}}function showHideUpadtes(f,h,g,c,e,j){var a=document.getElementById(f);
var d=document.getElementById(h);
var b;
if(a.style.display!="none"){b="hide";
jcheckSlideOut(f,"t",500,{duration:0.5,useDisplay:true});
a.style.display="none";
d.alt="expand";
d.title="expand";
if(d.src.search("minus_f2.png")>0){d.src=d.src.replace("minus_f2.png","plus_f2.png")
}else{if(d.src.search("minus.png")>0){d.src=d.src.replace("minus.png","plus.png")
}}if(g!=null&&c!=null&&e!=null&&j!=null){checkForExpandOrCollapseBuuton(g,c,e,j,b)
}}else{b="show";
if(d.src.search("plus_f2.png")>0){d.src=d.src.replace("plus_f2.png","minus_f2.png")
}else{if(d.src.search("plus.png")>0){d.src=d.src.replace("plus.png","minus.png")
}}a.style.display="block";
d.alt="collapse";
d.title="collapse";
if(g!=null&&c!=null&&e!=null&&j!=null){checkForExpandOrCollapseBuuton(g,c,e,j,b)
}jcheckSlideIn(f,"t",500,{duration:0.5,useDisplay:true})
}}function checkForExpandOrCollapseBuuton(a,f,g,h,e){var d=0;
var b;
var c;
if(e=="hide"){for(d=0;
d<a;
d++){b=f+d;
c=document.getElementById(b).style.display!="none";
if(c){break
}}if(d==a){document.getElementById(h).style.display="none";
document.getElementById(g).style.display="inline"
}}else{if(e=="show"){for(d=0;
d<a;
d++){b=f+d;
c=document.getElementById(b).style.display!="none";
if(!(c)){break
}}if(d==a){document.getElementById(g).style.display="none";
document.getElementById(h).style.display="inline"
}}}}function expCol(b,e,d,h,j,k){var l=0;
var g;
var p=0;
var o="";
var n=document.getElementById(b);
var f=document.getElementById(e);
n.style.display="none";
f.style.display="inline";
var a;
var m;
if(k=="expand"){for(l=0;
l<j;
l++){a=d+l;
m=h+l;
document.getElementById(a).style.display="block";
jcheckSlideIn(a,"t",600,{duration:0.6,useDisplay:true});
g=document.getElementById(m);
if(g.src.search("minus")<0){p=g.src.indexOf("plus.png");
o=g.src.slice(0,p);
g.src=o+"minus.png";
g.alt="collapse";
g.title="collapse"
}}_gaq.push(["_trackEvent","Layout Event","Expand Block",b])
}else{if(k=="collapse"){for(l=0;
l<j;
l++){a=d+l;
m=h+l;
jcheckSlideOut(a,"t",600,{duration:0.6,useDisplay:true});
document.getElementById(a).style.display="none";
g=document.getElementById(m);
if(g.src.search("plus")<0){p=g.src.indexOf("minus.png");
o=g.src.slice(0,p);
g.src=o+"plus.png";
g.alt="expand ";
g.title="expand"
}}_gaq.push(["_trackEvent","Layout Event","Collapse Block",b])
}}}function action(b){var c=true;
if(arguments.length>1){c=confirm(arguments[1])
}if(c){if(b.indexOf("changeEngWorksPeriod")!=-1){document.formEngWorks.action.value=b;
var a=document.getElementsByName("realengperiod")[0];
document.formEngWorks.period.value=a.options[a.selectedIndex].value;
document.cookie="enggWorkSelected="+document.formEngWorks.period.value;
_gaq.push(["_trackEvent","Scope Change Event",b]);
document.formEngWorks.submit()
}else{var d=document.form[b];
if(d!=null){d.value=b
}document.form.action.value=b;
if(b=="summary"){document.form.from.value="";
document.form.to.value="";
document.form.action.value="selectRoute"
}_gaq.push(["_trackEvent","Route Event",b]);
document.form.submit()
}}}function changeTubeIncident(b){var c=true;
if(arguments.length>1){c=confirm(arguments[1])
}if(c){document.formTubeDisruption.action.value="changeTubeIncident";
var a=document.getElementsByName(b+"TubeUpdateLocation")[0];
document.formTubeDisruption.formTubeUpdateLocation.value=a.options[a.selectedIndex].value;
a=document.getElementsByName(b+"TubeUpdatePeriod")[0];
document.formTubeDisruption.formTubeUpdatePeriod.value=a.options[a.selectedIndex].value;
document.formTubeDisruption.formTubeUpdateType.value=b;
document.formTubeDisruption.submit()
}}function formSubmit(a,b,f,e){var d=getFormObject(a);
if(d!=null){var c=getElement(d,f);
if(c!=null){c.value=e
}d.action.value=b;
d.submit()
}}function genericFormSubmit(c,a,b){var f=getFormObject(c);
if(f!=null){for(var e=0;
e<a.length;
e++){var d=getElement(f,a[e]);
if(d!=null){d.value=b[e]
}}f.submit()
}}function getFormObject(b){var a=document.forms;
for(i=0;
i<a.length;
i++){if(a[i].name==b){return a[i]
}}return null
}function getElement(a,b){var c=a.elements;
for(i=0;
i<c.length;
i++){if(c[i].name==b){return c[i]
}}return null
}function showHideFI(a,c,e){var d=document.getElementById(a);
var b=document.getElementById(c);
if(d.style.display!="block"){d.style.display="block";
jcheckSlideIn(a,"t",500,{duration:0.5,useDisplay:true});
b.src="/resources/"+tocDir+"/images/btn_hide_further_info.png";
b.alt="Hide Further Information";
b.title="Hide Further Information"
}else{jcheckSlideOut(a,"t",500,{duration:0.5,useDisplay:true});
d.style.display="none";
b.src="/resources/"+tocDir+"/images/btn_show_further_info.png";
b.alt="Show Further Information";
b.alt="Hide Further Information"
}}function editDiv(a){var b=document.getElementById(a);
if(b.style.display=="none"){b.style.display="block";
jcheckSlideIn(a,"t",500,{duration:0.5,useDisplay:true})
}else{jcheckSlideOut(a,"t",500,{duration:0.5,useDisplay:true});
b.style.display="none"
}}function editDivAlert(a){var b=document.getElementById(a);
if(b.style.display!="block"){b.style.display="block";
Ext.get(a).slideIn("t",{duration:0.5,useDisplay:true})
}else{Ext.get(a).slideOut("t",{duration:0.5,useDisplay:true});
b.style.display="none"
}}function imageSwap(a){if(a.src.search(".png")>0){imageSwapPng(a)
}else{if(a.src.search(".gif")){imageSwapPng(a)
}}}function imageSwapGif(a){var b="";
b=a.src;
if(b.indexOf("_f2")!=-1){a.src=b.replace("_f2","")
}else{a.src=b.replace(".gif","_f2.gif")
}}function imageSwapPng(a){var b=a.src;
if(b.indexOf("_f2")!=-1){a.src=b.replace("_f2","")
}else{a.src=b.replace(".png","_f2.png")
}}var distance=0;
var distanceInMiles=0;
var defaultDisplayedLabels=1;
var vehicles=new Array();
var minTreshholdDistance=10;
vehicles[0]="emsn_train";
vehicles[1]="emsn_coach";
vehicles[2]="emsn_local_bus";
vehicles[3]="emsn_london_bus";
vehicles[4]="emsn_small_petrolcar";
vehicles[5]="emsn_large_petrolcar";
vehicles[6]="emsn_small_dieselcar";
vehicles[7]="emsn_large_dieselcar";
vehicles[8]="emsn_medium_lpgcar";
vehicles[9]="emsn_large_lpgcar";
vehicles[10]="emsn_plane";
function getDistance(g,e,d,c){if((g==0||g==""||g==999999)||(e==0||e==""||e==999999)||(d==0||d==""||d==999999)||(c==0||c==""||c==999999)){return 0
}else{var a=g-d;
var f=e-c;
var b=Math.sqrt((a*a)+(f*f));
distance=b/1000;
distanceInMiles=distance*0.6213711;
distanceInMiles=Math.round((distanceInMiles),2);
return Math.round(distance,2)
}}function getCO2Emission(e){if(e==1){document.getElementById("occupants").innerHTML="per passenger"
}else{if(e>1){document.getElementById("occupants").innerHTML=" for "+e+" passengers in car(s) and per passenger in other modes"
}}var d=((60.2*distance)/1000);
var h=((29*distance)/1000);
var j=((115.8*distance)/1000);
var r=((81.8*distance)/1000);
var q=((180.9*distance)/1000)/e;
var g=((295.8*distance)/1000)/e;
var k=((151.3*distance)/1000)/e;
var s=((258*distance)/1000)/e;
var l=((189.2*distance)/1000)/e;
var f=((259.4*distance)/1000)/e;
var p=new Array();
var m=new Array();
p[0]=d.toFixed(2);
p[1]=h.toFixed(2);
p[2]=j.toFixed(2);
p[3]=r.toFixed(2);
p[4]=q.toFixed(2);
p[5]=g.toFixed(2);
p[6]=k.toFixed(2);
p[7]=s.toFixed(2);
p[8]=l.toFixed(2);
p[9]=f.toFixed(2);
if(distanceInMiles>=94){document.getElementById("planeSpan").style.display="block";
document.getElementById("emsn_plane_label").style.display="block";
var o=((175.3*distance)/1000);
p[10]=o.toFixed(2)
}var c=0;
var n=0;
var b=0;
for(n=0;
n<p.length;
n++){c=Math.max(c,p[n])
}document.getElementById("rangeEnd").innerHTML=c;
for(n=0;
n<p.length;
n++){b=(((parseFloat(p[n]))/c)*150).toFixed(2);
m[n]=b
}var a=distanceInMiles>=94?11:10;
for(n=0;
n<a;
n++){if(document.getElementById(vehicles[n]).style.display!="none"){document.getElementById(vehicles[n]).innerHTML=p[n];
document.getElementById(vehicles[n]+"_image").style.width=m[n]+"px";
document.getElementById(vehicles[n]+"_image").style.height="10px"
}}}function getOccupantNumber(){return document.getElementById("occupantNumberSelect").options.selectedIndex+1
}function printGraph(e){if(e==""||e==null){e=getOccupantNumber()
}var b=0;
var c=0;
for(b=1;
b<=9;
b++){if(document.getElementById(vehicles[b]+"_checkbox").checked){if(document.getElementById(vehicles[b]+"_bar").style.display!="block"||document.getElementById(vehicles[b]+"_label").style.display!="block"){document.getElementById(vehicles[b]+"_bar").style.display="block";
document.getElementById(vehicles[b]+"_label").style.display="block"
}c++
}else{if(document.getElementById(vehicles[b]+"_bar").style.display!="none"||document.getElementById(vehicles[b]+"_label").style.display!="none"){document.getElementById(vehicles[b]+"_bar").style.display="none";
document.getElementById(vehicles[b]+"_label").style.display="none"
}}}document.getElementById(vehicles[0]+"_label").style.marginTop="5px";
getCO2Emission(e);
if(distanceInMiles>=94){defaultDisplayedLabels=2
}var a=(24*(c+defaultDisplayedLabels));
var d=(23.5*(c+defaultDisplayedLabels));
document.getElementById("yAxis").style.height=a+"px";
document.getElementById("intensity").style.height=d+"px";
document.getElementById("co2LowIntensityBackground").style.height=d+"px";
document.getElementById("co2MediumIntensityBackground").style.height=d+"px";
document.getElementById("co2HighIntensityBackground").style.height=d+"px";
document.getElementById("co2VeryHighIntensityBackground").style.height=d+"px";
if(mainPortal!=null){mainPortal.fireEvent("expandCollapse",mainPortal,0.1)
}}function showInline(a,b){document.getElementById(a).style.display="inline";
if(Ext.isIE6){setIframeStyle(b)
}}function hideInline(a,b){document.getElementById(a).style.display="none";
if(Ext.isIE6){returnDefaultIframeStyle(b)
}}var menuShown=false;
var currentMenu="";
var theEvent=null;
function keepHoverOn(a){document.getElementById(a).className="on"
}function keepHoverOff(a){document.getElementById(a).className=""
}function returnDefaultIframeStyle(a){if(a.indexOf("route")>-1){if(document.getElementById("savedRoutesTable").offsetWidth<=300){document.getElementById("coverFrameForRouteBox").style.width="300px"
}else{document.getElementById("coverFrameForRouteBox").style.width=document.getElementById("savedRoutesTable").offsetWidth+"px"
}}else{if(a.indexOf("alert")>-1){document.getElementById("coverFrameForAlertBox").style.width="270px"
}}}function setIframeStyle(b){if(b.indexOf("route")>-1){if(document.getElementById("savedRoutesTable").offsetHeight<=27){document.getElementById("coverFrameForRouteBox").style.height="27px";
document.getElementById("coverFrameForRouteBox").style.lineHeight="27px";
document.getElementById("coverFrameForRouteBox").style.marginLeft="-112px";
document.getElementById("coverFrameForRouteBox").style.marginTop="4px"
}else{if(document.getElementById("savedRoutesTable").offsetHeight>27){document.getElementById("coverFrameForRouteBox").style.marginLeft="-4px";
document.getElementById("coverFrameForRouteBox").style.height=document.getElementById("savedRoutesTable").offsetHeight+"px";
document.getElementById("coverFrameForRouteBox").style.lineHeight=document.getElementById("savedRoutesTable").offsetHeight+"px";
document.getElementById("coverFrameForRouteBox").style.marginTop=(-1*document.getElementById("savedRoutesTable").offsetHeight)+"px";
var a=document.getElementById("routeSave").offsetWidth>document.getElementById("savedRoutesTable").offsetWidth?document.getElementById("routeSave").offsetWidth:document.getElementById("savedRoutesTable").offsetWidth;
document.getElementById("coverFrameForRouteBox").style.width=a+"px"
}}}else{if(b.indexOf("alert")>-1){if(document.getElementById("addALertText").offsetWidth<300){document.getElementById("coverFrameForAlertBox").style.width="300px"
}else{document.getElementById("coverFrameForAlertBox").style.width=(document.getElementById("addALertText").offsetWidth)+"px"
}}}}function showMenu(b,a){if(currentMenu!=""&&currentMenu!=b&&document.getElementById(currentMenu).style.display!="none"){hideThisMenu(currentMenu);
keepHoverOff(currentMenu+"Button")
}document.getElementById(b).style.display="block";
if(a!=null){Ext.get(b).alignTo(Ext.get(a),"tl-bl")
}keepHoverOn(b+"Button");
if(theEvent!=null){clearTimeout(theEvent)
}Ext.get(b).stopFx();
currentMenu=b;
if(menuShown){return
}menuShown=true;
if(Ext.isIE6){setIframeStyle(b)
}Ext.get(b).slideIn("",{duration:0.3,useDisplay:true,callback:keepHoverOn(b+"Button")})
}function hideThisMenu(a){document.getElementById(a).style.display="none";
if(Ext.isIE6){returnDefaultIframeStyle(a)
}Ext.get(a).slideOut("t",{duration:0.3,useDisplay:true,callback:keepHoverOff(a+"Button")});
document.getElementById(a).style.width="auto";
menuShown=false
}function hideMenu(a){theEvent=setTimeout('hideThisMenu("'+a+'")',100)
}function loadSaveRoute(b,a){document.form.savedRoute.value=a;
document.form.action.value=b;
document.form.submit()
}function showBox(b){var a=document.getElementById("helpBox"+b);
if(a.style.display=="none"){Ext.select("div.centerAlign").each(function(c){if(document.getElementById(c.dom.id).style.display=="block"&&c.dom.id!="helpBox"+b){document.getElementById(c.dom.id).style.display="none"
}});
a.style.display="block"
}Ext.get("helpBox"+b).alignTo(Ext.getBody(),"c-c");
if(Ext.isIE6&&Ext.get(a).select("iframe").first()!=null){Ext.get(a).select("iframe").first().dom.style.filter="alpha(opacity=0);"
}}function removeDiv(a){var b=document.getElementById(a);
b.style.display="none"
}var encodedDocuemntURI=encodeURIComponent(document.URL);
var cssValidationURL="http://jigsaw.w3.org/css-validator/validator?uri="+encodedDocuemntURI+"&profile=css3&usermedium=all&warning=1&lang=en";
var arVersion=navigator.appVersion.split("MSIE");
var version=parseFloat(arVersion[1]);
function fixPng(){if((version>=5.5)&&(version<7)&&(document.body.filters)){for(var g=0;
g<document.images.length;
g++){var d=document.images[g];
var f=d.src.toUpperCase();
if(f.substring(f.length-3,f.length)=="PNG"&&d.className.search("img-png-fix")>-1&&d.id!="no-png-fix"){var b=(d.id)?"id='"+d.id+"' ":"";
var e=(d.className)?"class='"+d.className+"' ":"";
var h=(d.title)?"title='"+d.title+"' ":"title='"+d.alt+"' ";
var c="display:inline-block;"+d.style.cssText;
if(d.align=="left"){c="float:left;"+c
}if(d.align=="right"){c="float:right;"+c
}if(d.parentElement.href){c="cursor:hand;"+c
}var a="<span "+b+e+h+' style="width:'+d.width+"px; height:"+d.height+"px;"+c+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='image');\"";
if(d.parentElement.href){a+=" onmouseover=\"iePngSwap('"+d.id+"');\" onmouseout=\"iePngSwap('"+d.id+"');\""
}a+="></span>";
d.outerHTML=a;
g=g-1
}}}}function iePngSwap(a){iePngSwap(a,false)
}function iePngSwap(d,c){var b=document.getElementById(d);
if(b!=null){var a=b.style.filter;
if(a.indexOf("_f2")!=-1){b.style.filter=a.replace("_f2","");
if(c){hideAltText(d);
lockedImages[d]=true
}}else{b.style.filter=a.replace(".png","_f2.png");
if(c){lockedImages[d]=false;
window.setTimeout('showAltText("'+d+'",'+(getIeMouseX())+","+(getIeMouseY()+15)+")",800)
}}}}if(isSocialIconOn){var socialIconTitle="JourneyCheck - Live Train Disruption/Cancellations/Delays and Real Time Departure/Arrival Boards";
var socialIconSummary="JourneyCheck.com provides real time, up-to-date train running and disruption information, keeping the travelling public on the move. Train Cancellations, Delays, Alterations and Engineering Work information ";
var socialIconUrl="http://www.journeycheck.com/"+tocDir;
var mySpaceUrl="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.myspace.com/index.cfm?fuseaction=postto&t="+encodeURIComponent(socialIconTitle)+"&c="+encodeURIComponent(socialIconSummary)+"&u="+encodeURIComponent(socialIconUrl);
var orkutUrl="http://promote.orkut.com/preview?nt=orkut.com&tt="+socialIconTitle+"&du="+socialIconUrl+"&cn="+socialIconSummary;
var bloggerUrl="http://www.blogger.com/blog_this.pyra?t="+socialIconSummary+"&u="+socialIconUrl+"&n="+socialIconTitle;
var twitterUrl='http://twitter.com/home?status= "Currently checking  http://www.journeycheck.com/'+tocDir+"\n"+socialIconSummary+'"';
var diggUrl="http://digg.com/submit?url=http://www.journeycheck.com/"+tocDir+"&title=JourneyCheck-Live Train Updates and Departure/Arrival Boards";
var deliciousUrl="http://delicious.com/save?jump=yes&url="+socialIconUrl+"&title="+socialIconTitle;
var facebookUrl="http://www.facebook.com/sharer.php?u="+socialIconTitle;
var stumbleuponUrl="http://www.stumbleupon.com/submit?url="+socialIconTitle
}function addFavourite(a){if(window.sidebar){window.sidebar.addPanel(socialIconTitle,socialIconUrl,"")
}else{if(window.external){window.external.AddFavorite(socialIconUrl,socialIconTitle)
}else{alert("To bookmark this site, click Bookmarks | Add bookmark> or press Ctrl+D.")
}}_gaq.push(["_trackEvent","Social Icon Event","click social icon",a])
}function openSocialIconWindow(b,a){window.open(b,"ptm","height=450,width=900").focus();
_gaq.push(["_trackEvent","Social Icon Event","click social icon",a])
}alignComponentsOnAlertPageOnScroll=function(){Ext.select("div.centerAlign").each(function(a){if(document.getElementById(a.dom.id).style.display=="block"){a.alignTo(Ext.getBody(),"c-c")
}})
};
function onWindowResize(){alignComponentsOnRoutePageOnResize();
alignComponentsOnAlertPageOnResize()
}function onWindowScroll(){if(Ext.isIE6&&hasMovePopupFunction){movePopups()
}alignComponentsOnAlertPageOnScroll()
}window.onresize=onWindowResize;
window.onscroll=onWindowScroll;
