if(!this.STTAFJSON){STTAFJSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(typeof value.length==="number"&&!value.propertyIsEnumerable("length")){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof STTAFJSON.stringify!=="function"){STTAFJSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("STTAFJSON.stringify")}return str("",{"":value})}}if(typeof STTAFJSON.parse!=="function"){STTAFJSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("STTAFJSON.parse")}}})();var STTAFCONF={closeButtonUrl:null,headerBg:null,tafLogo:null,themeShade:null,tafSpriteImage:null,hig:null,hih:null,hib:null,hid:null,hH:null,B:"",AM:"&",Q:"?",T:true,F:false,N:null,UD:"undefined",CONTAINER_REF:"",alertOn:false,to:null,isEscaped:null,embedArray:null};function setT(){STTAFCONF.to=setTimeout(function(){checkAndHide(this)},500)}function showHoverMap(L,D,G,U,C){STTAFCONF.hH=5+(STTAF.isBlogSelected?20:0)+(STTAF.isEmailSelected?20:0)+(STTAF.isIMSelected?20:0)+(STTAF.isSNSSelected?20:0);if(STTAFCONF.hig==null){STTAFCONF.hig=new Image();STTAFCONF.hig.src="http://"+STTAF.imagesUrl+"/hover-images/SPIcons.png"}if(STTAFCONF.hih==null){STTAFCONF.hih=new Image();STTAFCONF.hih.src="http://"+STTAF.imagesUrl+"/hover-images/SPIconsHover.png"}if(STTAFCONF.hib==null){STTAFCONF.hib=new Image();STTAFCONF.hib.src="http://"+STTAF.imagesUrl+"/hover-images/chBG.gif"}if(STTAFCONF.hid==null){STTAFCONF.hid=new Image();STTAFCONF.hid.src="http://"+STTAF.imagesUrl+"/hover-images/SPIcons_grey.png"}if(STTAFCONF.to){clearTimeout(STTAFCONF.to)}L.hasFocus=true;if(STTAF.isButtonExpandable){var M="hoverDiv";var O=document.getElementById(M);var H=getHoverPos(L);STTAF.userid=D;G=G.toString();if(G.indexOf("http%3A%2F%2F")==0||G.indexOf("https%3A%2F%2F")==0){}else{G=encodeURIComponent(G)}U=U.toString();if(STTAFCONF.isEscaped&&STTAFCONF.isEscaped=="true"){}else{if(STTAFCONF.isEscaped&&STTAFCONF.isEscaped=="false"){U=escape(U)}else{}}if(document.getElementById("st-st-holder")){document.getElementById("st-t-holder").innerHTML=U;document.getElementById("st-l-holder").innerHTML=G;document.getElementById("st-cus-holder").innerHTML="";if(C&&C!=null){document.getElementById("st-cus-holder").innerHTML=escape(STTAFJSON.stringify(C))}}else{var S=document.createElement("div");S.setAttribute("id","st-st-holder");S.style.display="none";document.body.insertBefore(S,document.body.firstChild);var Q=document.createElement("div");Q.setAttribute("id","st-t-holder");Q.innerHTML=U;var K=document.createElement("div");K.setAttribute("id","st-l-holder");K.innerHTML=G;var E=document.createElement("div");E.setAttribute("id","st-cus-holder");E.innerHTML=escape(STTAFJSON.stringify(C));S.appendChild(Q);S.appendChild(K);S.appendChild(E)}if(O&&O.style.display!="block"){O.style.display="block";O.style.top=H[0];O.style.left=H[1];return false}if(O&&O.style.display=="block"){O.parentNode.removeChild(O)}var J=document.createElement("div");J.setAttribute("id",M);var P=J.style;P.margin="0px";P.padding="0px";P.border=0;var I=[];I.push("<div onmouseover='if (STTAFCONF.to) clearTimeout(STTAFCONF.to); this.hasFocus=true' onmouseout='setT(); this.hasFocus=false' id='hoverDivDiv' style='position: absolute; border:none; width:192px; margin:0; padding:0; background-color: #fff;'><div style='background:url(http://"+STTAF.imagesUrl+"/hover-images/chBG.gif) repeat-x top; border: 1px solid gray;'><table cellpadding='0' cellspacing='0' style='width:100%;height:100%;margin:0;padding:0;'>");if(STTAF.isEmailSelected){I.push("<tr>");I.push("<td style='padding:0px 4px;font-family:Arial;font-weight:bold;font-size:11px;text-align:left;height:22px;color:#000000;'>Email</td>");if(STTAF.isGmailEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Gmail\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"email","gmail", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-1px -1px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Gmail - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-1px -1px;margin:0;padding:0;'></div></td>")}if(STTAF.isWLiveMailEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'MSN / Hotmail / Live\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"email","msnmail", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-37px -1px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='MSN / Hotmail / Live - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-37px -1px;margin:0;padding:0;'></div></td>")}if(STTAF.isYMailEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Yahoo Mail\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"email","ymail", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-78px -1px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Yahoo Mail - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-78px -1px;margin:0;padding:0;'></div></td>")}if(STTAF.isTypedEmailEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Type in addresses\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"email","email", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-113px -1px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Type in addresses - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-113px -1px;margin:0;padding:0;'></div></td>")}I.push("</tr>")}if(STTAF.isIMSelected){I.push("<tr>");I.push("<td style='padding:0px 4px;font-family:Arial;font-weight:bold;font-size:11px;text-align:left;height:22px;color:#000000;'>IM</td>");if(STTAF.isGTalkEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Google Talk\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"im","gtalk", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-1px -28px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Google Talk - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-1px -28px;margin:0;padding:0;'></div></td>")}if(STTAF.isMSNMessengerEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'MSN / Live Messenger\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"im","msnim", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-37px -28px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='MSN / Live Messenger - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-37px -28px;margin:0;padding:0;'></div></td>")}if(STTAF.isYMessengerEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Yahoo Messenger\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"im","yim", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-78px -28px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Yahoo Messenger - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-78px -28px;margin:0;padding:0;'></div></td>")}if(STTAF.isAIMEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'AOL Instant Messenger\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"im","aim", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-113px -28px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='AOL Instant Messenger - Disabled'  style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-113px -28px;margin:0;padding:0;'></div></td>")}I.push("</tr>")}if(STTAF.isBlogSelected){I.push("<tr>");I.push("<td style='padding:0px 4px;font-family:Arial;font-weight:bold;font-size:11px;text-align:left;height:22px;color:#000000;'>Blog</td>");if(STTAF.isWordPressEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'WordPress\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"blog","wordpress", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-1px -60px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='WordPress - Disabled'  style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-1px -60px;margin:0;padding:0;'></div></td>")}if(STTAF.isBloggerEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Blogger\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"blog","blogger", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-37px -60px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Blogger - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-37px -60px;margin:0;padding:0;'></div></td>")}if(STTAF.isLiveJournalEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'LiveJournal\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"blog","livejournal", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-78px -60px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='LiveJournal - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-78px -60px;margin:0;padding:0;'></div></td>")}if(STTAF.isTypePadEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'TypePad\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"blog","typepad", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-113px -60px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='TypePad - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-113px -60px;margin:0;padding:0;'></div></td>")}I.push("</tr>")}if(STTAF.isSNSSelected){I.push("<tr>");I.push("<td style='padding:0px 4px;font-family:Arial;font-weight:bold;font-size:11px;text-align:left;height:22px;color:#000000;'>Social</td>");if(STTAF.isFaceBookEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Facebook' onclick='setAndFire(document.getElementById(\"st-t-holder\").innerHTML, document.getElementById(\"st-l-holder\").innerHTML ,this,\"social\",\"facebook\");'  onmouseover='chgImage(this);' onmouseout='chgImageBack(this);' style='width:24px;height:22px;background:url("+STTAFCONF.hig.src+") no-repeat;background-position:-1px -88px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Facebook - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hig.src+") no-repeat;background-position:-1px -88px;margin:0;padding:0;'></div></td>")}if(STTAF.isTwitterEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Twitter\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"social","twitter", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-37px -88px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Twitter - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-37px -88px;margin:0;padding:0;'></div></td>")}if(STTAF.isIdenticaEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'Identi.ca\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"social","identica", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-78px -88px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='Identi.ca - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-78px -88px;margin:0;padding:0;'></div></td>")}if(STTAF.isFriendfeedEnabled){I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push('<div title=\'FriendFeed\' onclick=\'setAndFire(document.getElementById("st-t-holder").innerHTML, document.getElementById("st-l-holder").innerHTML ,this,"social","friendfeed", document.getElementById("st-cus-holder").innerHTML);\' onmouseover=\'chgImage(this);\' onmouseout=\'chgImageBack(this);\' style=\'width:24px;height:22px;background:url('+STTAFCONF.hig.src+") no-repeat;background-position:-113px -88px;margin:0;padding:0;'></div></td>")}else{I.push("<td style='padding:0px 4px;margin:0;padding:0;height:22px;'>");I.push("<div title='FriendFeed - Disabled' style='width:24px;height:22px;background:url("+STTAFCONF.hid.src+") no-repeat;background-position:-113px -88px;margin:0;padding:0;'></div></td>")}I.push("</tr>")}I.push("</table>");I.push("</div></div>");var R=I.join("");J.innerHTML=R;P.zIndex=2000;P.display="block";P.position="absolute";P.top=H[0];P.left=H[1];if(document.getElementById("st-root-div-set")){document.getElementById("st-root-div-set").appendChild(J)}else{var A=document.createElement("div");A.setAttribute("id","st-root-div-set");A.appendChild(J);document.body.insertBefore(A,document.body.firstChild)}}else{return }}function getHoverPos(I){var G=I.offsetHeight;var C=I.offsetWidth;var D=I.offsetTop;var A=I.offsetLeft;var H=I.offsetParent;while(H){D+=H.offsetTop||0;A+=H.offsetLeft||0;H=H.offsetParent}var J=scrollXY();var E=windowXY();if((D-J[1]+STTAFCONF.hH)>E[1]){D=D-(G+STTAFCONF.hH)}if((A-J[0]+192)>E[0]){A=A-(38)}topVal=D+G;leftVal=A;return[topVal+"px",leftVal+"px"]}function windowXY(){var A=0;var C=0;if(typeof (window.innerWidth)=="number"){A=window.innerWidth;C=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){A=document.documentElement.clientWidth;C=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){A=document.body.clientWidth;C=document.body.clientHeight}}}return[A,C]}function scrollXY(){var A=0;var C=0;if(typeof (window.pageYOffset)=="number"){A=window.pageXOffset;C=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollLeft;C=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollLeft;C=document.documentElement.scrollTop}}}return[A,C]}function hideHoverMap(A){A.hasFocus=false;if(STTAF.isButtonExpandable){STTAFCONF.to=setTimeout(function(){checkAndHide(A)},500)}else{return }}function checkAndHide(E){var A=document.getElementById("divSSWidget");if(A&&STTAFCONF.alertOn){STTAFCONF.to=setTimeout(function(){checkAndHide(E)},500);return false}var D=document.getElementById("hoverDiv");var C=document.getElementById("hoverDivDiv");if(!E.hasFocus&&C&&!C.hasFocus){D.style.display="none";return false}else{STTAFCONF.to=setTimeout(function(){checkAndHide(E)},500);return false}}function chgImage(A){if(STTAF.ie){A.style.cursor="pointer"}else{A.style.backgroundImage="url("+STTAFCONF.hih.src+")";A.style.backgroundRepeat="no-repeat"}}function chgImageBack(A){if(STTAF.ie){A.style.cursor="pointer"}else{A.style.backgroundImage="url("+STTAFCONF.hig.src+")";A.style.backgroundRepeat="no-repeat"}}function setAndFire(D,A,H,E,I,G){var C=document.getElementById("sidebar-wrapper");if(C){C.style.overflow="visible"}cw(H,{id:STTAF.userid,ch:E,pr:I,link:A,title:D,fromSaF:true,custom:G})}function cw(obj,o){STTAFCONF.closeButtonUrl="http://content.socialtwist.com/ngn/themes/"+STTAF.cssTheme+"/images/close.png";var e=eval(o);var cha=e.ch;var pr=e.pr;var c=e.id+"-cd";if(e.link!=""){if(!clickOnButton){if(e.link.toString().indexOf("http%3A%2F%2F")==0||e.link.toString().indexOf("https%3A%2F%2F")==0){}else{e.link=encodeURIComponent(e.link)}}else{}}if(e.title!=""){if(!clickOnButton){}else{e.title=escape(e.title)}}var custStr="";if(e.custom&&e.custom!=null){if(!STTAF.ie){custStr="&custom="}if(e.fromSaF){custStr=custStr+e.custom}else{custStr=custStr+escape(STTAFJSON.stringify(e.custom))}e.custom=custStr}if(STTAF.isPopupMode){var popupH=(GetHeight()/2)-(STTAF.frameHeight/2);var popupW=(GetWidth()/2)-(STTAF.frameWidth/2);var custST=STTAF.ie?"&custom=":"";var testJsp=STTAF.widgetUrl+"/widget-n.jsp?provider="+pr+"&channel="+cha+"&id="+e.id+"&link="+e.link+"&title="+e.title+custST+custStr;var attributes="left="+popupW+",top="+popupH+",width=477,height="+STTAF.frameHeight+",toolbar=0,resizable=no";window.open(testJsp,"socialtwistPopup",attributes);return }var hd=document.getElementById("hoverDiv");var sswid=document.getElementById("divSSWidget");if(sswid){STTAFCONF.alertOn=true;if(confirm("An instance of the widget is already open. Discard changes and open a new widget?")){sswid.parentNode.removeChild(sswid);STTAFCONF.alertOn=false}else{hd.parentNode.removeChild(hd);STTAFCONF.alertOn=false;return false}}var clickOnButton=false;if(hd){clickOnButton=true}var cRef=document.createElement("div");var divIdName="divSSWidget";cRef.setAttribute("id",divIdName);var cs=cRef.style;var dragH="26";if(STTAF.frameHeight>517){dragH="70"}var cRefArr=[];cRefArr.push("<div id='drag' class='draggable' style='position: absolute; top: 3px; left: 3px; cursor: move; z-index:1000; width: 99%; height:"+dragH+"px'>&nbsp;</div>");cRefArr.push("<div id='cb' class='cbutton' align='right' style='position: absolute; top: 7px; right: 8px; cursor: pointer; z-index: 1000; border: 0;'><img style='border:0;' src='"+STTAFCONF.closeButtonUrl+"' onclick='closeWidget(this);'/></div>");if(STTAF.ie){cRefArr.push("<iframe id='stcontent' name='stcontent' src='"+STTAF.widgetUrl+"/widget-n.jsp' width='"+STTAF.frameWidth+"px' height='"+STTAF.frameHeight+"px' style='display: block; overflow-x: hidden; overflow-y: hidden;' marginwidth='0' marginheight='0' frameborder='0' scrolling='no' />")}else{cRefArr.push("<iframe id='stcontent' name='stcontent' src='"+STTAF.widgetUrl+"/widget-n.jsp?provider="+pr+"&channel="+cha+"&id="+e.id+"&link="+e.link+"&title="+e.title+custStr+"' width='"+STTAF.frameWidth+"px' height='"+STTAF.frameHeight+"px' style='display: block; overflow-x: hidden; overflow-y: hidden;' marginwidth='0' marginheight='0' frameborder='0' scrolling='no' />")}cRef.innerHTML=cRefArr.join("");cs.className="draggable";cs.backgroundColor="white";cs.position="absolute";cs.overflowX="hidden";cs.overflowY="hidden";cs.border="1px solid "+STTAF.frameBorderColor;cs.outline="none";cs.visibilty="visible";cs.display="block";cs.zIndex=9999;if(STTAF.isOverlaySelected){var overlay=document.createElement("div");overlay.setAttribute("id","st-overlay");var ocs=overlay.style;ocs.position="fixed";ocs.zIndex=100;ocs.top=0;ocs.left=0;ocs.height="100%";ocs.width="100%";ocs.backgroundColor="black";ocs.filter="alpha(opacity: 75)";ocs.MozOpacity=0.75;ocs.opacity=0.75;document.body.insertBefore(overlay,document.body.firstChild)}if(STTAF.isHideFlashSelected){var allEmbeds=document.getElementsByTagName("embed");STTAFCONF.embedArray=new Array();for(i=0;i<allEmbeds.length;i++){if(allEmbeds[i].style.visibility="visible"){allEmbeds[i].style.visibility="hidden";STTAFCONF.embedArray[i]=allEmbeds[i]}}}if(clickOnButton){if(document.getElementById("st-root-div-set-wid")){document.getElementById("st-root-div-set-wid").appendChild(cRef)}else{var cMain=document.createElement("div");cMain.setAttribute("id","st-root-div-set-wid");cMain.appendChild(cRef);document.body.insertBefore(cMain,document.body.firstChild)}document.getElementById("hoverDiv").parentNode.removeChild(document.getElementById("hoverDiv"))}else{if(!STTAF.isButtonExpandable){if(document.getElementById("st-root-div-set-wid")){document.getElementById("st-root-div-set-wid").appendChild(cRef)}else{var cMain=document.createElement("div");cMain.setAttribute("id","st-root-div-set-wid");cMain.appendChild(cRef);document.body.insertBefore(cMain,document.body.firstChild)}}else{if(document.getElementById("st-root-div-set-wid")){document.getElementById("st-root-div-set-wid").appendChild(cRef)}else{var cMain=document.createElement("div");cMain.setAttribute("id","st-root-div-set-wid");cMain.appendChild(cRef);document.body.insertBefore(cMain,document.body.firstChild)}document.getElementById("hoverDiv").parentNode.removeChild(document.getElementById("hoverDiv"))}}if(STTAF.ie){postForm(e)}var h=(GetHeight()/2)-(cRef.offsetHeight/2);var w=(GetWidth()/2)-(cRef.offsetWidth/2);cs.top=h+"px";cs.left=w+"px";STTAFDrag.init(cRef)}function postForm(E){var C=document.createElement("form");C.method="post";C.action=STTAF.widgetUrl+"/widget-n.jsp";C.target="stcontent";for(var A in E){var D=document.createElement("input");if(A=="ch"){D.setAttribute("name","channel");D.setAttribute("value",E[A])}else{if(A=="pr"){D.setAttribute("name","provider");D.setAttribute("value",E[A])}else{if(A=="custom"){D.setAttribute("name","custom");D.setAttribute("value",unescape(E[A]))}else{D.setAttribute("name",A);D.setAttribute("value",E[A])}}}C.appendChild(D)}document.body.appendChild(C);C.submit();document.body.removeChild(C)}function GetWidth(){var A=0;if(self.innerWidth){A=self.innerWidth}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth}else{if(document.body){A=document.body.clientWidth}}}return A}function GetHeight(){var C=0;var A=document.documentElement.scrollTop;if(!STTAF.ie){if(document.documentElement.scrollTop==0&&window.pageYOffset!=0){A=window.pageYOffset}}if(self.innerHeight){C=self.innerHeight+A*2}else{if(document.documentElement&&document.documentElement.clientHeight){C=document.documentElement.clientHeight+A*2}else{if(document.body){C=document.body.clientHeight+A*2}}}return C}function createWidget(D,H,C,G,E){var A=document.getElementById("sidebar-wrapper");if(A){A.style.overflow="visible"}cw(D,{id:H,link:C,title:G})}function IN(A){if(A==N||A==UD||A==B){return T}return F}function closeWidget(C){C.parentNode.parentNode.parentNode.removeChild(C.parentNode.parentNode);var A=document.getElementById("sidebar-wrapper");if(A){A.style.overflow="hidden"}if(STTAF.isHideFlashSelected){if(STTAFCONF.embedArray&&STTAFCONF.embedArray.length){for(i=0;i<STTAFCONF.embedArray.length;i++){STTAFCONF.embedArray[i].style.visibility="visible"}}}if(STTAF.isOverlaySelected){document.getElementById("st-overlay").parentNode.removeChild(document.getElementById("st-overlay"))}}function prevS(A){A=A.previousSibling;STTAFCONF.isEscaped="true";if(A.tagName=="A"||A.tagName=="a"){return escape(A.innerHTML)}else{A=A.previousSibling;return escape(A.innerHTML)}}var STTAFDrag={obj:null,init:function(E,J,H,C,G,A,K,I,L,D){E.onmousedown=STTAFDrag.start;E.hmode=K?false:true;E.vmode=I?false:true;E.root=J&&J!=null?J:E;if(E.hmode&&isNaN(parseInt(E.root.style.left))){E.root.style.left="0px"}if(E.vmode&&isNaN(parseInt(E.root.style.top))){E.root.style.top="0px"}if(!E.hmode&&isNaN(parseInt(E.root.style.right))){E.root.style.right="0px"}if(!E.vmode&&isNaN(parseInt(E.root.style.bottom))){E.root.style.bottom="0px"}E.minX=typeof H!="undefined"?H:null;E.minY=typeof G!="undefined"?G:null;E.maxX=typeof C!="undefined"?C:null;E.maxY=typeof A!="undefined"?A:null;E.xMapper=L?L:null;E.yMapper=D?D:null;E.root.onDragStart=new Function();E.root.onDragEnd=new Function();E.root.onDrag=new Function()},start:function(C){var D=STTAFDrag.obj=this;C=STTAFDrag.fixE(C);var E=parseInt(D.vmode?D.root.style.top:D.root.style.bottom);var A=parseInt(D.hmode?D.root.style.left:D.root.style.right);D.root.onDragStart(A,E);D.lastMouseX=C.clientX;D.lastMouseY=C.clientY;if(D.hmode){if(D.minX!=null){D.minMouseX=C.clientX-A+D.minX}if(D.maxX!=null){D.maxMouseX=D.minMouseX+D.maxX-D.minX}}else{if(D.minX!=null){D.maxMouseX=-D.minX+C.clientX+A}if(D.maxX!=null){D.minMouseX=-D.maxX+C.clientX+A}}if(D.vmode){if(D.minY!=null){D.minMouseY=C.clientY-E+D.minY}if(D.maxY!=null){D.maxMouseY=D.minMouseY+D.maxY-D.minY}}else{if(D.minY!=null){D.maxMouseY=-D.minY+C.clientY+E}if(D.maxY!=null){D.minMouseY=-D.maxY+C.clientY+E}}document.onmousemove=STTAFDrag.drag;document.onmouseup=STTAFDrag.end;return false},drag:function(G){G=STTAFDrag.fixE(G);var A=STTAFDrag.obj;var H=G.clientY;var I=G.clientX;var J=parseInt(A.vmode?A.root.style.top:A.root.style.bottom);var K=parseInt(A.hmode?A.root.style.left:A.root.style.right);var E,D;if(A.minX!=null){I=A.hmode?Math.max(I,A.minMouseX):Math.min(I,A.maxMouseX)}if(A.maxX!=null){I=A.hmode?Math.min(I,A.maxMouseX):Math.max(I,A.minMouseX)}if(A.minY!=null){H=A.vmode?Math.max(H,A.minMouseY):Math.min(H,A.maxMouseY)}if(A.maxY!=null){H=A.vmode?Math.min(H,A.maxMouseY):Math.max(H,A.minMouseY)}E=K+((I-A.lastMouseX)*(A.hmode?1:-1));D=J+((H-A.lastMouseY)*(A.vmode?1:-1));if(A.xMapper){E=A.xMapper(J)}else{if(A.yMapper){D=A.yMapper(K)}}var C=true;if(D<4||E<4){C=false}if(C){STTAFDrag.obj.root.style[A.hmode?"left":"right"]=E+"px";STTAFDrag.obj.root.style[A.vmode?"top":"bottom"]=D+"px"}STTAFDrag.obj.lastMouseX=I;STTAFDrag.obj.lastMouseY=H;STTAFDrag.obj.root.onDrag(E,D);return false},end:function(){document.onmousemove=null;document.onmouseup=null;STTAFDrag.obj.root.onDragEnd(parseInt(STTAFDrag.obj.root.style[STTAFDrag.obj.hmode?"left":"right"]),parseInt(STTAFDrag.obj.root.style[STTAFDrag.obj.vmode?"top":"bottom"]));STTAFDrag.obj=null},fixE:function(A){if(typeof A=="undefined"){A=window.event}if(typeof A.layerX=="undefined"){A.layerX=A.offsetX}if(typeof A.layerY=="undefined"){A.layerY=A.offsetY}return A}};

