window.onerror=null;var isDOM=document.getElementById;function el(id){return(isDOM)?document.getElementById(id):document.all(id);}
function getElem(id){return el(id)}
function fnSalesNote(e,p){var disp=el(e).style.display=='none';el(e).style.display=disp?'block':'none';el(p).src='/i/bullet/xp/'+(disp?'collapse.gif':'expand.gif');}
var dmTimer=0;var dmTimeOut=300;var msTimer=0;var msTimeOut=2000;var mss=['Ent','Home','OEM'];if(!msDefault)mss[3]='';var mc,mi;function msHover(ms,h){el(ms+'Link').style.textDecoration=(h)?'underline':'none';}
function msShow(ms){var h;for(var i=0;i<mss.length;i++){h=el(mss[i]+'Hdr');if(h)h.className=(mss[i]==ms)?'tlv':'tlh';}
if(el('tabs'))for(i=0;i<3;i++)
el('tab'+mss[i]).className=(mss[i]==ms)?'tab'+mss[i]:'';}
var ll;function showLoc(padm){var u=padm?'llist2006':'llist';if(!ll)ll=el(u);if(!ll)return;dmTimer=10;DMenuTimer();ll.style.left=el('logo').offsetLeft+el('logo').offsetWidth+2-(padm?padm:0)-ll.offsetWidth+'px';ll.className=(ll.className)?'':'vis';}
function hideLoc(){if(ll)ll.className='';}
function msOver(ms,e){hideLoc();var e=e||window.event;e=e.target||e.srcElement;if(e.tagName=='A'&&e.id&&e.className!='t'){msh(e);dmTimerOver();mi=e.parentNode||e.parentElement;if(mi)mi.className='h';}
msShow(ms);msTimer=0;}
function msOut(ms,e){var e=e||window.event;e=e.target||e.srcElement;if(ms!=msDefault&&!mc)msTimer=msTimeOut;if(e.tagName=='A'&&e.id&&e.className!='t')dmTimerOut();if(mi&&!mc)mi.className='';}
function msh(e){if(!document.getElementById||!document.createElement)return;if(mc)el('mn').removeChild(mc);if(mi)mi.className='';if(!menu[e.id]){mc=null;return;}
var itm;var m=document.createElement('DIV');m.className='menu';m.onmouseover=mover;m.onmouseout=mout;m.onclick=mcl;for(var i=0;i<menu[e.id].length;i++){if(!menu[e.id][i])continue;if((menu[e.id][i][2]).indexOf('logout')>=0){if(window.isLogged)
menu[e.id][i][2]+='?page='+document.location.pathname;else
continue;}
itm=document.createElement('DIV');itm.className=menu[e.id][i][0];if(itm.className=='itm'||itm.className=='hdr')
itm.appendChild(document.createTextNode(menu[e.id][i][1]));if(itm.className=='itm'){itm.setAttribute('rel',menu[e.id][i][2],0);itm.setAttribute('prd',menu[e.id][i][3],0);}
m.appendChild(itm);}
if(itm){mc=el('mn').appendChild(m);var t=el('mnc').style;var tl=e.parentNode.parentNode.parentNode.parentNode;t.left=e.parentNode.offsetLeft+tl.offsetLeft+'px';t.top='216px';if(e.id.indexOf('My')>=0){t.left='0px';t.top='-300px';m.style.display='block';t.left=el('logo').offsetLeft+el('logo').offsetWidth-m.offsetWidth+'px';t.top=79;}
m.style.display='block';}
else
mc=null;}
function mover(e,obn){var clas=obn?'':'itmh'; var e=e||window.event;e=e.target||e.srcElement;if(e.tagName=='IMG')e=e.parentNode||e.parentElement;if(e&&e.getAttribute('rel',0))e.className=clas;dmTimerOver();}
function mout(e,obn){var clas=obn?'':'itm';var e=e||window.event;e=e.target||e.srcElement;if(e.tagName=='IMG')e=e.parentNode||e.parentElement;if(e&&e.getAttribute('rel',0))e.className=clas;dmTimerOut();}
function mcl(e,source){var e=e||window.event;e=e.target||e.srcElement;var r=e.getAttribute('rel',0);if(!r){e=e.parentNode||e.parentElement;r=e.getAttribute('rel',0);}if(!r)return;var a=el('aref');var ext='';if(source&&source=="world"&&r.match('http'))ext=getMyStay();if(a.click){a.href=r+ext;a.click();}
else
location.href=r+ext;}
setInterval('DMenuTimer()',100);function DMenuTimer(){if(dmTimer>0){dmTimer-=100;if(dmTimer<=0){if(mc){el('mn').removeChild(mc);mc=null;if(mi)mi.className='';}
function doOmni(r,prd){if(!prd||!s_gi)return;var s=s_gi(s_account);s.trackLinkVars='events,products';s.trackLinkEvents='event4';s.events='event4';s.products=';'+prd;var n=new Object;n.href=r;s.tl(n,'d',prd);}
if(ll&&ll.className){ll.style.left='-300px';ll.className='';}}}
if(msTimer>0){msTimer-=100;if(msTimer<=0)msShow(msDefault)}}
function dmTimerOver(){msTimer=0;dmTimer=0;}
function dmTimerOut(){dmTimer=dmTimeOut;msTimer=msTimeOut;}
var delay=-1,delaw=-1,delpop=-1,popupid=' ',sawa=3,saw=3,ss=[[,],['home','mhom'],['smb','msmb'],['corp','mcor'],['oem','mpar']];
function dM(){if(!delay){chCont();}if(!delaw){chAw();}if(delay>0){delay-=100;}if(delaw>0){delaw-=100;}if(delpop>=0){delpop-=100;}if((delpop<0)&&(delpop!=-1)){popup(popupid);delpop=-1;}setTimeout("dM()",100);}
dmReady=document.getElementById||(document.all&&document.all.item&&!window.opera);
setTimeout("dM()",100);

