
var mainNavigationflag=0;var openSecondryNavGoUrl="";var gPrevTab=null;var gTabEventObj=null;var gtimerRunning=false;var gLoadTabID='';var gCurrentDivID='';var gPrevDivID='';var persistclose=0
var startX=93
var startY=29
var verticalpos="fromtop"
var timeShowWinTabContent1="";var timeShowWinTabContent2='',timeShowWinTabContent3='',timeShowWinTabContent4='',timeShowWinTabContent5='';function attachClass(id,cName){var docElement="";if(id.tagName!=null&&id.tagName.length>0)
docElement=id;else
docElement=document.getElementById(id);if(docElement!=null)docElement.className=cName;}
function detachClass(id){attachClass(id,"")}
function attachStyle(id,type,value){var docElement="";if(id.id!=null&&id.id.length>0)
docElement=id;else
docElement=document.getElementById(id);if(docElement!=null)
{switch(type.toLowerCase())
{case"height":docElement.style.height=value;break;case"width":docElement.style.width=value;break;case"display":docElement.style.display=value;break;case"left":docElement.style.left=value;break;case"top":docElement.style.top=value;break;case"margintop":docElement.style.marginTop=value;break;case"overflow":docElement.style.overflow=value;break;case"visibility":docElement.style.visibility=value;break;}}}
function setHeight(id,type,value){var docElement="";if(id.id!=null&&id.id.length>0)
docElement=id;else
docElement=document.getElementById(id);if(docElement!=null)
{switch(type.toLowerCase())
{case"offsetheight":docElement.offsetHeight=value;break;case"tempoffsetheight":docElement.tempOffsetHeight=value;break;case"currentheight":docElement.currentHeight=value;break;case"clientheight":docElement.clientHeight=value;break;}}}
var Drag={obj:null,init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper)
{o.onmousedown=Drag.start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left)))o.root.style.left="0px";if(o.vmode&&isNaN(parseInt(o.root.style.top)))o.root.style.top="0px";if(!o.hmode&&isNaN(parseInt(o.root.style.right)))o.root.style.right="0px";if(!o.vmode&&isNaN(parseInt(o.root.style.bottom)))o.root.style.bottom="0px";o.minX=typeof minX!='undefined'?minX:null;o.minY=typeof minY!='undefined'?minY:null;o.maxX=typeof maxX!='undefined'?maxX:null;o.maxY=typeof maxY!='undefined'?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();},start:function(e)
{var o=Drag.obj=this;e=Drag.fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=e.clientX;o.lastMouseY=e.clientY;if(o.hmode){if(o.minX!=null)o.minMouseX=e.clientX-x+o.minX;if(o.maxX!=null)o.maxMouseX=o.minMouseX+o.maxX-o.minX;}else{if(o.minX!=null)o.maxMouseX=-o.minX+e.clientX+x;if(o.maxX!=null)o.minMouseX=-o.maxX+e.clientX+x;}
if(o.vmode){if(o.minY!=null)o.minMouseY=e.clientY-y+o.minY;if(o.maxY!=null)o.maxMouseY=o.minMouseY+o.maxY-o.minY;}else{if(o.minY!=null)o.maxMouseY=-o.minY+e.clientY+y;if(o.maxY!=null)o.minMouseY=-o.maxY+e.clientY+y;}
document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return false;},drag:function(e)
{e=Drag.fixE(e);var o=Drag.obj;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null)ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX);if(o.maxX!=null)ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX);if(o.minY!=null)ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY);if(o.maxY!=null)ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY);nx=x+((ex-o.lastMouseX)*(o.hmode?1:-1));ny=y+((ey-o.lastMouseY)*(o.vmode?1:-1));if(o.xMapper)nx=o.xMapper(y)
else if(o.yMapper)ny=o.yMapper(x)
Drag.obj.root.style[o.hmode?"left":"right"]=nx+"px";Drag.obj.root.style[o.vmode?"top":"bottom"]=ny+"px";Drag.obj.lastMouseX=ex;Drag.obj.lastMouseY=ey;Drag.obj.root.onDrag(nx,ny);return false;},end:function()
{document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?"left":"right"]),parseInt(Drag.obj.root.style[Drag.obj.vmode?"top":"bottom"]));Drag.obj=null;},fixE:function(e)
{if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;}};function preloadImages(){var divImageElements=document;if(divImageElements.images){if(!divImageElements.imageArray)divImageElements.imageArray=new Array();var i,j=divImageElements.imageArray.length,a=preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){divImageElements.imageArray[j]=new Image;divImageElements.imageArray[j++].src=a[i];}}
if(document.getElementById('searchTxtBox')!=null)
{document.getElementById('searchTxtBox').value=searchValue;}}
var gSetTime="";function startTabTimer(loadTabID,currentDivID,setTime)
{gLoadTabID=loadTabID;gCurrentDivID=currentDivID;gSetTime=setTime;timeShowWinTabContent1=setTimeout("showWindowsHomeTabs()",10);}
var isClearTimeForWinTab=false;function clearTimeoutWinTab(){clearTimeout(timeShowWinTabContent1);}
function highLightWinTabs(){attachClass(gTabEventObj.parentNode,"selectedtab");attachClass(document.getElementById("hometabs1").parentNode,"");}
function showWindowsHomeTabs()
{if(document.getElementById(gCurrentDivID)){if(gPrevDivID==""){attachClass(document.getElementById(gCurrentDivID),"tabcontent");if(gCurrentDivID!="divhometab1")
attachClass("divhometab1","hide");}
else{attachClass(document.getElementById(gCurrentDivID),"tabcontent");if(gCurrentDivID!=gPrevDivID)
attachClass(document.getElementById(gPrevDivID),"hide");}}
gPrevDivID=gCurrentDivID;if(document.getElementById(gLoadTabID))
{gTabEventObj=document.getElementById(gLoadTabID);}
if(gTabEventObj)
{if(gPrevTab==null){gPrevTab=gTabEventObj;attachClass(gTabEventObj.parentNode,"selectedtab");if(document.getElementById('hometabs1').parentNode!=null){if(gLoadTabID!="hometabs1")
attachClass(document.getElementById('hometabs1').parentNode,"");}}
else{if(gPrevTab.parentNode.className!=gTabEventObj.parentNode.className)
{if(!isClearTimeForWinTab)
attachClass(gPrevTab.parentNode,"");}
attachClass(gTabEventObj.parentNode,"selectedtab");gPrevTab=gTabEventObj;}}}

