
var d=document;var pop_timeout={};var pop_delay={};var pop_chGoActive={};var pop_chGoInactive={};var pop_timeoutGoActive={};var pop_timeoutGoInactive={};var pop_isActive={'active':[]};var navMenuByClass=["more"];var IFRAME_ID_BASE='yshp_js_msie_iframe_';var SHOW_DELAY=250;var HOVER_TIMEOUT=400;function connectHoverEvents(triggerId,targetId,showEvt,hideEvt,showDelay,hideTimeout){var eMouseOver=pop_genActiveEvent(triggerId,showEvt,showDelay);var eMouseOut=pop_genInactiveEvent(triggerId,hideEvt,hideTimeout);var trigger=d.getElementById(triggerId);yg_addEvt(trigger,"mouseover",eMouseOver,false);yg_addEvt(trigger,"mouseout",eMouseOut,false);if(targetId!=null){var target=d.getElementById(targetId);if(!target)return false;yg_addEvt(target,"mouseover",eMouseOver,false);yg_addEvt(target,"mouseout",eMouseOut,false);}}
function pop_genActiveEvent(tabId,showEvt,delay){pop_chGoActive[tabId]=showEvt;pop_timeoutGoActive[tabId]=function(){if(pop_isActive[tabId]!=true){if(pop_isActive['active'].length!=0){pop_makeAllInactive();}
pop_chGoActive[tabId]();}
pop_isActive[tabId]=true;pop_isActive['active'][pop_isActive['active'].length]=tabId;};return function(){clearTimeout(pop_timeout[tabId]);clearTimeout(pop_delay[tabId]);var defaultDelay=delay;var thisDelay=(pop_isActive['active'].length!=0)?1:defaultDelay;pop_delay[tabId]=setTimeout("pop_timeoutGoActive['"+tabId+"']();",thisDelay);return false;};}
function pop_genInactiveEvent(tabId,hideEvt,timeout){pop_chGoInactive[tabId]=hideEvt;pop_timeoutGoInactive[tabId]=function(){pop_chGoInactive[tabId]();pop_isActive[tabId]=false;pop_markInactive(tabId);};return function(){clearTimeout(pop_delay[tabId]);clearTimeout(pop_timeout[tabId]);pop_timeout[tabId]=setTimeout("pop_timeoutGoInactive['"+tabId+"']();",timeout);return false;};}
function pop_makeAllInactive(skip){var array=pop_isActive['active'];var exceptionData=null;for(var i=(pop_isActive['active'].length-1);i>-1;i--){var cur=pop_isActive['active'][i];if(cur==skip){exceptionData=cur;}else{pop_timeoutGoInactive[cur]();}
pop_isActive['active']=pop_isActive['active'].slice(0,i);}
if(exceptionData!=null){pop_isActive['active'][pop_isActive['active'].length]=exceptionData;}}
function pop_markInactive(id){var others=new Array();for(var i=(pop_isActive['active'].length-1);i>-1;i--){var cur=pop_isActive['active'][i];if(cur!=id){others[others.length]=cur;}}
pop_isActive['active']=others;}
function pop_showElement(elId){var el=d.getElementById(elId);if(el){el.style.visibility="visible";}}
function pop_hideElement(elId){var el=d.getElementById(elId);if(el){el.style.visibility="hidden";}}
function setMenuPos(tabId,menuId,align){var tab=d.getElementById(tabId);var menu=d.getElementById(menuId);var xOffset=0;var yOffset=0;var width="auto";if(oBw.ie5&&oBw.mac){xOffset=-3;yOffset=-15;width="16.2em";}
menu.style.width=width;if(oBw.ie5&&oBw.win){yOffset=-1;}
if(tab.className=="selected"){yOffset=yOffset-1;}
var tabTop=yg_getPageY(tab);var tabLeft=yg_getPageX(tab);var tabHeight=yg_getH(tab);var tabWidth=yg_getW(tab);var tabRight=tabLeft+tabWidth;var menuWidth=yg_getW(menu);var menuHeight=yg_getH(menu);var menuTop=(tabTop+tabHeight+yOffset);var menuLeft='';if(align=="right"){menuLeft=(tabRight-menuWidth+xOffset);}else{menuLeft=(tabLeft+xOffset);}
menu.style.top=menuTop+"px";menu.style.left=menuLeft+"px";if(oBw.ie5&&oBw.win){var iframe=d.getElementById(IFRAME_ID_BASE+menuId);if(iframe){iframe.style.top=menuTop+"px";iframe.style.left=menuLeft+"px";iframe.style.height=menuHeight+"px";iframe.style.width=menuWidth+"px";}}
return true;}
function selectTab(tabId){var tab=d.getElementById(tabId);if(!tab)return false;if(tab.className!="selected"){tab.className="highlighted";}
return true;}
function deselectTab(tabId){var tab=d.getElementById(tabId);if(!tab)return false;if(tab.className!="selected"){tab.className="";}
return true;}
function tabs_init(){if(!d.getElementById)return false;var i=0;var tabEl=null;while(tabEl=d.getElementById("tab_"+i)){if(!tabEl)break;var tabId=tabEl.id;var tabClass=tabEl.className;var menuTab=false;for(var j=0;j<navMenuByClass.length;j++){if(tabClass.match(new RegExp("\\b"+navMenuByClass[j]+"\\b"))){menuTab=true;}}
if(!menuTab){var showEvt=function(){};var hideEvt=function(){};connectHoverEvents(tabId,'',showEvt,hideEvt,SHOW_DELAY,HOVER_TIMEOUT);}else{void function(k){var tabId="tab_"+k;var tabEl=d.getElementById(tabId);var tabClass=tabEl.className;var menuId="menu_"+tabClass;var menuEl=d.getElementById(menuId);if(!menuEl)return;if(oBw.ie5&&oBw.win){var tabs=d.getElementById("nav-pri");var iframe=d.createElement("iframe");iframe.setAttribute('id',IFRAME_ID_BASE+menuId);iframe.style.height=0;iframe.style.width=0;iframe.style.position="absolute";iframe.style.visibility="hidden";iframe.style.zIndex=1;iframe.style.border=0;tabs.parentNode.insertBefore(iframe,tabs);}
var showEvt=function(){setMenuPos(tabId,menuId,'right');selectTab(tabId);pop_showElement(menuId);if(oBw.ie5&&oBw.win){pop_showElement(IFRAME_ID_BASE+menuId);}};var hideEvt=function(){if(oBw.ie5&&oBw.win){pop_hideElement(IFRAME_ID_BASE+menuId);}
pop_hideElement(menuId);deselectTab(tabId);};connectHoverEvents(tabId,menuId,showEvt,hideEvt,SHOW_DELAY,HOVER_TIMEOUT);}(i);}
i++;}}
tabs_init();