
YAHOO.namespace("YAHOO.util.EU");YAHOO.namespace("YAHOO.EU");YAHOO.util.EU.convertPxToEm=function(oElem,iPx){var iFontSize=(YAHOO.util.Dom.getStyle(oElem,'fontSize'));if(iFontSize.indexOf('%')!=-1){iFontSize=parseFloat(YAHOO.util.Dom.getStyle(oElem,'lineHeight'))+1;}
else if(isNaN(iFontSize)){if(iFontSize=="small"){iFontSize=parseFloat(YAHOO.util.Dom.getStyle(oElem,'lineHeight'))+1.5}
else if(iFontSize=="x-small"){iFontSize=parseFloat(YAHOO.util.Dom.getStyle(oElem,'lineHeight'))}}
return parseFloat(iPx)/parseFloat(iFontSize);}
YAHOO.namespace("util.EU");YAHOO.namespace("EU.News");YAHOO.EU.ModuleTabs=function(sId,oConfig){this.elContainer=null
this.bDoHilite=false;this.oHiliteArgs=null;this.oActiveTab=null;this.bFirstRun=true;this.aTabs=[];this.aEvents=[];this.oConfig=null;if(sId){this.init(sId,oConfig);}};YAHOO.EU.ModuleTabs.prototype={init:function(sId,oConfig){this.oConfig=oConfig;this.elContainer=YAHOO.util.Dom.get(sId);for(var sItem in oConfig){if(this[sItem]!==oConfig[sItem]){this[sItem]=oConfig[sItem];}}
if(this.elContainer){this.aEvents['TabActivated']=new YAHOO.util.CustomEvent('onTabActivated',this);this.aEvents['TabDeactivated']=new YAHOO.util.CustomEvent('onTabDeactivated',this);this.aEvents['TabAdded']=new YAHOO.util.CustomEvent('onTabAdded',this);this.aEvents['TabRemoved']=new YAHOO.util.CustomEvent('onTabRemoved',this);var aTriggers=this.elContainer.getElementsByTagName('li');var elUl=this.elContainer.getElementsByTagName('ul')[0];for(var i=0,oTrgr;oTrgr=aTriggers[i];i++){if(oTrgr.parentNode==elUl){oTrgr.id=this.elContainer.id+'-item'+(this.aTabs.length+1);this.addTab(oTrgr);}}
aTriggers=aPanes=sShowCSSClass=null;this.activateTab((this.oActiveTab!=null)?this.oActiveTab:this.aTabs[0]);YAHOO.util.Event.addListener(this.elContainer,'click',this.selectTab,this,true)
YAHOO.util.Dom.addClass(elUl,YAHOO.EU.ModuleTabs.JS_IS_ACTIVE);}},addTab:function(elTab){var oConfig=this.oConfig;oConfig.elTab=elTab;var oTab=new YAHOO.EU.Tab(oConfig)
this.aTabs.push(oTab);if((this.oActiveTab==null)&&(oTab.getPane())){this.activateTab(oTab);this.oActiveTab=oTab;}
if(window.location.hash.substring(1).toLowerCase()==oTab.toString().toLowerCase()){this.bFirstRun=true;this.activateTab(oTab);this.oActiveTab=oTab;}
if(this.aEvents['TabAdded']){this.aEvents['TabAdded'].fire(this.aTabs.length);}
return oTab;},removeTab:function(oTab){var iTabIndex=-1;for(var i=0,tab;tab=this.aTabs[i];i++){if(oTab.id==tab.id){iTabIndex=i;break;}}
if(iTabIndex!=-1){elTab=this.aTabs[iTabIndex].elTab;elTab.parentNode.removeChild(elTab);oTab=this.aTabs.splice(iTabIndex,1);if(this.aTabs.length>0){oTab=this.aTabs[Math.min(iTabIndex,(this.aTabs.length==0)?0:this.aTabs.length-1)];this.activateTab(oTab);}}
if(this.aEvents['TabRemoved']){this.aEvents['TabRemoved'].fire();}
return false;},deactivateTab:function(){if(this.oActiveTab){this.oActiveTab.deactivate();this.oActiveTab==null;if(this.aEvents['TabDeactivated']){this.aEvents['TabDeactivated'].fire();}
return true;}
else return false;},activateTab:function(oTab){if(oTab&&(this.oActiveTab!=oTab)){this.deactivateTab();this.oActiveTab=oTab;oTab.activate();if((this.bFirstRun==false)&&this.bDoHilite){this.hilite();}
this.bFirstRun=false;this.manageHeight();if(this.aEvents['TabActivated']){this.aEvents['TabActivated'].fire();}}},manageHeight:function(){var elPane=this.oActiveTab.elPane;var oYngest=elPane.lastChild;while(oYngest.nodeType!=1){oYngest=oYngest.previousSibling;}
var iDelta=(YAHOO.util.Dom.getXY(elPane)[1]+elPane.offsetHeight)-(YAHOO.util.Dom.getXY(oYngest)[1]+oYngest.offsetHeight);var iNewHeight=YAHOO.util.EU.convertPxToEm(elPane,parseInt(elPane.offsetHeight)-(iDelta));YAHOO.util.Dom.setStyle(this.elContainer,'height',iNewHeight+"em");},hilite:function(){if(!YAHOO.util.ColorAnim){return;}
if(this.oConfig.oHiliteArgs.bTransparent&&this.hiliteAnim!=null){this.hiliteAnim.stop(true);YAHOO.util.Dom.setStyle(this.hiliteAnim.getEl(),'backgroundColor','');}
this.hiliteAnim=new YAHOO.util.ColorAnim([this.oActiveTab.elTabLnk,this.oActiveTab.elPane],{backgroundColor:{from:this.oHiliteArgs.from,to:this.oHiliteArgs.to}},this.oHiliteArgs.duration,this.oHiliteArgs.fEase||YAHOO.util.Easing.easeOut);this.hiliteAnim.animate();},addListener:function(sEvt,fCallback,oObj,bScope){if(this.aEvents[sEvt]){this.aEvents[sEvt].subscribe(fCallback,oObj||window,bScope||false);}},selectTab:function(e){var elSrc=YAHOO.util.Event.getTarget(e);if(YAHOO.util.Dom.hasClass(elSrc,YAHOO.EU.ModuleTabs.CSS_TAB_HOOK)){var oTab=this.identifyTab(elSrc.parentNode);if(oTab){this.activateTab(oTab);}
YAHOO.util.Event.stopEvent(e);};},identifyTab:function(el){for(var i=0,oTab;oTab=this.aTabs[i];i++){if(el==oTab.getTab()){return oTab;}}
return false;}};YAHOO.EU.ModuleTabs.CSS_TAB_HOOK="tab";YAHOO.EU.ModuleTabs.CSS_PANE_HOOK="pane";YAHOO.EU.ModuleTabs.SHOW_PANE_CLASS_NAME="paneShow";YAHOO.EU.ModuleTabs.HIDE_PANE_CLASS_NAME="paneHide";YAHOO.EU.ModuleTabs.ACTIVE_TAB_CLASS_NAME='on';YAHOO.EU.ModuleTabs.JS_IS_ACTIVE='js';YAHOO.EU.Tab=function(oConfig){this.initTab(oConfig);}
YAHOO.EU.Tab.prototype.initTab=function(oConfig){this.elTab=oConfig.elTab;this.elPane=this.elTab.getElementsByTagName('div')[0];this.elTabLnk=this.elTab.getElementsByTagName('a')[0];this.id=this.elTab.id;};YAHOO.EU.Tab.prototype.deactivate=function(){if(YAHOO.util.Dom.hasClass(this.elPane,YAHOO.EU.ModuleTabs.SHOW_PANE_CLASS_NAME)){YAHOO.util.Dom.replaceClass(this.elPane,YAHOO.EU.ModuleTabs.SHOW_PANE_CLASS_NAME,YAHOO.EU.ModuleTabs.HIDE_PANE_CLASS_NAME);}
else{YAHOO.util.Dom.addClass(this.elPane,YAHOO.EU.ModuleTabs.HIDE_PANE_CLASS_NAME);}
YAHOO.util.Dom.removeClass(this.elTab,YAHOO.EU.ModuleTabs.ACTIVE_TAB_CLASS_NAME);this.elTabLnk.setAttribute('title','');this.bActive=false;return this.bActive;};YAHOO.EU.Tab.prototype.activate=function(){if(YAHOO.util.Dom.hasClass(this.elPane,YAHOO.EU.ModuleTabs.HIDE_PANE_CLASS_NAME)){YAHOO.util.Dom.replaceClass(this.elPane,YAHOO.EU.ModuleTabs.HIDE_PANE_CLASS_NAME,YAHOO.EU.ModuleTabs.SHOW_PANE_CLASS_NAME);}
else{YAHOO.util.Dom.addClass(this.elPane,YAHOO.EU.ModuleTabs.SHOW_PANE_CLASS_NAME);}
YAHOO.util.Dom.addClass(this.elTab,YAHOO.EU.ModuleTabs.ACTIVE_TAB_CLASS_NAME);this.elTabLnk.setAttribute('title',YAHOO.EU.Tab.ACTIVE_TITLE_TEXT);this.bActive=true;return this.bActive;};YAHOO.EU.Tab.prototype.getTab=function(){return this.elTab;}
YAHOO.EU.Tab.prototype.getPane=function(){return this.elPane;}
YAHOO.EU.Tab.prototype.toString=function(){var elText=this.elTabLnk.firstChild;while(elText.nodeType!=3){elText=elText.firstChild;}
return elText.nodeValue;}
YAHOO.EU.Tab.ACTIVE_TITLE_TEXT="active";YAHOO.namespace('YAHOO.EU.widget.Carousel');YAHOO.EU.widget.Carousel=function(){return this;}
YAHOO.EU.widget.Carousel.prototype={init:function(el,oConfig){this.oConfig=oConfig;this.nVisiblePanes=oConfig.visiblePanes||1;this.nPanesToMove=oConfig.panesToMove||this.nVisiblePanes;this.bHorizontal=!oConfig.isVertical;this.bLoop=oConfig.loop||0;this.oCont=YAHOO.util.Dom.get(el);this.oClip=YAHOO.util.Dom.getElementsByClassName('clip','div',this.oCont)[0];this.oPanel=this.oCont.getElementsByTagName('ul')[0];this.oButtonCont=oConfig.buttonCont||this.oCont
YAHOO.util.Dom.addClass(this.oCont,"js");this.assignElements();this.nCurrentPane=0;YAHOO.util.Dom.setStyle(this.oClip,"overflow","hidden");if(this.nPanes>1){this.createNav();}
this.createEvents();this.onAnimStart.fire();return this;},assignElements:function(){var self=this;this.aPanels=YAHOO.util.Dom.getElementsBy(function(o){if(o.parentNode==self.oPanel){return true;}
return false;},"li",this.oPanel);this.nPanes=this.aPanels.length;this.nMoveInc=(this.bHorizontal)?this.aPanels[0].offsetWidth+(parseInt(YAHOO.util.Dom.getStyle(this.aPanels[0],'marginRight'))*2):this.aPanels[0].offsetHeight;},createNav:function(){this.oButtonCont=YAHOO.util.Dom.get(this.oButtonCont);var oA=document.createElement("a");YAHOO.util.Dom.addClass(oA,"btnprev");oA.setAttribute("href","#");oI=document.createElement("img");oI.setAttribute("src",this.oConfig.btnPrev.imgUrl);oI.setAttribute("alt",YAHOO.EU.widget.Carousel.LOCALISATION['PREV_BUTTON_ALT']||'');oI.setAttribute("title",this.oConfig.btnPrev.toolTip||"");oA.appendChild(oI);this.oButtonCont.appendChild(oA);this.oBtnPrev=YAHOO.util.Dom.get(oA);oA=document.createElement("a");YAHOO.util.Dom.addClass(oA,"btnnext");oA.setAttribute("href","#");oI=document.createElement("img");oI.setAttribute("src",this.oConfig.btnNext.imgUrl);oI.setAttribute("alt",YAHOO.EU.widget.Carousel.LOCALISATION['NEXT_BUTTON_ALT']||'');oI.setAttribute("title",this.oConfig.btnNext.toolTip||"");oA.appendChild(oI);this.oButtonCont.appendChild(oA);this.oBtnNext=YAHOO.util.Dom.get(oA);},createEvents:function(){this.onAnimStart=new YAHOO.util.CustomEvent("onAnimStart");this.onAnimEnd=new YAHOO.util.CustomEvent("onAnimEnd");this.onNavigate=new YAHOO.util.CustomEvent("onNavigate");this.onCarouselEnd=new YAHOO.util.CustomEvent("onCarouselEnd");this.onAnimStart.subscribe(this.enableButtons,this,true);this.onAnimEnd.subscribe(this.enableButtons,this,true);if(this.nPanes>1){YAHOO.util.Event.on(this.oBtnPrev,'click',function(e){this.moveBy(e,-1);if(this.pause){this.pause();}},this,true);YAHOO.util.Event.on(this.oBtnNext,'click',function(e){this.moveBy(e,1);if(this.pause){this.pause();}},this,true);}},enableButtons:function(){if(this.nPanes>1){this.oBtnPrev.firstChild.src=this.oConfig.btnPrev.imgUrl;this.oBtnNext.firstChild.src=this.oConfig.btnNext.imgUrl;if(!this.nCurrentPane&&!this.bLoop){this.oBtnPrev.firstChild.src=this.oConfig.btnPrev.imgDisabledUrl;this.oBtnNext.firstChild.src=this.oConfig.btnNext.imgUrl;}
if(this.nCurrentPane>=Math.ceil(this.nPanes/this.nVisiblePanes)&&!this.bLoop){this.oBtnPrev.firstChild.src=this.oConfig.btnPrev.imgUrl;this.oBtnNext.firstChild.src=this.oConfig.btnNext.imgDisabledUrl;}}},moveBy:function(e,nPanes){if(e){YAHOO.util.Event.preventDefault(e);this.onNavigate.fire();}
this.nCurrentPane+=nPanes*this.nPanesToMove;if(this.nCurrentPane+this.nVisiblePanes-this.nPanesToMove>=this.nPanes){if(this.bLoop){this.nCurrentPane=0;}
this.onCarouselEnd.fire();}else if(this.nCurrentPane<=-this.nPanesToMove){if(this.bLoop){this.nCurrentPane=this.nPanes+(nPanes*this.nPanesToMove);}
this.onCarouselEnd.fire();}
this.gotoPane(this.nCurrentPane);},gotoPane:function(nPane){if(nPane<0){nPane=0;}
if(nPane>this.nPanes-this.nVisiblePanes){nPane=this.nPanes-this.nVisiblePanes;}
this.nCurrentPane=nPane;var oAnim=new YAHOO.util.Anim(this.oPanel,(this.bHorizontal)?{left:{to:-this.nMoveInc*nPane}}:{top:{to:-this.nMoveInc*nPane}},this.oConfig.animDuration||0.5,this.oConfig.easing||YAHOO.util.Easing.easeOut);var onAnimEnd=function(type,args){this.onAnimEnd.fire();};oAnim.onComplete.subscribe(onAnimEnd,this,true);this.onAnimStart.fire();oAnim.animate();}}
YAHOO.EU.widget.Carousel.prototype.autoPlay=function(oConfig){var self=this;if(oConfig){this.oAutoConfig=oConfig;if(oConfig.btnPause){oA=document.createElement("a");YAHOO.util.Dom.addClass(oA,"btnpause");oA.setAttribute("href","#");oI=document.createElement("img");oI.setAttribute("src",oConfig.btnPause.imgUrl);oI.setAttribute("alt",YAHOO.EU.widget.Carousel.LOCALISATION['PLAY_BUTTON_ALT']||'');oI.setAttribute("title",oConfig.btnPause.toolTip||"");oA.appendChild(oI);this.oButtonCont.appendChild(oA);this.oBtnPause=YAHOO.util.Dom.get(oA);YAHOO.util.Event.on(this.oBtnPause,'click',this.pause,this,true);this.onNavigate.subscribe(function(){this.pause(true)},this,true);}}
this.bPaused=0;if(this.oBtnPause){this.oBtnPause.firstChild.src=this.oAutoConfig.btnPause.imgUrl;}
this.oTimer=window.setInterval(function(){self.moveBy(null,1)},this.oAutoConfig.autoPlayDelay||5000);return this;}
YAHOO.EU.widget.Carousel.prototype.pause=function(e){if(e&&e!==true){YAHOO.util.Event.preventDefault(e);if(this.bPaused){this.moveBy(null,1);return this.autoPlay();}}
this.bPaused=1;if(this.oBtnPause){this.oBtnPause.firstChild.src=this.oAutoConfig.btnPause.imgPlayUrl;}
clearTimeout(this.oTimer);}
YAHOO.EU.widget.Carousel.prototype.enableCheckForUpdates=function(oConfig){var self=this;this.oLoadConfig=oConfig;this.oLoadTimer=window.setInterval(function(){self.checkForUpdates()},this.oLoadConfig.checkDelay||10000);return this;}
YAHOO.EU.widget.Carousel.prototype.checkForUpdates=function(){YAHOO.util.Connect.asyncRequest("GET",this.oLoadConfig.url+"?n="+(this.nPanes+1),{success:this.checkedForUpdates,scope:this});}
YAHOO.EU.widget.Carousel.prototype.checkedForUpdates=function(oResponse){this.oPanel.innerHTML+=oResponse.responseText;this.assignElements();this.enableButtons();}
YAHOO.EU.widget.Carousel.prototype.paginate=function(sType){sType=sType||'default';var self=this;if(sType=='default'){var oL,oI;oL=document.createElement('ul');YAHOO.util.Dom.addClass(oL,'pagination');updatePagination=function(){var oLi=YAHOO.util.Dom.getElementsBy(function(o){if(o.parentNode===oL){return true;}
return false;},"li",oL);var len=oLi.length;for(i=0;i<len;i++){if(i===Math.ceil(self.nCurrentPane/self.nPanesToMove)){YAHOO.util.Dom.addClass(oLi[i],'current');oLi[i].getElementsByTagName('button')[0].disabled=true;}
else{YAHOO.util.Dom.removeClass(oLi[i],'current');oLi[i].getElementsByTagName('button')[0].disabled=false;}}}
for(i=1;i<Math.ceil((this.nPanes-this.nVisiblePanes)/this.nPanesToMove)+2;i++){oI=document.createElement('li');oB=document.createElement('button');oSp=document.createElement('span');oB.appendChild(oSp);oB.appendChild(document.createTextNode(i));oI.appendChild(oB);oL.appendChild(oI);}
YAHOO.util.Event.on(oL,'click',function(e){this.gotoPane((YAHOO.util.Event.getTarget(e).lastChild.nodeValue-1)*this.nPanesToMove);if(this.pause){this.pause();}
YAHOO.util.Event.preventDefault(e);},this,true);this.oButtonCont.appendChild(oL);}
else{oP=document.createElement('p');YAHOO.util.Dom.addClass(oP,'pagination');this.oButtonCont.appendChild(oP);this.oButtonCont.appendChild(oP);updatePagination=function(){oP.innerHTML=self.nCurrentPane+1+" / "+self.nPanes;}}
updatePagination();this.onAnimStart.subscribe(updatePagination,this,true);return this;}
YAHOO.EU.widget.Carousel.LOCALISATION=[];YAHOO.EU.widget.Carousel.LOCALISATION['NEXT_BUTTON_ALT']='<>Next</>';YAHOO.EU.widget.Carousel.LOCALISATION['PREV_BUTTON_ALT']='<>Previous</>';YAHOO.EU.widget.Carousel.LOCALISATION['PLAY_BUTTON_ALT']='<>Play/Pause</>';YAHOO.EU.widget.Carousel.LOCALISATION['DIRECT_BUTTON_ALT']='<>Go to %s</>';YAHOO.namespace("util.EU");YAHOO.namespace("YAHOO.EU");YAHOO.EU.Rater=function(sId,sImgOffState,sImgOnState,sImgSubmitState,bAutoSubmit,fSubmit){if((document.getElementById&&document.createTextNode&&window.print)){this.elWrapper=document.getElementById(sId);this.sImgOffState=sImgOffState;this.sImgOnState=sImgOnState;this.sImgSubmitState=sImgSubmitState||null;this.bAutoSubmit=bAutoSubmit||false;this.fSubmit=fSubmit||null;this.bDisabled=false;this.bSubmitting=false;this.currentRating=-1;this.elLabel=YAHOO.util.Dom.getElementsByClassName('usrvte','span',this.elWrapper)[0];if(!this.elLabel){return null;}
this.sDefaultValue=this.elLabel.innerHTML;this.aRateEls=[];this.aLabels=this.elWrapper.getElementsByTagName('label');if(this.aLabels.length==0){return;}
this.aValues=[];for(var i=0;i<this.aLabels.length;i++){this.aValues[this.aValues.length]=this.aLabels[i].innerHTML;YAHOO.util.Dom.addClass(this.aLabels[i],'jsRater');}
this.aInputs=this.elWrapper.getElementsByTagName('input');this.elForm=this.aInputs[0];while(this.elForm.nodeName!='FORM'){this.elForm=this.elForm.parentNode;}
YAHOO.util.Dom.addClass(this.elWrapper,'jsRater');this.initRaterView();this.changeRate(this.currentRating);}}
YAHOO.EU.Rater.prototype.initRaterView=function(){for(var i=0;i<this.aInputs.length;i++){var elInp=this.aInputs[i];if(elInp.disabled==true){this.bDisabled=true;}
if(elInp.checked){this.currentRating=i;}
if(elInp.getAttribute("type")=='radio'){var input=elInp[i];var labl=this.aLabels[i];var value=this.aValues[i];if(!this.bDisabled){var anchor=document.createElement('a');anchor.setAttribute('href','#');anchor.setAttribute('title',value);YAHOO.util.Dom.addClass(anchor,'rater_link');YAHOO.util.Event.addListener(anchor,'mouseover',function(e,oArgs){oArgs.o.changeRate(oArgs.rate);oArgs=null;},{o:this,rate:i},true);YAHOO.util.Event.addListener(anchor,'mouseout',this.reset,this,true);YAHOO.util.Event.addListener(anchor,'click',function(e,oArgs){oArgs.o.submitRating(e,oArgs.rate);},{o:this,rate:i},true);YAHOO.util.Event.addListener(anchor,'focus',function(e,oArgs){oArgs.o.changeRate(oArgs.rate);oArgs=null;},{o:this,rate:i},true);YAHOO.util.Event.addListener(anchor,'blur',this.reset,this,true);YAHOO.util.Event.addListener(anchor,'keypress',function(e,oArgs){oArgs.o.submitRatingViaKB(e,oArgs.rate);},{o:this,rate:i},true);}
var rateEl=document.createElement('img');rateEl.setAttribute('src',this.sImgOffState);rateEl.setAttribute('alt',value);rateEl.setAttribute('border','0');this.aRateEls.push(rateEl);labl.removeChild(labl.firstChild);if(!this.bDisabled){anchor.appendChild(rateEl);labl.appendChild(anchor);}else{labl.appendChild(rateEl);}
elInp.style.display='none';YAHOO.util.Dom.addClass(elInp,'jsRater');}
else if(elInp.getAttribute("type")=='submit'&&this.bAutoSubmit){elInp.style.display='none';}}
this.iNumOfRatings=this.aRateEls.length-1;}
YAHOO.EU.Rater.prototype.changeRate=function(iRating){if(this.bSubmitting==true){return false;}
else{this.updateRatingView(0,iRating,this.sImgOnState)
this.setText(iRating);}
return true;}
YAHOO.EU.Rater.prototype.updateRatingView=function(iSt,iFn,sState){if(iSt<0){return false;}
for(var i=this.aRateEls.length-1;i>=0;i--){if(i>iFn){this.aRateEls[i].src=this.sImgOffState;}
else{if(sState){this.aRateEls[i].src=sState;}
else{this.aRateEls[i].src=this.sImgOnState;}}}
return true;}
YAHOO.EU.Rater.prototype.setText=function(iRating){this.elLabel.innerHTML=(iRating>=0)?this.aValues[iRating]:this.sDefaultValue;return true;}
YAHOO.EU.Rater.prototype.reset=function(e){if(this.bSubmitting==true){return false;}
else if(e){var iThreshold=(this.currentRating==-1)?-1:this.currentRating;}
else{var iThreshold=-1;}
this.updateRatingView(this.iNumOfRatings,iThreshold);this.setText(-1);return true;}
YAHOO.EU.Rater.prototype.submitRating=function(e,iRating){this.aInputs[iRating].checked=true;if(this.bAutoSubmit){this.bSubmitting=true;if(this.sImgSubmitState){this.updateRatingView(0,iRating,this.sImgSubmitState);}
if(this.fSubmit){this.fSubmit(iRating);}
else if(this.bAutoSubmit){var self=this;setTimeout(function(){self.submit();self=null;},200);}}
else{this.currentRating=iRating;}
YAHOO.util.Event.stopEvent(e);return false;}
YAHOO.EU.Rater.prototype.submit=function(){this.elForm.submit();}
YAHOO.EU.Rater.prototype.submitRatingViaKB=function(e,iRating){var keyCode=(e.keyCode)?e.keyCode:e.which;if(keyCode==13){return this.submitRating(e,iRating);}}
YAHOO.util.ListToSelect=function(oConfig){this.init(oConfig)};YAHOO.util.ListToSelect.prototype={init:function(oConfig){this.oEl=YAHOO.util.Dom.get(oConfig.sID);var oForm=document.createElement("form");this.oSelect=document.createElement("select");YAHOO.util.Dom.generateId(this.oSelect);if(oConfig.sLabel){var oLabel=document.createElement("label");oLabel.setAttribute("for",this.oSelect.id);oLabel.appendChild(document.createTextNode(oConfig.sLabel));oForm.appendChild(oLabel);}
oForm.appendChild(this.oSelect);if(oConfig.sFirstOption){oOption=document.createElement("option");oOption.appendChild(document.createTextNode(oConfig.sFirstOption));this.oSelect.appendChild(oOption);}
var aOptions,oGroup,oOption;if(oConfig.aOptgroups){var aGroups=oConfig.aOptgroups;for(var i=0;i<aGroups.length;i++){aOptions=aGroups[i].parentNode.getElementsByTagName("a");oGroup=document.createElement("optgroup");oGroup.setAttribute("label",aGroups[i].firstChild.nodeValue);for(var j=0;j<aOptions.length;j++){oOption=document.createElement("option");oOption.appendChild(document.createTextNode(aOptions[j].firstChild.nodeValue));oOption.setAttribute("value",aOptions[j].getAttribute("href"));oGroup.appendChild(oOption);}
this.oSelect.appendChild(oGroup);}}else{aOptions=oConfig.aOptions;for(var j=0;j<aOptions.length;j++){oOption=document.createElement("option");oOption.appendChild(document.createTextNode(aOptions[j].firstChild.nodeValue));oOption.setAttribute("value",aOptions[j].getAttribute("href"));this.oSelect.appendChild(oOption);}}
var oButton=document.createElement("input");oButton.type="submit";oButton.value=oConfig.sSubmitText;YAHOO.util.Dom.addClass(oButton,"sub");YAHOO.util.Event.addListener(oButton,"click",function(e){this.submitItem(e)},this,true);oForm.appendChild(oButton);var oWrapper=this.oEl.getElementsByTagName("div")[0];oWrapper.parentNode.removeChild(oWrapper);this.oEl.insertBefore(oForm,this.oEl.firstChild);},submitItem:function(e){YAHOO.util.Event.stopEvent(e);if(this.oSelect.selectedIndex){self.location=this.oSelect[this.oSelect.selectedIndex].value;}}};function Messenger(){this.startDetect();return null;}
Messenger.prototype.installed=0;Messenger.prototype.cobrand='';Messenger.prototype.intl='us';Messenger.prototype.version="4";Messenger.prototype.platform="w32";Messenger.prototype.post=[];Messenger.prototype.detect=function(){for(var i=0;i<this.post.length;i++){this[this.post[i]]();}
this.post=[];return this;};Messenger.prototype.startDetect=function(){var ok=this.detectCookie();if(!ok){ok=this.detectBing();}
if(!ok){ok=this.detectRafi();}
if(!ok){ok=this.detectCapabilities();}
if(!ok){ok=this.detectControl();}
if(!ok){ok=this.detectMime();}};Messenger.prototype.detectControl=function(){if(this.detectBrowser()=='ie'){document.writeln("<object classid='clasid:41695A8E-6414-11D4-8FB3-00D0B7730277' hidden='true' id='Ymsgr01' width='0' height='0' codebase='tkzwtyzwzi:qwerty'><span id='Ymsgr00'></span></object>");this.post[this.post.length]="postDetectControl";}};Messenger.prototype.detectBrowser=function(){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('opera')!=-1){return'opera';}else if(ua.indexOf('msie')!=-1){return'ie';}else if(ua.indexOf('safari')!=-1){return'safari';}else if(ua.indexOf('flock')!=-1){return'flock';}else if(ua.indexOf('firefox')!=-1){return'firefox';}else if(ua.indexOf('gecko')!=-1){return'gecko';}else{return false;}};Messenger.prototype.postDetectControl=function(){var w,v;if(document.all){v=document.all.Ymsgr00;}else{v=document.getElementById("Ymsgr00");}
if(v){w=document.getElementById("Ymsgr01");if(w&&w.offsetHeight){this.installed=1;this.version="5.02";this.platform="w32";}else{return false;}}else{this.installed=1;this.version="5.03";this.platform="w32";}
return true;};Messenger.prototype.detectMime=function(){if(navigator.mimeTypes&&navigator.mimeTypes.length){for(var i=0;i<navigator.mimeTypes.length;i++){if(navigator.mimeTypes[i].suffixes.indexOf("yps")>-1){this.installed=1;this.version="5.04";this.platform="w32";return true;}}}
return false;};Messenger.prototype.detectCapabilities=function(){if(document.body&&document.body.style&&typeof document.body.style.behavior=="string"){document.body.style.behavior="url(#default#clientCaps)";var ver=document.body.getComponentVersion("{E5D12C4E-7B4F-11D3-B5C9-0050045C3C96}","ComponentID");if(ver){this.installed=1;this.version=ver;this.platform="w32";return true;}}
return false;};Messenger.prototype.detectBing=function(){if(this.detectBrowser()=='ie'){document.writeln('<object id="Ymsgr02" classid="CLSID:DA4F543C-C8A9-4E88-9A79-548CBB46F18F" hidden="true" width="0" height="0" codebase="tkzwtyzwzi:qwerty"></object>');this.post[this.post.length]="postDetectBing";}};Messenger.prototype.postDetectBing=function(){var v;if(document.all){v=document.all.Ymsgr02;}else{v=document.getElementById("Ymsgr02");}
if(!v){return false;}
if(typeof v.installed=="undefined"){return false;}
if(typeof v.version=="undefined"){return false;}
this.installed=v.installed();var versionstring=v.version(1);if(!versionstring||typeof versionstring=="undefined"){return false;}
this.version=versionstring.split(".").join(",");this.cobrand=v.cobrand();this.intl=v.intl();return true;};Messenger.prototype.detectRafi=function(){if(!document.getElementById){return false;}
if(!navigator.plugins["Yahoo Application State Plugin"]){return false;}
document.writeln("<object id='Ymsgr03' type='application/x-vnd.yahoo.applicationState' hidden='true'></object>");this.post[this.post.length]="postDetectRafi";return false;};Messenger.prototype.postDetectRafi=function(){var v=document.getElementById("Ymsgr03");if(!v){return false;}
if(typeof v.applicationInfo!="function"){return false;}
var m=v.applicationInfo("msgr");if(!m){return false;}
this.installed=m.installed();var ver=m.version();this.version=ver.major+","+ver.minor+","+ver.hiBuild+","+ver.loBuild;this.cobrand=m.cobrand();this.intl=m.internationalCode();return true;};Messenger.prototype.detectCookie=function(){return false;};function addSendViaIM(){YAHOO.EU.Messenger.detect();if(YAHOO.EU.Messenger.installed){var el=document.getElementById('im');el.href="ymsgr:im?msg="+sDefaultMsg+"+"+sStoryHeadline+"+"+sStoryLink;}}
var sponsored_links={get_links:function(overture){var url="/modules/common/sponsored_links_json.php?url=";this.links=0;this.linkbox=YAHOO.util.Dom.get("sponsoredLinks");var s=document.createElement("script");s.setAttribute("src",url+overture);document.body.appendChild(s);},gen_link:function(title,desc,host,url){this.linkbox.style.display='block';this.links++;var dt=document.createElement("dt");if(this.links==1){YAHOO.util.Dom.addClass(dt,'first');}
var a=document.createElement("a");a.setAttribute("href",url);a.setAttribute("title",host);a.appendChild(document.createTextNode(title));dt.appendChild(a);var dd1=document.createElement("dd");dd1.appendChild(document.createTextNode(desc));var dd2=document.createElement("dd");YAHOO.util.Dom.addClass(dd2,'lnk');a=document.createElement("a");a.setAttribute("href",url);a.setAttribute("title",host);a.appendChild(document.createTextNode(host));dd2.appendChild(a);this.linkbox.appendChild(dt);this.linkbox.appendChild(dd1);this.linkbox.appendChild(dd2);}};function process_sponsored_links(links){for(i in links){link=links[i];sponsored_links.gen_link(link.title,link.description,link.siteHost,link.clickUrl);}}
YAHOO.EU.LinkPopper={init:function(){popupFunction=function(e){var link=YAHOO.util.Event.getTarget(e);while(link&&link.nodeName!="A"){link=link.parentNode;}
if(!link){return true;}
if(link.href&&link.getAttribute("rel")!="popless"&&(link.href.match(/\/photos\/slideshow/)||link.href.match(/\/fotos\/diapositivas/)||link.href.match(/\/fotos\/diashow/)||link.href.match(/\/foto\/galleria/)||link.href.match(/\/photos\/diaporama/)||link.href.match(/photos\/photo_ss_single/))&&!window.opener){var newwindow=window.open(link.href,"SlideshowPopupWindow","height=650,width=760,scrollbars=no");newwindow.opener=window;YAHOO.util.Event.stopEvent(e);}};YAHOO.util.Event.addListener(document,'click',popupFunction);},popdownInit:function(){popdownFunction=function(e){var link=YAHOO.util.Event.getTarget(e);while(link&&link.nodeName!="A"){link=link.parentNode;}
if(!link){return true;}
if(link.href&&window.opener){window.opener.location=link.href;YAHOO.util.Event.stopEvent(e);window.close();}};var thePopdownLinks=YAHOO.util.Dom.getElementsByClassName("popdown-ss","a");YAHOO.util.Event.addListener(thePopdownLinks,'click',popdownFunction);popdownFormFunction=function(e){var form=this;var url=form.getAttribute('action');if(window.opener&&url.match(/http:\/\/\w+\.search\.yahoo\.com/)){var data='';for(var i=0,len=form.elements.length;i<len;i++){var oName=encodeURIComponent(form.elements[i].name);var oValue=encodeURIComponent(form.elements[i].value);if(oName){data+=oName+"="+oValue+"&";}}
data=data.substr(0,data.length-1);url+="?"+data;window.opener.location=url;YAHOO.util.Event.stopEvent(e);window.close();}
return true;}
var theForms=document.getElementsByTagName('form');YAHOO.util.Event.addListener(theForms,'submit',popdownFormFunction);}};YAHOO.EU.LinkPopper.init();YAHOO.util.Event.onContentReady('bd',YAHOO.EU.LinkPopper.popdownInit);