var gPrevTab2=null;var gTabEventObj2=null;var gtimerRunning2=false;var gLoadTabID2='';var gCurrentDivID2='';var gPrevDivID2='';var persistclose2=0;var timeShowWinTabContent21="";var timeShowWinTabContent22='',timeShowWinTabContent23='',timeShowWinTabContent24='',timeShowWinTabContent25='';
var gSetTime2="";function startTabTimer2(loadTabID2,currentDivID2,setTime2)
{gLoadTabID2=loadTabID2;gCurrentDivID2=currentDivID2;gSetTime2=setTime2;timeShowWinTabContent21=setTimeout("showWindowsHomeTabs2()",10);}
var isClearTimeForWinTab2=false;function clearTimeoutWinTab2(){clearTimeout(timeShowWinTabContent21);}
function highLightWinTabs2(){attachClass(gTabEventObj2.parentNode,"selectedtab");attachClass(document.getElementById("hometabs21").parentNode,"");}
function showWindowsHomeTabs2()
{if(document.getElementById(gCurrentDivID2)){if(gPrevDivID2==""){attachClass(document.getElementById(gCurrentDivID2),"tabcontent2");if(gCurrentDivID2!="divhometab21")
attachClass("divhometab21","hide");}
else{attachClass(document.getElementById(gCurrentDivID2),"tabcontent");if(gCurrentDivID2!=gPrevDivID2)
attachClass(document.getElementById(gPrevDivID2),"hide");}}
gPrevDivID2=gCurrentDivID2;if(document.getElementById(gLoadTabID2))
{gTabEventObj2=document.getElementById(gLoadTabID2);}
if(gTabEventObj2)
{if(gPrevTab2==null){gPrevTab2=gTabEventObj2;attachClass(gTabEventObj2.parentNode,"selectedtab");if(document.getElementById('hometabs21').parentNode!=null){if(gLoadTabID!="hometabs21")
attachClass(document.getElementById('hometabs21').parentNode,"");}}
else{if(gPrevTab2.parentNode.className!=gTabEventObj2.parentNode.className)
{if(!isClearTimeForWinTab2)
attachClass(gPrevTab2.parentNode,"");}
attachClass(gTabEventObj2.parentNode,"selectedtab");gPrevTab2=gTabEventObj2;}}}

