
var yAction=new function()
{this.config={};this.config.global={};this.config.builtin={textUnderlineNormal:'false',textUnderlineHover:'false',textColorNormal:'#333333',textColorHover:'#333333',buttonHighlightColorNormal:'#ffffff',buttonHighlightColorHover:'#808080',buttonShadowColorNormal:'#808080',buttonShadowColorHover:'#ffffff',buttonBackgroundColorNormal:'#f0f0f0',buttonBackgroundColorHover:'#cccccc',vPadding:5,hPadding:5,buttonShowIcon:'true',buttonShowVehicle:'true',buttonShowSubject:'true',buttonIsSuper:'false',buttonSuperOptions:[],buttonVerb:'',buttonSubject:'',buttonVehicle:'',imgBase:'http://us.i1.yimg.com/us.yimg.com/i/us/my/el/'};this.init=function()
{var allLinks=document.getElementsByTagName('a');var len=allLinks.length;for(var i=0;i<len;++i)
{if(allLinks[i].className.indexOf('yaction-')>=0)
{var yact=new yAction.instance(allLinks[i]);}}};this.instance=function(o){this.config={};this.config.typeOverride={};this.config.actionOverride={};var yACG=yAction.config.global;var yATO=this.config.typeOverride;var yAAO=this.config.actionOverride;var yACB=yAction.config.builtin;var buttonProperties=o.className.split("-");this.config.buttonType=buttonProperties[1].toUpperCase();this.config.actionType=buttonProperties[2].toUpperCase();switch(this.config.buttonType)
{case'BUTTON':this.config.typeOverride={textUnderlineNormal:'false',textUnderlineHover:'false',textColorNormal:'#333333',textColorHover:'#333333',buttonHighlightColorNormal:'#ffffff',buttonHighlightColorHover:'#808080',buttonShadowColorNormal:'#808080',buttonShadowColorHover:'#ffffff',buttonBackgroundColorNormal:'#f0f0f0',buttonBackgroundColorHover:'#cccccc',buttonShowIcon:'true',buttonShowVehicle:'true',buttonShowSubject:'false',buttonIsSuper:'false'};break;case'LINK':this.config.typeOverride={textUnderlineNormal:'true',textUnderlineHover:'false',textColorNormal:'#333333',textColorHover:'#333333',buttonHighlightColorNormal:'',buttonHighlightColorHover:'',buttonShadowColorNormal:'',buttonShadowColorHover:'',buttonBackgroundColorNormal:'transparent',buttonBackgroundColorHover:'transparent',buttonShowIcon:'true',buttonShowVehicle:'true',buttonShowSubject:'false',buttonIsSuper:'false'};break;case'IMAGE':this.config.typeOverride={textUnderlineNormal:'false',textUnderlineHover:'false',textColorNormal:'#333333',textColorHover:'#333333',buttonHighlightColorNormal:'',buttonHighlightColorHover:'',buttonShadowColorNormal:'',buttonShadowColorHover:'',buttonBackgroundColorNormal:'#ffffff',buttonBackgroundColorHover:'#336ECA',vPadding:0,hPadding:0,buttonShowIcon:'false',buttonShowVehicle:'false',buttonShowSubject:'false',buttonIsSuper:'false'};break;}
switch(this.config.actionType)
{case'KEEP':this.config.actionOverride={buttonVerb:'Keep',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'',buttonActionUrl:window.location,buttonSuperOptions:[['delicious','Bookmark with del.icio.us','http://del.icio.us/post?url=','',''],['myweb','Save to My Web','http://myweb2.search.yahoo.com/myresults/bookmarklet?u=','',''],['what','&raquo; What\'s This?','http://myweb2.search.yahoo.com/myresults/faq','','']]};break;case'SHARE':this.config.actionOverride={buttonVerb:'Share',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'',buttonActionUrl:window.location,buttonSuperOptions:[['email','Email this page','mailto:?subject=&body=','',''],['im','IM this page','http://myweb2.search.yahoo.com/myweb/im?myfr=mwp&ei=UTF-8&eo=ISO-8859-1&u=','',''],['sms','Send this page via mobile','http://mobile.yahoo.com/sms/sendsms?msg=','',''],['blog','Post this page to my blog','http://blog.360.yahoo.com/blog/compose.html?bcurl=','',''],['what','&raquo; What\'s This?','http://publisher.yahoo.com/social_media_tools/','','']]};break;case'SAVE':this.config.actionOverride={buttonVerb:'Save',buttonSubject:'',buttonVehicleId:'My_Web',buttonVehicle:'to My Web',buttonActionUrl:window.location,buttonSuperOptions:[['myweb','Save to My Web','http://myweb2.search.yahoo.com/myresults/bookmarklet?u=','',''],['delicious','Bookmark with del.icio.us','http://del.icio.us/post?url=','',''],['what','&raquo; What\'s This?','http://myweb2.search.yahoo.com/myresults/faq','','ctrl']]};break;case'BOOKMARK':this.config.actionOverride={buttonVerb:'Bookmark',buttonSubject:'',buttonVehicleId:'delicious',buttonVehicle:'with del.icio.us',buttonActionUrl:window.location,buttonSuperOptions:[['what','&raquo; What\'s This?','http://del.icio.us/about/','','']]};break;case'BLOG':this.config.actionOverride={buttonVerb:'Blog',buttonSubject:'',buttonVehicleId:'360',buttonVehicle:'via 360&deg;',buttonActionUrl:window.location};break;case'SEND':this.config.actionOverride={buttonVerb:'Send',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'',buttonActionUrl:window.location,buttonSuperOptions:[['email','Email this page','mailto:?subject=&body=','',''],['im','IM this page','http://myweb2.search.yahoo.com/myweb/im?myfr=mwp&ei=UTF-8&eo=ISO-8859-1&u=','',''],['sms','Text this page','http://mobile.yahoo.com/sms/sendsms?msg=','','']]};break;case'PRINT':this.config.actionOverride={buttonVerb:'Print',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'',buttonActionUrl:window.location};break;case'PODCAST':this.config.actionOverride={buttonVerb:'<img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/a2y.gif" width="104" height="17" border="0">',buttonSubject:'',buttonVehicleId:'podcast',buttonVehicle:'',buttonActionUrl:window.location,buttonSuperOptions:[['podcast','Subscribe via Yahoo! Podcasts','http://podcasts.yahoo.com/series?s=','',''],['atm','Add to your personalized My Yahoo! page','http://add.my.yahoo.com/rss?url=','',''],['alerts','Create an Alert (Email, IM, and/or Mobile)','http://alerts.yahoo.com/main.php?view=blogs&url=','',''],['rss','View RSS/XML','','',''],['what','&raquo; What\'s This?','http://my.yahoo.com/s/intl/us/about/rss/index.html','','ctrl']]};break;case'ALERT':this.config.actionOverride={buttonVerb:'Create',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'an Alert',buttonActionUrl:window.location};break;case'SUBSCRIBE':this.config.actionOverride={buttonVerb:'Subscribe',buttonSubject:'to this feed',buttonVehicleId:'',buttonVehicle:'via Yahoo!',buttonActionUrl:window.location,buttonSuperOptions:[['atm','Add to your personalized My Yahoo! page','http://add.my.yahoo.com/rss?url=','',''],['alerts','Create an Alert (Email,IM,and/or Mobile)','http://alerts.yahoo.com/main.php?view=blogs&url=','',''],['rss','View RSS/XML','','',''],['what','&raquo; What\'s This?','http://my.yahoo.com/s/intl/us/about/rss/index.html','','ctrl']]};break;case'ATM':this.config.actionOverride={buttonVerb:'Add',buttonSubject:'this feed',buttonVehicleId:'',buttonVehicle:'to My Yahoo!',buttonActionUrl:window.location,buttonSuperOptions:[['atm','Add to your personalized My Yahoo! page','http://add.my.yahoo.com/rss?url=','',''],['alerts','Create an Alert (Email,IM,and/or Mobile)','http://alerts.yahoo.com/main.php?view=blogs&url=','',''],['rss','View RSS/XML','','',''],['what','&raquo; What\'s This?','http://my.yahoo.com/s/intl/us/about/rss/index.html','','ctrl']]};break;case'RECORD':this.config.actionOverride={buttonVerb:'Record',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'to TiVo',buttonActionUrl:window.location,buttonSuperOptions:[['what','&raquo; What\'s This?','http://tv.yahoo.com/onlinesch/tivo/introscreen','','']]};break;case'CALENDAR':this.config.actionOverride={buttonVerb:'Add',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'to my Yahoo! Calendar',buttonActionUrl:window.location,buttonSuperOptions:[['what','&raquo; What\'s This?','http://help.yahoo.com/plus/cal/','','']]};break;case'SHOPPING':this.config.actionOverride={buttonVerb:'Add',buttonSubject:'',buttonVehicleId:'',buttonVehicle:'to my Yahoo! Wish List',buttonActionUrl:window.location,buttonSuperOptions:[['what','&raquo; What\'s This?','http://help.yahoo.com/help/us/shop/saved/','','']]};}
this.config.buttonShowVehicle=this.config.typeOverride['buttonShowVehicle'];this.config.buttonShowSubject=this.config.typeOverride['buttonShowSubject'];this.config.buttonVerb=this.config.actionOverride['buttonVerb'];this.config.buttonSubject=this.config.actionOverride['buttonSubject'];this.config.buttonVehicle=this.config.actionOverride['buttonVehicle'];var yATO=this.config.typeOverride;var yAAO=this.config.actionOverride;this.config.buttonSubject=yACG.buttonSubject||yATO.buttonSubject||yAAO.buttonSubject||document.title||window.location;this.config.buttonActionUrl=o.href||this.config.typeOverride['buttonActionUrl']||this.config.actionOverride['buttonActionUrl'];this.config.buttonShowIcon=yACG.buttonShowIcon||this.config.typeOverride['buttonShowIcon']||this.config.actionOverride['buttonShowIcon']||yACB.buttonShowIcon;this.config.buttonIsSuper=yACG.buttonIsSuper||this.config.typeOverride['buttonIsSuper']||this.config.actionOverride['buttonIsSuper']||yACB.buttonIsSuper;this.config.buttonSuperSettings=yACG.buttonSuperSettings||this.config.typeOverride['buttonSuperSettings']||this.config.actionOverride['buttonSuperSettings']||yACB.buttonSuperSettings;this.config.textColorNormal=yACG.textColorNormal||this.config.typeOverride['textColorNormal']||this.config.actionOverride['textColorNormal']||yACB.textColorNormal;this.config.textColorHover=yACG.textColorHover||this.config.typeOverride['textColorHover']||this.config.actionOverride['textColorHover']||yACB.textColorHover;this.config.buttonHighlightColorNormal=yACG.buttonHighlightColorNormal||this.config.typeOverride['buttonHighlightColorNormal']||this.config.actionOverride['buttonHighlightColorNormal']||yACB.buttonHighlightColorNormal;this.config.buttonHighlightColorHover=yACG.buttonHighlightColorHover||this.config.typeOverride['buttonHighlightColorHover']||this.config.actionOverride['buttonHighlightColorHover']||yACB.buttonHighlightColorHover;this.config.buttonShadowColorNormal=yACG.buttonShadowColorNormal||this.config.typeOverride['buttonShadowColorNormal']||this.config.actionOverride['buttonShadowColorNormal']||yACB.buttonShadowColorNormal;this.config.buttonShadowColorHover=yACG.buttonShadowColorHover||this.config.typeOverride['buttonShadowColorHover']||this.config.actionOverride['buttonShadowColorHover']||yACB.buttonShadowColorHover;this.config.buttonBackgroundColorNormal=yACG.buttonBackgroundColorNormal||this.config.typeOverride['buttonBackgroundColorNormal']||this.config.actionOverride['buttonBackgroundColorNormal']||yACB.buttonBackgroundColorNormal;this.config.buttonBackgroundColorHover=yACG.buttonBackgroundColorHover||this.config.typeOverride['buttonBackgroundColorHover']||this.config.actionOverride['buttonBackgroundColorHover']||yACB.buttonBackgroundColorHover;this.config.vPadding=yACG.vPadding||this.config.typeOverride['vPadding']||this.config.actionOverride['vPadding']||yACB.vPadding;this.config.hPadding=yACG.hPadding||this.config.typeOverride['hPadding']||this.config.actionOverride['hPadding']||yACB.hPadding;this.config.textUnderlineNormal=yACG.textUnderlineNormal||this.config.typeOverride['textUnderlineNormal']||this.config.actionOverride['textUnderlineNormal']||yACB.textUnderlineNormal;this.config.textUnderlineHover=yACG.textUnderlineHover||this.config.typeOverride['textUnderlineHover']||this.config.actionOverride['textUnderlineHover']||yACB.textUnderlineHover;this.config.buttonSuperOptions=yACG.buttonSuperOptions||this.config.typeOverride['buttonSuperOptions']||this.config.actionOverride['buttonSuperOptions']||yACB.buttonSuperOptions;this.config.textUnderlineStyleNormal=(this.config.textUnderlineNormal=='true')?'underline':'none';this.config.textUnderlineStyleHover=(this.config.textUnderlineHover=='true')?'underline':'none';this.config.buttonActionLoc='';if(o.id)
{this.id=o.id;if(yAction.config[o.id])
{var oButton=document.getElementById(o.id);for(i in yAction.config[o.id]){this.config[i]=yAction.config[o.id][i]||this.config[i];}
this.config.buttonHighlightColorNormal=this.config['buttonTopAndLeftBorderColor']||this.config.buttonHighlightColorNormal;this.config.buttonHighlightColorHover=this.config['buttonBottomAndRightBorderColor']||this.config.buttonShadowColorNormal;this.config.buttonShadowColorNormal=yAction.config[o.id]['buttonBottomAndRightBorderColor']||this.config.buttonShadowColorNormal;this.config.buttonShadowColorHover=yAction.config[o.id]['buttonTopAndLeftBorderColor']||this.config.buttonHighlightColorNormal;this.config.textUnderlineStyleNormal=(this.config.textUnderlineNormal=='true')?'underline':'none';this.config.textUnderlineStyleHover=(this.config.textUnderlineHover=='true')?'underline':'none';this.config.buttonActionLoc=(yAction.config[o.id]['buttonActionLoc'])?yAction.config[o.id]['buttonActionLoc']+'.':this.config.buttonActionLoc;}}
var self=this;o.style.borderTopColor=o.style.borderLeftColor=this.config.buttonHighlightColorNormal;o.style.borderRightColor=o.style.borderBottomColor=this.config.buttonShadowColorNormal;o.style.textDecoration=this.config.textUnderlineStyleNormal;o.style.backgroundColor=this.config.buttonBackgroundColorNormal;var onclickAction;switch(this.config.actionType)
{case'SAVE':switch(this.config.buttonVehicleId)
{case'My_Web':onclickAction=function(){window.open('http://'+encodeURIComponent(self.config.buttonActionLoc)+'myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(self.config.buttonSubject)+'&u='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false;};break;default:onclickAction=function(){window.open('http://'+encodeURIComponent(self.config.buttonActionLoc)+'myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(self.config.buttonSubject)+'&u='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false;};break;}
break;case'KEEP':switch(this.config.buttonVehicleId)
{case'My_Web':onclickAction=function(){window.open('http://'+encodeURIComponent(self.config.buttonActionLoc)+'myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(self.config.buttonSubject)+'&u='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false;};break;default:onclickAction=function(){window.open('http://'+encodeURIComponent(self.config.buttonActionLoc)+'myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(self.config.buttonSubject)+'&u='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false;};break;}
break;case'BOOKMARK':switch(this.config.buttonVehicleId)
{case'bookmark':onclickAction=function(){window.open('http://del.icio.us/post?title='+encodeURIComponent(self.config.buttonSubject)+'&url='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8&noui&v=4&jump=close','popup','width=700px,height=400px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50,noui,v=4,jump=close',0);return false;};break;default:onclickAction=function(){window.open('http://del.icio.us/post?title='+encodeURIComponent(self.config.buttonSubject)+'&url='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8&noui&v=4&jump=close','popup','width=700px,height=400px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false;};break;}
break;case'BLOG':switch(this.config.buttonVehicleId)
{case'360':onclickAction=function(){window.open('http://blog.360.yahoo.com/blog/compose.html?bct='+encodeURIComponent(self.config.buttonSubject)+'&bcurl='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8',0);return false;};break;default:onclickAction=function(){window.open('http://blog.360.yahoo.com/blog/compose.html?bct='+encodeURIComponent(self.config.buttonSubject)+'&bcurl='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8',0);return false;};break;}
break;case'SEND':switch(this.config.buttonVehicleId)
{case'yahoomailtofriend':onclickAction=function(){window.location.href='http://m2f.news.yahoo.com/mailto/?url='+encodeURIComponent(self.config.buttonActionUrl)+'&prop='+encodeURIComponent(self.config.buttonActionUrlPROP)+'&locale='+encodeURIComponent(self.config.buttonActionUrlLOCALE)+'&title='+encodeURIComponent(self.config.buttonActionUrlTITLE)+'&h1='+encodeURIComponent(self.config.buttonActionUrlH1)+'&h2='+encodeURIComponent(self.config.buttonActionUrlH2)+'&h3='+encodeURIComponent(self.config.buttonActionUrlH3)+'&ei=UTF-8';return false;};break;case'mailto':onclickAction=function(){window.open('mailto:?subject='+encodeURIComponent(self.config.buttonActionUrlTITLE)+'&body='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8',0);return false;};break;case'url':onclickAction=function(){window.open(self.config.buttonActionUrl);return false;};break;default:onclickAction=function(){window.open('mailto:?subject='+encodeURIComponent(self.config.buttonSubject)+'&body='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8',0);return false;};break;}
break;case'SHARE':switch(this.config.buttonVehicleId)
{case'yahoomailtofriend':onclickAction=function(){window.location.href='http://m2f.news.yahoo.com/mailto/?url='+encodeURIComponent(self.config.buttonActionUrl)+'&prop='+encodeURIComponent(self.config.buttonActionUrlPROP)+'&locale='+encodeURIComponent(self.config.buttonActionUrlLOCALE)+'&title='+encodeURIComponent(self.config.buttonActionUrlTITLE)+'&h1='+encodeURIComponent(self.config.buttonActionUrlH1)+'&h2='+encodeURIComponent(self.config.buttonActionUrlH2)+'&h3='+encodeURIComponent(self.config.buttonActionUrlH3)+'&ei=UTF-8';return false;};break;case'mailto':onclickAction=function(){window.open('mailto:?subject='+encodeURIComponent(self.config.buttonActionUrlTITLE)+'&body='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8',0);return false;};break;case'url':onclickAction=function(){window.open(self.config.buttonActionUrl);return false;};break;default:onclickAction=function(){window.open('mailto:?subject='+encodeURIComponent(self.config.buttonSubject)+'&body='+encodeURIComponent(self.config.buttonActionUrl)+'&ei=UTF-8',0);return false;};break;}
break;case'PRINT':switch(this.config.buttonVehicleId)
{case'url':onclickAction=function(){window.open(self.config.buttonActionUrl);return false;};break;default:onclickAction=function(){window.print();return false;};break;}
break;case'ATM':onclickAction=function(){window.location.href='http://add.my.yahoo.com/rss?url='+encodeURIComponent(self.config.buttonActionUrl);return false;};break;case'KEEP':onclickAction=function(){window.location.href='http://add.my.yahoo.com/rss?url='+encodeURIComponent(self.config.buttonActionUrl);return false;};break;case'SHARE':onclickAction=function(){window.location.href='http://add.my.yahoo.com/rss?url='+encodeURIComponent(self.config.buttonActionUrl);return false;};break;case'PODCAST':onclickAction=function(){window.location.href='http://podcasts.yahoo.com/series?s='+encodeURIComponent(self.config.buttonActionUrl);return false;};break;case'ALERT':onclickAction=function(){window.location.href='http://alerts.yahoo.com/main.php?view=blogs&url='+encodeURIComponent(self.config.buttonActionUrl);return false;};break;case'SUBSCRIBE':onclickAction=function(){window.location.href='http://add.my.yahoo.com/rss?url='+encodeURIComponent(self.config.buttonActionUrl);return false;};break;case'RECORD':onclickAction=function(){window.location.href='http://us.rd.yahoo.com/tv/onlinesch/tivo/record/episode/?http://tv.yahoo.com/onlinesch/tivo/recoptions_ep?&id='+encodeURIComponent(self.config.buttonActionUrlID)+'&cf='+encodeURIComponent(self.config.buttonActionUrlCF)+'&lineup='+encodeURIComponent(self.config.buttonActionUrlLINEUP)+'&channels='+encodeURIComponent(self.config.buttonActionUrlCHANNELS)+'&chspid='+encodeURIComponent(self.config.buttonActionUrlCHSPID)+'&chname='+encodeURIComponent(self.config.buttonActionUrlCHNAME)+'&progutn='+encodeURIComponent(self.config.buttonActionUrlPROGUTN)+'&.intl=us';return false;};break;case'CALENDAR':onclickAction=function(){window.location.href='http://calendar.yahoo.com/?&v='+encodeURIComponent(self.config.buttonActionUrlV)+'&TITLE='+encodeURIComponent(self.config.buttonActionUrlTITLE)+'&TYPE='+encodeURIComponent(self.config.buttonActionUrlTYPE)+'&VIEW='+encodeURIComponent(self.config.buttonActionUrlVIEW)+'&DUR='+encodeURIComponent(self.config.buttonActionUrlDUR)+'&ST='+encodeURIComponent(self.config.buttonActionUrlST)+'&URL='+encodeURIComponent(self.config.buttonActionUrl)+'&in_loc='+encodeURIComponent(self.config.buttonActionUrlLOC)+'&.intl=us';return false;};break;}
o.onclick=onclickAction;var buttonLabel;if(o.innerHTML)
{buttonLabel=o.innerHTML;}
else
{buttonLabel=this.config.buttonVerb;if(this.config.buttonShowSubject=='true'&&this.config.buttonSubject!=='')
{buttonLabel+=' '+this.config.buttonSubject;}
if(this.config.buttonShowVehicle=='true'&&this.config.buttonVehicle!=='')
{buttonLabel+=' '+this.config.buttonVehicle;}}
o.innerHTML=buttonLabel;o.style.paddingTop=o.style.paddingBottom=this.config.vPadding+'px';o.style.paddingLeft=o.style.paddingRight=this.config.hPadding+'px';o.style.paddingLeft=parseInt(o.style.paddingLeft)+21+'px';if(this.config.buttonShowIcon=='false')
{o.style.backgroundImage='none';o.style.paddingLeft=o.style.paddingRight=this.config.hPadding+'px';o.style.backgroundPosition='center center';}
if(this.config.buttonType=='IMAGE')
{o.style.padding='0px';o.style.margin='0px';}
var testfunction=function(e,self){o.style.backgroundColor=self.config.buttonBackgroundColorNormal;o.style.textDecoration=self.config.textUnderlineStyleNormal;o.style.borderTopColor=o.style.borderLeftColor=self.config.buttonHighlightColorNormal;o.style.borderBottomColor=o.style.borderRightColor=self.config.buttonShadowColorNormal;};var testfunction2=function(){o.style.backgroundColor=self.config.buttonBackgroundColorHover;o.style.textDecoration=self.config.textUnderlineStyleHover;o.style.borderTopColor=o.style.borderLeftColor=self.config.buttonHighlightColorHover;o.style.borderBottomColor=o.style.borderRightColor=self.config.buttonShadowColorHover;};switch(this.config.buttonType)
{case'BUTTON':yui.Event.addListener(o,'mouseout',testfunction,this);yui.Event.addListener(o,'mouseover',testfunction2,this);break;case'LINK':yui.Event.addListener(o,'mouseout',function(){o.style.textDecoration=self.config.textUnderlineStyleNormal;});yui.Event.addListener(o,'mouseover',function(){o.style.textDecoration=self.config.textUnderlineStyleHover;});break;}
if(this.config.buttonIsSuper=='true')
{var superOptionsBox=document.createElement('div');var superOptions=document.createElement('ul');superOptionsBox.className="yaction-super-options";superOptionsBox.appendChild(superOptions);superOptionsBox.style.margin='0px';superOptionsBox.style.padding='0px';superOptions.style.margin='0px';superOptions.style.padding='0px';var tmpOpts=this.config.buttonSuperOptions;var tmpOuts='';var tmpOptsLen=tmpOpts.length;if(tmpOptsLen>0)
{for(var i=0;i<tmpOptsLen;i++)
{var li=document.createElement('li');var liDEST=tmpOpts[i][0];var liLABEL=tmpOpts[i][1];var liURL=tmpOpts[i][2];var liTARGET=tmpOpts[i][3];var liCLASS=tmpOpts[i][4];var lihover=function(e,self){this.style.color='#fff';this.style.backgroundColor='#336ECA';};var linormal=function(e,self){this.style.color=self.config.textColorNormal;this.style.backgroundPosition="10px center";this.style.backgroundRepeat="no-repeat";this.style.backgroundColor=self.config.buttonBackgroundColorNormal;};var lictrlhover=function(e,self){this.style.color='#000';};var lictrlnormal=function(e,self){this.style.color='#333';};switch(liLABEL){case'separator':break;default:var liACTION;switch(liDEST)
{case'keep':liACTION=liURL+this.config.buttonActionUrl;break;case'share':liACTION=liURL+this.config.buttonActionUrl;break;case'atm':liACTION=liURL+this.config.buttonActionUrl;break;case'myweb':liACTION=liURL+this.config.buttonActionUrl;break;case'blog':liACTION=liURL+this.config.buttonActionUrl;break;case'delicious':liACTION=liURL+this.config.buttonActionUrl;break;case'alert':liACTION=liURL+this.config.buttonActionUrl;break;case'podcast':liACTION=liURL+this.config.buttonActionUrl;break;case'email':liACTION=liURL+this.config.buttonActionUrl;break;case'im':liACTION=liURL+this.config.buttonActionUrl;break;case'sms':liACTION=liURL+this.config.buttonActionUrl;break;case'rss':liACTION=this.config.buttonActionUrl;break;default:liACTION=liURL;}
var liOnclickAction;switch(liTARGET)
{case"popup":liOnclickAction=function(){window.open(liACTION,'popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);return false;};break;default:liOnclickAction=function(e,url){window.location.href=url;};break;}
switch(liCLASS)
{case'first':li.style.backgroundImage="url('http://us.i1.y472.com/us.yimg.com/i/ww/chkw.gif')";li.style.backgroundColor=this.config.buttonBackgroundColorHover;break;case'ctrl':li.style.color='#333';li.style.backgroundColor='#f2f2f2';}}
if(i===0)
{li.style.color='#fff';li.style.backgroundColor='#336ECA';li.style.backgroundPosition="10px center";li.style.backgroundRepeat="no-repeat";li.style.backgroundImage="url('http://us.i1.yimg.com/us.yimg.com/i/ww/chkw.gif')";}
li.style.listStyleType='none';li.style.listStyleImage='none';li.style.textAlign='left';li.style.border='0px';li.innerHTML=liLABEL;yui.Event.addListener(li,'click',liOnclickAction,liACTION);li.className=liCLASS;superOptions.appendChild(li);switch(liCLASS)
{case'first':break;case'ctrl':yui.Event.addListener(li,'mouseover',lictrlhover,this);yui.Event.addListener(li,'mouseout',lictrlnormal,this);break;default:yui.Event.addListener(li,'mouseover',lihover,this);yui.Event.addListener(li,'mouseout',linormal,this);break;}}
var par=o.parentNode;par.insertBefore(superOptionsBox,o);superOptions.style.fontSize='11px';superOptions.style.fontFamily='verdana';superOptions.style.backgroundImage='none';superOptions.style.listStyleType='none';superOptions.style.listStyleImage='none';superOptions.style.backgroundColor=self.config.buttonBackgroundColorNormal;superOptions.style.padding=0;superOptions.style.margin=0;var oAP=ygPos.getPos(o);var oEL=superOptionsBox;var oELW=oEL.offsetWidth;var oELH=oEL.offsetHeight;var oW=o.offsetWidth;var oH=o.offsetHeight;oEL.style.opacity=0;if(oELW<oW)
{oEL.style.width=oW+'px';}
oEL.style.top=oAP[1]+oH+'px';oEL.style.left=oAP[0]+'px';this.fade=function(oEL,fadeDir){oEL.style.visibility='visible';var a=(fadeDir=='in')?[0.1,0.2,0.3,1]:[1,0.9,0.8,0.1];var oAnim=new ygAnim_Fade(oEL,0.25,a);oAnim.animate();}
this.checkMouse=function(e,oEL){var oELRegion=new yui.Region.getRegion(oEL);var mPosX=yui.Event.getPageX(e);var mPosY=yui.Event.getPageY(e);var oMOUSE=new yui.Point(mPosX,mPosY);if(oELRegion.contains(oMOUSE)){return;}
else{self.fade(oEL,'out');setTimeout(function(){oEL.style.visibility='hidden'},550);}}
yui.Event.addListener(o,'mouseover',function(){self.fade(oEL,'in')});yui.Event.addListener(o,'mouseout',function(e){self.checkMouse(e,oEL)});yui.Event.addListener(oEL,'mouseover',function(e){self.checkMouse(e,oEL)});yui.Event.addListener(oEL,'mouseout',function(e){self.checkMouse(e,oEL)});}}}
yui.Event.addListener(window,"load",this.init);}