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;iG[1]){F=F-(B+STTAFCONF.hH)}if((A-I[0]+210)>G[0]){A=A-(50)}var H=F+B;var E=A;return[H+"px",E+"px"]},windowXY:function(){var A=0;var B=0;if(typeof (window.innerWidth)=="number"){A=window.innerWidth;B=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){A=document.documentElement.clientWidth;B=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){A=document.body.clientWidth;B=document.body.clientHeight}}}return[A,B]},scrollXY:function(){var A=0;var B=0;if(typeof (window.pageYOffset)=="number"){A=window.pageXOffset;B=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollLeft;B=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollLeft;B=document.documentElement.scrollTop}}}return[A,B]},chgImage:function(A){A.style.cursor="pointer"},chgImageBack:function(A){A.style.cursor="pointer"},setAndFire:function(E,C,F){var B=document.getElementById("st-t-holder").innerHTML;var A=document.getElementById("st-l-holder").innerHTML;var D=document.getElementById("st-cus-holder").innerHTML;STTAFFUNC.cw(E,{id:STTAF.userid,ch:C,pr:F,link:A,title:B,fromSaF:true,custom:D})},postForm:function(D){var B=document.createElement("form");B.method="post";B.action=STTAF.widgetUrl+"/widget-n.jsp";B.target="stcontent";for(var A in D){var C=document.createElement("input");if(A=="ch"){C.setAttribute("name","channel");C.setAttribute("value",D[A])}else{if(A=="pr"){C.setAttribute("name","provider");C.setAttribute("value",D[A])}else{if(A=="custom"){C.setAttribute("name","custom");C.setAttribute("value",D[A])}else{if(A=="title"){C.setAttribute("name","title");C.setAttribute("value",D[A])}else{if(A=="link"){C.setAttribute("name","link");C.setAttribute("value",D[A])}else{C.setAttribute("name",A);C.setAttribute("value",D[A])}}}}}B.appendChild(C)}document.body.appendChild(B);B.submit();document.body.removeChild(B)},GetWidth:function(){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},GetHeight:function(){var B=0;var A=document.body.scrollTop;if(self.innerHeight){B=self.innerHeight+A*2}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientHeight+A*2}else{if(document.body){B=document.body.clientHeight+A*2}}}return B},getPageSizeWithScroll:function(){var A;var B;if(window.innerHeight&&window.scrollMaxY){A=window.innerWidth+window.scrollMaxX;B=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){A=document.body.scrollWidth;B=document.body.scrollHeight}else{A=document.body.offsetWidth+document.body.offsetLeft;B=document.body.offsetHeight+document.body.offsetTop}}arrayPageSizeWithScroll=new Array(A,B);return arrayPageSizeWithScroll},closeWidget:function(A){if(STTAFCONF.ie){STTAFFUNC.setBackMargins()}A.parentNode.parentNode.removeChild(A.parentNode);if(STTAF.isHideFlashSelected){STTAFFUNC.showFlashObjects()}if(STTAF.isOverlaySelected){document.getElementById("st-overlay").parentNode.removeChild(document.getElementById("st-overlay"))}if(STTAFFUNC&&STTAFFUNC.closeEventFunc&&typeof STTAFFUNC.closeEventFunc=="function"){STTAFFUNC.closeEventFunc()}},tempTip:"",getEventTarget:function(B){var A;if(B.target){A=B.target}else{if(B.srcElement){A=B.srcElement}else{if(B.target.nodeType==3){A=B.target.parentNode}}}return A},getEventXY:function(D){var B,E;if(D.pageX&&D.pageY){B=D.pageX;E=D.pageY}else{if(D.clientX&&D.clientY){var C=document.documentElement,A=document.body;B=D.clientX+(C&&C.scrollLeft||A&&A.scrollLeft||0)-(C.clientLeft||0);E=D.clientY+(C&&C.scrollTop||A&&A.scrollTop||0)-(C.clientTop||0)}}return[B,E]},showTip:function(D){if(!D){D=window.event}try{var B=STTAFFUNC.getEventTarget(D);var E=B.getAttribute("title");B.title="";STTAFFUNC.tempTip=E;var C;if(document.getElementById("st-taf-tooltip-div")){C=document.getElementById("st-taf-tooltip-div");C.style.display="block"}else{C=document.createElement("div");C.setAttribute("id","st-taf-tooltip-div");C.style.width="auto";C.style.position="absolute";C.style.border="1px solid #3b3b3b";C.style.color="#FFFFFF";C.style.padding="2px";C.style.backgroundColor="#737272";C.style.zIndex=999999;C.style.fontFamily="Tahoma";C.style.fontSize="11px";C.style.height="auto";document.body.insertBefore(C,document.body.firstChild)}C.innerHTML=E;C.style.top=(STTAFFUNC.getEventXY(D)[1]+20)+"px";C.style.left=(STTAFFUNC.getEventXY(D)[0])+"px"}catch(A){}},moveTip:function(C){if(!C){C=window.event}try{var B=document.getElementById("st-taf-tooltip-div");B.style.top=(STTAFFUNC.getEventXY(C)[1]+20)+"px";B.style.left=(STTAFFUNC.getEventXY(C)[0])+"px"}catch(A){}},hideTip:function(A){if(document.getElementById("st-taf-tooltip-div")){document.getElementById("st-taf-tooltip-div").style.display="none"}if(A){A.title=STTAFFUNC.tempTip}},applyTips:function(){var A=document.getElementById("hoverDivDiv").getElementsByTagName("div");try{for(var B=0;B191)&&(D<224)){c2=A.charCodeAt(C+1);B+=String.fromCharCode(((D&31)<<6)|(c2&63));C+=2}else{c2=A.charCodeAt(C+1);c3=A.charCodeAt(C+2);B+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));C+=3}}}return B.replace(/\+/gi," ")},cw:function(obj,o){if(STTAFCONF.ie){STTAFFUNC.setMargins()}STTAFFUNC.hideTip(obj);var e=eval(o);var cha=e.ch;var pr=e.pr;var c=e.id+"-cd";var link=e.link;if(e.fromSaF){if(link.toString().indexOf("http%3A%2F%2F")==0||link.toString().indexOf("https%3A%2F%2F")==0){}}else{if(link){if(link.toString().indexOf("http%3A%2F%2F")==0||link.toString().indexOf("https%3A%2F%2F")==0){try{e.title=STTAFFUNC.urlDecode(e.title)}catch(ex){}try{e.title=decodeURIComponent(e.title)}catch(ex){}}else{e.link=encodeURIComponent(e.link);e.title=encodeURIComponent(e.title)}}}var custStr="";if(e.custom&&e.custom!=null){if(e.fromSaF){custStr=custStr+e.custom}else{custStr=custStr+encodeURIComponent(STTAFJSON.stringify(e.custom))}e.custom=custStr}if(STTAF.isPopupMode){var popupH=(STTAFFUNC.GetHeight()/2)-(STTAF.frameHeight/2);var popupW=(STTAFFUNC.GetWidth()/2)-(STTAF.frameWidth/2);var custST="&custom=";var ref="&taf-ref=";var refVal=encodeURIComponent(window.location);var testJsp=STTAF.widgetUrl+"/widget-n.jsp?provider="+pr+"&channel="+cha+"&id="+e.id+"&link="+e.link+"&title="+e.title+custST+custStr+ref+refVal;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;cs.visibility="hidden";var dragH="26";if(STTAF.frameHeight>517){dragH="70"}var cRefArr=[];cRefArr.push("
 
");cRefArr.push("
");cRefArr.push("