var im=(function(){function i(E){var I="",G=document.getElementById("smimad").src;if(G.indexOf("?")>-1){var D=G.substr(G.indexOf("?")).toLowerCase();var F=D.split("&");for(var C=0;C<F.length;C++){if(F[C].indexOf(E.toLowerCase()+"=")>-1){var H=F[C].split("=");I=H[1];break}}}return unescape(I)}function v(C){return C.replace(/(^\s+|\s+$)/g,"")}var d=v("http://"+i("sk")),y=i("novideo"),f=i("muted")||0,g=i("flip")||1,b=i("taskbar")||1,c=(b==1)?30:0,r=1,l,q,a=(navigator.userAgent.indexOf("MSIE 6")!=-1&&typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"),B=(navigator.userAgent.indexOf("MSIE")!=-1&&document.compatMode=="BackCompat"),u=((window.location.href.indexOf("#")>13)?escape(window.location.href.substring(0,window.location.href.indexOf("#"))):escape(window.location.href));if(d.indexOf("xhamstercams")!=-1){r=2}function e(E,D){for(var C in D){if(D.hasOwnProperty(C)){E.style[C]=D[C]}}}function w(E,D){for(var C in D){if(D.hasOwnProperty(C)){E.setAttribute(C,D[C])
}}}function s(E,D,C){if(E.attachEvent){E["e"+D+C]=C;E[D+C]=function(){E["e"+D+C](window.event)};E.attachEvent("on"+D,E[D+C])}else{E.addEventListener(D,C,false)}}function n(H,G,C,E){var D=document.createElement("div");D.setAttribute("id",H);e(D,G);if(C===true){var F=document.createElement("iframe");w(F,E);D.appendChild(F)}document.body.appendChild(D)}function z(){if(parseInt(m.style.bottom,10)>=c){clearInterval(m.timer);m.style.bottom=c+"px";delete (m)}else{m.style.bottom=(parseInt(m.style.bottom,10)+5)+"px"}return}function x(D){var G=D+"=",C=document.cookie.split(";");for(var E=0;E<C.length;E++){var F=C[E];while(F.charAt(0)==" "){F=F.substring(1,F.length)}if(F.indexOf(G)===0){return F.substring(G.length,F.length)}}return null}function p(F,D){var C="";if(D){var G="ifrm";var E=new Date();E.setTime(E.getTime()+(D*60*60*1000));var C="; expires="+E.toGMTString()}document.cookie=F+"="+G+C+"; path=/"}function o(C){if(C===false){p("smad",24);if(navigator.userAgent.indexOf("MSIE")!=-1){if(document.getElementById("chatWindow")){document.getElementById("chatWindow").style.display="none";
document.body.removeChild(document.getElementById("chatWindow"))}if(document.getElementById("chatDisconnect")){document.getElementById("chatDisconnect").style.display="none";document.body.removeChild(document.getElementById("chatDisconnect"))}if(document.getElementById("closeChatArea")){document.getElementById("closeChatArea").style.display="none";document.body.removeChild(document.getElementById("closeChatArea"))}}else{if(document.getElementById("chatWindow")){document.body.removeChild(document.getElementById("chatWindow"))}if(document.getElementById("chatDisconnect")){document.body.removeChild(document.getElementById("chatDisconnect"))}if(document.getElementById("closeChatArea")){document.body.removeChild(document.getElementById("closeChatArea"))}}}else{p("smad2",24);if(navigator.userAgent.indexOf("MSIE")!=-1){if(document.getElementById("chatWindow")){document.getElementById("chatWindow").style.display="none";document.body.removeChild(document.getElementById("chatWindow"))}if(document.getElementById("chatDisconnect")){document.getElementById("chatDisconnect").style.display="none";
document.body.removeChild(document.getElementById("chatDisconnect"))}if(document.getElementById("closeChatArea")){document.getElementById("closeChatArea").style.display="none";document.body.removeChild(document.getElementById("closeChatArea"))}if(document.getElementById("taskbar")){document.getElementById("taskbar").style.display="none";document.body.removeChild(document.getElementById("taskbar"))}if(document.getElementById("closeArea")){document.getElementById("closeArea").style.display="none";document.body.removeChild(document.getElementById("closeArea"))}}else{if(document.getElementById("chatWindow")){document.body.removeChild(document.getElementById("chatWindow"))}if(document.getElementById("chatDisconnect")){document.body.removeChild(document.getElementById("chatDisconnect"))}if(document.getElementById("closeChatArea")){document.body.removeChild(document.getElementById("closeChatArea"))}if(document.getElementById("taskbar")){document.body.removeChild(document.getElementById("taskbar"))
}if(document.getElementById("closeArea")){document.body.removeChild(document.getElementById("closeArea"))}}}}function k(){if(window.location.hash.indexOf("#smimadcls")!=-1){if(window.location.hash.indexOf("#smimadcls2")!=-1){o(true);if(l){clearInterval(l)}}else{if(window.location.hash.indexOf("#smimadcls")!=-1){o(false)}}window.location.hash=""}return false}function j(){if(a&&!B){if(document.getElementById("taskbar")){document.getElementById("taskbar").style.top=document.documentElement.clientHeight+document.documentElement.scrollTop-document.getElementById("taskbar").offsetHeight}if(document.getElementById("chatWindow")){document.getElementById("chatWindow").style.top=document.documentElement.clientHeight+document.documentElement.scrollTop-document.getElementById("chatWindow").offsetHeight-c}}else{if(B){if(document.getElementById("taskbar")){document.getElementById("taskbar").style.top=document.body.clientHeight+document.body.scrollTop-document.getElementById("taskbar").offsetHeight}if(document.getElementById("chatWindow")){document.getElementById("chatWindow").style.top=document.body.clientHeight+document.body.scrollTop-document.getElementById("chatWindow").offsetHeight-c
}}}}if(x("smad2")==null&&Math.floor(Math.random()*r)==0){if(b==1){n("taskbar",{display:"block",width:"100%",height:"30px",margin:"0px",zIndex:99998,position:((a||B)?"absolute":"fixed"),bottom:"0px",left:"0px"},true,{id:"tbFrame",name:"tbFrame",src:d+"/exports/taskbar/?src="+u,width:"100%",height:"30px",scrolling:"no",frameBorder:"no",allowTransparency:true,marginHeight:0,marginWidth:0})}l=setInterval(k,1000);if(a||B){q=setInterval(j,33)}if(x("smad")==null){var h=(y==="1")?"/exports/taskbar/?novideo=1":"/exports/golive/iframe/?close=1&enter=0&hd=1&logo=0&flip="+g+"&volume=50&muted="+f+"&t=bio&src="+u;n("chatWindow",{overflow:"hidden",display:"block",background:"none",width:"315px",height:"300px",margin:"0px",zIndex:99996,position:((a||B)?"absolute":"fixed"),bottom:((a||B)?((b)?"30px":"0px"):"-315px"),right:((a||B)?"0px":"-4px")},true,{id:"cwFrame",name:"cwFrame",src:d+h,width:315,height:300,scrolling:"no",frameBorder:"no",allowTransparency:true,marginHeight:0,marginWidth:0});if(!(a||B)){n("closeChatArea",{display:"block",width:"30px",height:"25px",margin:"0px",zIndex:99999,position:"fixed",bottom:"300px",right:"0",cursor:"pointer"});
var t=document.createElement("a");t.setAttribute("id","closeChatPopup");e(t,{display:"block",width:"25px",height:"25px",lineHeight:"25px",margin:"0px",textIndent:"-9999px"});t.setAttribute("onclick","im.closePopup(false)");t.href="javascript:im.closePopup(false);";t.innerHTML="link";document.getElementById("closeChatArea").appendChild(t)}var m=document.getElementById("chatWindow");if(typeof m!="undefined"&&!(a||B)){m.timer=setInterval(z,33)}}if(b==1){n("closeArea",{display:"block",width:"20px",height:"30px",margin:"0px",zIndex:99999,position:"fixed",bottom:"0px",right:"0px",cursor:"pointer"});var A=document.createElement("a");A.setAttribute("id","closePopup");e(A,{display:"block",background:"url(http://cdn.nsimg.net/2.0/shared/images/200911b/spacer.gif)",width:"20px",height:"30px",lineHeight:"30px",margin:"0px",textIndent:"-9999px",zIndex:99999,position:"fixed",bottom:"0px",right:"0px",cursor:"pointer"});A.setAttribute("onclick","im.closePopup()");A.href="javascript:im.closePopup();";A.innerHTML="link";
document.getElementById("closeArea").appendChild(A)}return{closePopup:o}}})();