function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function get_cookie(Name)
{var search=Name+"="
var returnvalue="";if(document.cookie.length>0){offset=document.cookie.indexOf(search)
if(offset!=-1){offset+=search.length
end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;returnvalue=unescape(document.cookie.substring(offset,end))}}
return returnvalue;}
function staticbar(){if(document.getElementById("subnavouter")!=null)
barheight=document.getElementById("subnavouter").offsetHeight;var ns=(navigator.appName.indexOf("Netscape")!=-1)||window.opera;var doc=document;function ml(id){if(doc.getElementById(id)!=null)
{var el=doc.getElementById(id);if(!persistclose||persistclose&&get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(doc.layers)el.style=el;el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};el.x=startX;if(verticalpos=="fromtop")
el.y=startY;else{el.y=ns?pageYOffset+innerHeight:iecompattest().scrollTop+iecompattest().clientHeight;el.y-=startY;}
return el;}}
window.stayTopLeft=function(){if(verticalpos=="fromtop"){var pY=ns?pageYOffset:iecompattest().scrollTop;ftlObj.y+=(pY+startY-ftlObj.y)/8;}
else{var pY=ns?pageYOffset+innerHeight-barheight:iecompattest().scrollTop+iecompattest().clientHeight-barheight;ftlObj.y+=(pY-startY-ftlObj.y)/8;}
ftlObj.sP(ftlObj.x,ftlObj.y);setTimeout("stayTopLeft()",10);}
ftlObj=ml("subnavouter");stayTopLeft();}
if(window.addEventListener)
window.addEventListener("load",staticbar,false)
else if(window.attachEvent)
window.attachEvent("onload",staticbar)
else if(document.getElementById)
window.onload=staticbar
function getBrowserWidth(){if(window.innerWidth){return window.innerWidth;}
else if(document.documentElement&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth;}
else if(document.body){return document.body.clientWidth;}
return 0;}
function getBrowserHeight(){if(window.innerHeight){return window.innerHeight;}
else if(document.documentElement&&document.documentElement.clientHeight!=0){return document.documentElement.clientHeight;}
else if(document.body){return document.body.clientHeight;}
return 0;}
function dynamicLayout(){var browserWidth=getBrowserWidth();var browserHeight=getBrowserHeight();if(browserWidth>=940){if(document.getElementById('mainnavigation')!=null)
attachStyle('area2','width','200px');attachStyle('subnavrightouter','width','465px');attachStyle('mscomsubnavigation','width','635px');attachStyle('mscomsubnavtop','width','635px');var popularLinksPos=((browserWidth-960)/2)+538;attachStyle('popularlinks','left',popularLinksPos);startX=(browserWidth-940)/2+73;staticbar();if(document.getElementById('subnavouter')!=null&&document.getElementById('subnavouter').style.display!='none')
{attachClass("pagewidth1002","pageblur");}}
else if((browserWidth<940)&&(browserWidth>=920)){if(document.getElementById('mainnavigation')!=null)
attachStyle('area2','width','240px');attachStyle('subnavrightouter','width','465px');attachStyle('mscomsubnavigation','width','635px');attachStyle('mscomsubnavtop','width','635px');startX=73-(940-browserWidth);staticbar();if(document.getElementById('subnavouter')!=null&&document.getElementById('subnavouter').style.display!='none')
{attachClass("pagewidth1002","pageblurie7");}}
else if(browserWidth<920&&(browserWidth>=615))
{if(document.getElementById('mainnavigation')!=null)
attachStyle('area2','width','240px');attachStyle('subnavrightouter','width','465px');attachStyle('mscomsubnavigation','width','635px');attachStyle('mscomsubnavtop','width','635px');startX=46;staticbar();if(document.getElementById('subnavouter')!=null&&document.getElementById('subnavouter').style.display!='none')
{attachClass("pagewidth1002","pageblurie7");}}
else if(browserWidth<615)
{attachStyle('popularlinks','left','538');attachStyle('area2','width','240px');attachStyle('subnavrightouter','width','465px');attachStyle('mscomsubnavigation','width','635px');attachStyle('mscomsubnavtop','width','635px');startX=46
staticbar();if(document.getElementById('subnavouter')!=null&&document.getElementById('subnavouter').style.display!='none')
{attachClass("pagewidth1002","pageblurie7");}}
if(browserHeight>=581)
{attachStyle('mscomsubnavigation','height',581-40+"px");attachStyle('mscomsubnavright','height',581-104+"px");attachStyle('subnavrightouter','height',581-104+"px");attachStyle('mscomsubnavleft','height',581-104+"px");attachStyle('scrollinksouter','height',581-127+"px");startY=29;staticbar();setHeight('mscomsubnavleft','tempOffsetHeight',581-104);setHeight('subnavrightouter','tempOffsetHeight',581-104);setHeight('mscomsubnavleft','currentHeight',581-104);attachStyle('subnavbgtbl','height',581-160);attachStyle('middletd','height',581-220);setHeight('subnavbgtbl','tempOffsetHeight',581-160);setHeight('middletd','tempOffsetHeight',581-220);toggleLeftScroll();}
else if(browserHeight<581&&browserHeight>=373)
{attachStyle('mscomsubnavigation','height',browserHeight-40+"px");attachStyle('mscomsubnavright','height',browserHeight-104+"px");attachStyle('subnavrightouter','height',browserHeight-104+"px");attachStyle('mscomsubnavleft','height',browserHeight-104+"px");attachStyle('scrollinksouter','height',browserHeight-127+"px");startY=29;staticbar();setHeight('mscomsubnavleft','tempOffsetHeight',browserHeight-104);setHeight('subnavrightouter','tempOffsetHeight',browserHeight-104);setHeight('mscomsubnavleft','currentHeight',browserHeight-104);attachStyle('subnavbgtbl','height',browserHeight-160);attachStyle('middletd','height',browserHeight-220);setHeight('subnavbgtbl','tempOffsetHeight',browserHeight-160);setHeight('middletd','tempOffsetHeight',browserHeight-220);toggleLeftScroll();}
else if((browserHeight<373))
{attachStyle('mscomsubnavigation','height',334+"px");attachStyle('mscomsubnavright','height',270+"px");attachStyle('subnavrightouter','height',270+"px");attachStyle('mscomsubnavleft','height',270+"px");attachStyle('subNavLeftScrollLinks','height',247+"px");attachStyle('scrollinksouter','height',247+"px");startY=29;staticbar();setHeight('mscomsubnavleft','tempOffsetHeight','270');setHeight('subnavrightouter','tempOffsetHeight','270');setHeight('mscomsubnavleft','currentHeight','270');toggleLeftScroll();attachStyle('subnavbgtbl','height',270);attachStyle('middletd','height',220);setHeight('subnavbgtbl','tempOffsetHeight','270');setHeight('middletd','tempOffsetHeight','220');}}
function addEvent(obj,type,fn){if(obj.addEventListener){obj.addEventListener(type,fn,false);}
else if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);}
obj.attachEvent("on"+type,obj[type+fn]);}}
addEvent(window,'load',dynamicLayout);addEvent(window,'resize',dynamicLayout);function trackLinkActivity(url,goUrl)
{try{if(document.getElementById("reportingimage")!=null){document.getElementById("reportingimage").src=goUrl;}
window.location.href=url;}
catch(e){window.location.href=url;}}
function trackActivity(url)
{if(url!="")
{document.getElementById("reportingimage").src=url;}}
function trackFirstOpeningSecondryNav(){if(!mainNavigationflag){mainNavigationflag=1;trackActivity(openSecondryNavGoUrl);}}
