var isToplayerEnable=true;var isTransitActive=false;var isShowInsideLeftTower=true;var isShowInsideRightTower=true;var isIE=false;var isFF=false;var isChrome=false;var isSafari=false;var isMozilla=false;var IP="127.0.0.1";var IsIsrael=false;var Country="";var CountryCode="";var contentWidth=775;var towerPositionLeft=0;var towerPositionTop=100;var arrOnload=new Array("ResizeWindow();");var arrOnresize=new Array("ResizeWindow();");var isDFPActive=false;var siteOffsetToRight=25;var bombaImpressionOffset=0;$j(document).ready(function(){if(typeof PrepareAdsElementsForResponsiveDesign=="function"){PrepareAdsElementsForResponsiveDesign()}});function css_browser_selector(l){var n=l.toLowerCase(),f=function(b){return n.indexOf(b)>-1},d="gecko",p="webkit",k="safari",j="opera",i="mobile",e=document.documentElement,a=[(!(/opera|webtv/i.test(n))&&/msie\s(\d)/.test(n))?("ie ie"+RegExp.$1):f("firefox/2")?d+" ff2":f("firefox/3.5")?d+" ff3 ff3_5":f("firefox/3.6")?d+" ff3 ff3_6":f("firefox/3")?d+" ff3":f("gecko/")?d:f("opera")?j+(/version\/(\d+)/.test(n)?" "+j+RegExp.$1:(/opera(\s|\/)(\d+)/.test(n)?" "+j+RegExp.$2:"")):f("konqueror")?"konqueror":f("blackberry")?i+" blackberry":f("android")?i+" android":f("chrome")?p+" chrome":f("iron")?p+" iron":f("applewebkit/")?p+" "+k+(/version\/(\d+)/.test(n)?" "+k+RegExp.$1:""):f("mozilla/")?d:"",f("j2me")?i+" j2me":f("iphone")?i+" iphone":f("ipod")?i+" ipod":f("ipad")?i+" ipad":f("mac")?"mac":f("darwin")?"mac":f("webtv")?"webtv":f("win")?"win"+(f("windows nt 6.0")?" vista":""):f("freebsd")?"freebsd":(f("x11")||f("linux"))?"linux":"","js"];c=a.join(" ");e.className+=" "+c;return c}css_browser_selector(navigator.userAgent);function GetClientIP(){var a=false;if(GetCookie("IPClientIP")){IP=getCookie("IPClientIP")}else{a=true}if(GetCookie("IPIsIsrael")){IsIsrael=(getCookie("IPIsIsrael").toString().toLowerCase()=="true")?true:false}else{a=true}if(a){document.write('<script src="https://svc.one.co.il/cat/Service/IPLocator.aspx?jsonp=SetIPData"></script>')}}function IPDetect(f,a,b,d){f+=(f.indexOf("?")>-1)?"&jsonp=":"?jsonp=";f+=b+"&";if(d){f+=encodeURIComponent(d)+"&"}var e=document.createElement("script");e.setAttribute("src",f);e.setAttribute("type","text/javascript");document.body.appendChild(e)}function SetIPData(a){IsIsrael=(a.IsIsrael.toLowerCase()=="true")?true:false;IP=a.IP;SetCookieDays("IPClientIP",IP,30);SetCookieDays("IPIsIsrael",IsIsrael,30)}function DeviceSelect(){if(navigator.userAgent.match(/Android/i)){return"android"}else{if(navigator.userAgent.match(/BlackBerry/i)){return"blackberry"}else{if(navigator.userAgent.match(/iPhone/i)){return"iphone"}else{if(navigator.userAgent.match(/iPad/i)){return"ipad"}else{if(navigator.userAgent.match(/iPod/i)){return"ipod"}else{if(navigator.userAgent.match(/IEMobile/i)){return"iemobile"}else{if(navigator.userAgent.match(/Macintosh/i)){return"macintosh"}else{return"PC"}}}}}}}}function IsIphone(){return DeviceSelect()=="iphone"?true:false}function IsIpad(){return DeviceSelect()=="ipad"?true:false}function IsAndroid(){return DeviceSelect()=="android"?true:false}function IsIphoneOrAndroidMobile(){return IsIphone()||IsAndroid()?true:false}var iPadSplash={_cookieName:"disableIpadSplash",show:function(){if(!iPadSplash._isShow()){return}iPadSplash._createMarkup(iPadSplash._getSettings(iPadSplash._getOrientation()=="Landscape"))},_isShow:function(){return navigator.userAgent.toLowerCase().indexOf("ipad")>-1&&!GetCookie(iPadSplash._cookieName)},_getOrientation:function(){return Math.abs(window.ipad)==90?"Landscape":"Portrait"},_createMarkup:function(a){$j("#divToplayerContainer").on("touchmove",function(b){b.preventDefault()}).css(a.mainDiv).append($j("<a />").css(a.buttonApp).attr("href","http://xads.zedo.com/ads2/c?a=1471206;g=0;c=455000000;i=0;x=3840;n=455;s=0;k=https://itunes.apple.com/us/app/one-for-ipad/id573480413?l=iw&ls=1&mt=8").click(function(){iPadSplash.close($j(this).parent(),true)})).append($j("<a />").css(a.buttonSite).click(function(){iPadSplash.close($j(this).parent())})).append($j("<input />").attr("type","checkbox").css(a.checkBox))},_getSettings:function(b){var a=$j(window).height(),d=$j(window).width();return{mainDiv:{zIndex:1000,position:"absolute",top:0,left:0,width:d,height:a,background:"url('https://images.one.co.il/images/MSites/2013/01/20/1300/"+(b?"Landscape":"Portrait")+".jpg') no-repeat",backgroundSize:d+"px "+a+"px"},buttonApp:{position:"absolute",width:b?420:d*420/768,height:b?60:a*75/929,top:b?a*280/673:a*290/929,left:b?d*300/1024:d*175/768},buttonSite:{position:"absolute",width:b?420:d*420/768,height:b?60:a*75/929,top:b?a*385/673:a*420/929,left:b?d*300/1024:d*175/768},checkBox:{position:"absolute",width:27,height:22,top:b?a*555/673:a*590/929,left:b?d*615/1024:d*490/768}}},close:function(a,b){if(b||a.find("input:checkbox").is(":checked")){SetCookieDays(iPadSplash._cookieName,true,9999)}setTimeout(function(){a.hide()},500)}};function RedirectionMobile(){if(IsIphoneOrAndroidMobile()){if(window.location.toString().indexOf("iphonewww=0")<0){if(GetCookie("iphonewww")!="1"){SetCookieDays("iphonewww","0",1);var a=getMobileURL();if(a.indexOf("nomobileredirect")<0){window.location=a}}}else{SetCookieDays("iphonewww","1",1)}}}function getMobileURL(e){var g="https://m.one.co.il/Mobile";var b="https://m.one.co.il/Mobile";var h=e||window.location.toString().toLowerCase();if(h.toLowerCase().indexOf("/article/")>-1){return h.replace(/http:\/\/.*[.]{0,1}one.co.il\/article\//ig,b+"/Article/")}if(h.toLowerCase().indexOf("/vod/")>-1){return h.replace(/http:\/\/.*[.]{0,1}one.co.il\/vod\//ig,b+"/VOD/")}if(h.toLowerCase().indexOf("/video/first.aspx")>-1){var f=h.replace(/\/cat\//ig,"/");f=f.replace(/first\.aspx/ig,"default.aspx");f=f.replace(/http:\/\/.*[.]{0,1}one.co.il\/video\//ig,b+"/video/");return f}if(h.toLowerCase().indexOf("/glitches/")>-1){return b+"/Glitches/Glitches.aspx"}if(h.toLowerCase().indexOf("/glitch/")>-1){var d=/\/glitch\/([\d]+)\//i;var a=d.exec(h);result=(a!=null)?a[1]:"";return b+"/Glitches/Glitch.aspx?id="+result}if(h.toLowerCase().indexOf("/glitch.aspx")>-1){var d=/id=([\d]+)/i;var a=d.exec(h);result=(a!=null)?a[1]:"";return b+"/Glitches/Glitch.aspx?id="+result}if(h.toLowerCase().indexOf("oppinion/")>-1){var d=/\/oppinion\/([\d]+)\/([\d]+)/i;var a=d.exec(h);result=(a!=null)?a[2]:"";return b+"/Articles/Article.aspx?id="+result}if(h.toLowerCase().indexOf("league/")>-1){return h.replace(/http:\/\/.*[.]{0,1}one.co.il\/league\//ig,b+"/League/")}g=getMobileSuffix(g,h,/.*League\/Current\/([\d]+),([\d]+),([\d]+),([\d]+)\/.+/ig,"Articles/articles.aspx??title=1&c=$1&t=$2");g=getMobileSuffix(g,h,/.*\/live\/.*/ig,"Live/Live.aspx");g=getMobileSuffix(g,h,/.*?oppinion.*?\/([\d]+)\.html/ig,"Articles/Article.aspx?id=$1");g=getMobileSuffix(g,h,/.*PersonalColumn\.aspx\?id=([\d]+).*/ig,"Articles/Article.aspx?id=$1");g=getMobileSuffix(g,h,/.*7,801,0,0.*/ig,"Articles/articles.aspx?t=801&title=1");g=getMobileSuffix(g,h,/.*\/winner\/.*/ig,"winner/winner.aspx");g=getMobileSuffix(g,h,/.*\/cat\/video\/[?first.aspx?c=]*([\d]+)/ig,"video/default.aspx?cat=$1");g=getMobileSuffix(g,h,/.*\/cat\/video[\/]*$/ig,"video/default.aspx");g=getMobileSuffix(g,h,/.*Team\/Current.*\/.*?,([\d]+),([\d]+).*/ig,"Leagues/Team.aspx?tid=$2");g=getMobileSuffix(g,h,/.*Player\/Current.*\/.*?([\d]+),([\d]+),([\d]+),([\d]+).*/ig,"general/player.aspx?pid=$4&tid=$3");if(h.indexOf("preview.aspx")>-1||h.indexOf("playbyplay.aspx")>-1||h.indexOf("bestof.aspx")>-1||h.indexOf("isf.one.co.il")>-1||h.indexOf("isa.one.co.il")>-1||h.indexOf("ibba.one.co.il")>-1||h.indexOf("olympic.one.co.il")>-1||h.indexOf("bestof.aspx")>-1||h.indexOf("mmm")>-1||h.indexOf("tools")>-1||h.indexOf("boffice")>-1||((h.toLowerCase().indexOf("sites.one.co.il")>-1||h.toLowerCase().indexOf("extra.one.co.il")>-1)&&(h.toLowerCase().indexOf("tableid=100")<0&&h.toLowerCase().indexOf("t=100")<0))){return h+"&nomobileredirect=1"}return g+(getQueryStringVariable("app")=="1"||getQueryStringVariable("amp;app")=="1"?"&app=1":"")}function getMobileSuffix(b,e,a,d){if(b=="https://m.one.co.il/Mobile/"){if(e.match(a)){b+=e.replace(a,d)}}return b}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(a){for(var e=0;e<a.length;e++){var d=a[e].string;var b=a[e].prop;this.versionSearchString=a[e].versionSearch||a[e].identity;if(d){if(d.indexOf(a[e].subString)!=-1){return a[e].identity}}else{if(b){return a[e].identity}}}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b==-1){return}return parseFloat(a.substring(b+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.userAgent,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.userAgent,subString:"iCab",identity:"iCab"},{string:navigator.userAgent,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();if(BrowserDetect.browser.toLowerCase().indexOf("firefox")>-1){isFF=true}else{if(BrowserDetect.browser.toLowerCase().indexOf("safari")>-1){isSafari=true}else{if(BrowserDetect.browser.toLowerCase().indexOf("mozilla")>-1){isMozilla=true}else{if(BrowserDetect.browser.toLowerCase().indexOf("chrome")>-1){isChrome=true}else{isIE=true}}}}(function(a){a.browserTest=function(b,h){var f="unknown",g="X",e=function(l,j){for(var k=0;k<j.length;k=k+1){l=l.replace(j[k][0],j[k][1])}return l},d=function(m,j,k,l){var n={name:e((j.exec(m)||[f,f])[1],k)};n[n.name]=true;n.version=(l.exec(m)||[g,g,g,g])[3];if(n.name.match(/safari/)&&n.version>400){n.version="2.0"}if(n.name==="presto"){n.version=(a.browser.version>9.27)?"futhark":"linear_b"}n.versionNumber=parseFloat(n.version,10)||0;n.versionX=(n.version!==g)?(n.version+"").substr(0,1):g;n.className=n.name+n.versionX;return n};b=(b.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?e(b,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,""],["Chrome Safari","Chrome"],["KHTML","Konqueror"],["Minefield","Firefox"],["Navigator","Netscape"]]):b).toLowerCase();a.browser=a.extend((!h)?a.browser:{},d(b,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));a.layout=d(b,/(gecko|konqueror|msie|opera|webkit)/,[["konqueror","khtml"],["msie","trident"],["opera","presto"]],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);a.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[f])[0].replace("sunos","solaris")};if(!h){a("html").addClass([a.os.name,a.browser.name,a.browser.className,a.layout.name,a.layout.className].join(" "))}};a.browserTest(navigator.userAgent)})(jQuery);switch($j.browser.name.toLowerCase()){case"safari":isSafari=true;break;case"msie":isIE=true;break;case"firefox":isFF=true;break;case"chrome":isChrome=true;break}$j(document).ready(WindowResizeEvents);$j(window).resize(WindowResizeEvents);function WindowResizeEvents(){for(var oi=0;oi<arrOnresize.length;oi++){eval(arrOnresize[oi])}}function getQueryStringVariable(e){var d=window.location.search.substring(1);var f=d.split("&");for(var a=0;a<f.length;a++){var b=f[a].split("=");if(b[0]==e){return b[1]}}return""}Math.UUIDCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0,d=a=="x"?b:(b&3|8);return d.toString(16)})};function GetWindowWidth(){return document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth}function GetWindowHeight(){return document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight}function OpenWindow(k,h,n,l,d,b,g,f,a,e){var o=GetWindowWidth()/2-n/2;var p=GetWindowHeight()/2-l/2;var i="";i+="menubar="+(b?1:0)+",";i+="status="+(f?1:0)+",";i+="toolbar="+(g?1:0)+",";i+="location="+(a?1:0)+",";i+="resizable="+(d?1:0)+",";i+="scrollbars="+(e?1:0)+",";i+="left="+o+",";i+="top="+p+",";i+="width="+n+",";i+="height="+l;if(h.toLowerCase().indexOf("http://")>-1){var j=h;h=k;k=j}var m=window.open(k,h,i);return m}function OpenModalWindow(j,a,m,k,e,d,h,g,b,f){var n=GetWindowWidth()/2-m/2;var o=GetWindowHeight()/2-k/2;var i="";i+="status="+(g?1:0)+",";i+="resizable="+(e?1:0)+",";i+="scroll="+(f?1:0)+",";i+="left="+n+",";i+="top="+o+",";i+="dialogWidth="+m+",";i+="dialogHeight="+k;var l=window.showModalDialog(j,a,i);return l}function debug(b){var a="divDebug";if($(a)==null){$j("body").append("<div id='"+a+"'></div>");$j("#"+a).css({border:"solid 1px red",width:"300",position:"absolute",background:"black",color:"green",height:"600",overflow:"auto",top:0,right:25,overflow:"auto"})}$j("#"+a).html(b+"<br />"+$j("#"+a).html())}function Random(a){return Math.floor(Math.random()*a+1)}var dateFormat=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,a=function(g,f){g=String(g);f=f||2;while(g.length<f){g="0"+g}return g};return function(i,t,w){var j=dateFormat;if(arguments.length==1&&(typeof i=="string"||i instanceof String)&&!/\d/.test(i)){t=i;i=undefined}i=i?new Date(i):new Date();if(isNaN(i)){throw new SyntaxError("invalid date")}t=String(j.masks[t]||t||j.masks["default"]);if(t.slice(0,4)=="UTC:"){t=t.slice(4);w=true}var f=w?"getUTC":"get",g=i[f+"Date"](),h=i[f+"Day"](),p=i[f+"Month"](),x=i[f+"FullYear"](),l=i[f+"Hours"](),r=i[f+"Minutes"](),v=i[f+"Seconds"](),n=i[f+"Milliseconds"](),u=w?0:i.getTimezoneOffset(),k={d:g,dd:a(g),ddd:j.i18n.dayNames[h],dddd:j.i18n.dayNames[h+7],m:p+1,mm:a(p+1),mmm:j.i18n.monthNames[p],mmmm:j.i18n.monthNames[p+12],yy:String(x).slice(2),yyyy:x,h:l%12||12,hh:a(l%12||12),H:l,HH:a(l),M:r,MM:a(r),s:v,ss:a(v),l:a(n,3),L:a(n>99?Math.round(n/10):n),t:l<12?"a":"p",tt:l<12?"am":"pm",T:l<12?"A":"P",TT:l<12?"AM":"PM",Z:w?"UTC":(String(i).match(b)||[""]).pop().replace(d,""),o:(u>0?"-":"+")+a(Math.floor(Math.abs(u)/60)*100+Math.abs(u)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10]};return t.replace(e,function(m){return m in k?k[m]:m.slice(1,m.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.Format=function(a,b){return dateFormat(this,a,b)};function GlitchSend(){var b=window.open("/Cat/Extra/RedMail.aspx","RedMail","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,height=600,width=453")}function InitMainPage(){$j(".glitchBox").bind("click",function(a){document.location="/Glitches/"});arrOnresize.push("ResizeWindow();");ResizeWindow();window.setTimeout("document.location=document.location",500000);CheckMainCSS()}function CheckMainCSS(){var d=($j("#valid").css("color"));if(d!="#00ff00"){var b=document.getElementsByTagName("head")[0];var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.href="/css/One6.css?v="+cache;a.media="screen";b.appendChild(a)}}function AddIE8Features(){if(BrowserDetect.browser.toLowerCase().indexOf("explorer")>-1&&BrowserDetect.version=="8"){var a=new Image();a.src="http://l4.zedo.com/log/p.gif?a=548705;c=455000000;x=3840;n=455;e=i;i=0;s=0;z="+Math.random();window.external.AddService("/Cat/Coop/IE/Accelerator.xml");window.external.AddSearchProvider("/Cat/Coop/IE/OpenSearch.xml")}else{alert("???? ?????? ??????? ???? ????? ??????? ???")}}function GetUserID(){var a="oneuserid";if(GetCookie(a)!=undefined){return GetCookie(a)}var b=Math.UUIDCompact();SetCookieDays(a,b,365);return b}function VoteInit(a){if(GetCookie("vote"+a)==1){VoteAlready(a)}else{$j(".btnVoting th").bind("click",function(){VoteMain(a)})}}function VoteViewResults(a){var b="/Cat/Vote/ViewVotePopUp.aspx?refid="+a;OpenWindow(b,"vote",770,620,false,false,false,false,false,false)}function VoteMain(b){var d=$j("input[name=voteAnswer]:checked").val();if(d==undefined){alert("??? ??? ????? ?? ??? ?????? ?????");return false}var e="http://"+serviceHost+"/Cat/General/Counter.aspx?type=7&id="+b+"&an="+d;var a=new Image();a.src=e;SetCookieDays("vote"+b,"1",7);VoteAlready(b);VoteViewResults(b)}function SetVote(e,i){var h=$j("input[name=Vote"+e+"]:checked").val();if(h==undefined){alert("??? ??? ????? ?? ??? ?????? ?????");return false}var j="https://"+serviceHost+"/Cat/General/Counter.aspx?type=7&id="+e+"&an="+h;var b=new Image();var f=(i)?10:1000;b.onerror=function(){window.setTimeout("UpdateVote("+e+","+i+")",f)};b.onload=function(){window.setTimeout("UpdateVote("+e+","+i+")",f)};b.src=j;var g="";var a="";var d="";switch(i){case 0:g=".oneMainVote .question";a="label[for='rbAnswer"+e+"_"+h+"']";d=".oneMainVote img";break;case 1:g=".ArticleVoteQuestion span";a="label[for='rbAnswer"+e+"_"+h+"']";d=".ArticleVoteQuestion img[id$='imgImage']";break;case 2:g="#vote"+e+" .BigVoteQuestion span";a="label[for='rbAnswer"+e+"_"+h+"']";d="#vote"+e+" .BigVoteRight img[id$='imgImage']";break;case 3:break}SetCookieDays("vote"+e,"1",7)}function UpdateVote(a,b){switch(b){case 0:window.location.href="/Cat/Vote/Votes.aspx";break;case 1:$j("#vote").load("/Cat/Vote/ShowVote.aspx?vId="+a+"&showType=1&bz="+Math.ceil(Math.random()*1000)+" #vote>div");ResizeVoteIframe();break;case 2:$j("#vote"+a).load("/Cat/Vote/ShowVote.aspx?vId="+a+"&showType=2&bz="+Math.ceil(Math.random()*1000)+" #vote>table");break;case 3:$j("#vote"+a).load("/General/ShowVote.aspx?vId="+a+"&bz="+Math.ceil(Math.random()*1000)+" #vote"+a+" >*");break}}function ResizeVoteIframe(a){if($j(".divArticleVote").length>0){$j(parent.document.getElementById("ifVote"+a)).height($j(".divArticleVote").height())}}function VoteAlready(a){$j("input[name=voteAnswer]").attr("disabled","1");$j(".btnVoting th").html("???????").bind("click",function(){VoteViewResults(a)});if(a==1328){$j(".btnVoting th").html("?????? ????").prepend("<div class='h20'></div>");$j(".btnVoting").css({"float":"left"})}}function Send2008Result(){var d="";var e=1;while($("ra"+e)!=null){var f=document.forms[0].namedItem("ra"+e);q=0;for(var b=0;b<f.length;b++){if(f[b].checked){q=f[b].value}}if(q==0){alert("??? ????? ????  "+e);return}e++}var h="https://svc.one.co.il/Cat/Vote/BestOf.aspx?mode=v&res="+d+"&z="+Math.random();alert(d);var g=new Image();g.src=h;SetCookieDays("best2008",1,30)}function SendBestOfResult(){var a="";var b=1;while($j("input[id^=ra"+b+"]").length>0){$j("input[id^=ra"+b+"_]").each(function(f,g){if(g.checked){a+=g.value+","}});a+=";";b++}var e="https://svcbb.one.co.il/Cat/Vote/BestOf.aspx?mode=v&res="+a+"&z="+Math.random();var d=new Image();d.src=e;SetCookieDays("bestof",1,30);document.location="/"}function GetMenuItem(e,b){var a="";var d="";a+="<div class='MenuItem'>";if(b.toLowerCase().indexOf("www.olympic.one.co.il")>-1){e+='&nbsp;&nbsp;<img border=0 src="https://images.one.co.il/images/msites/olympic/rings.jpg" style="align:baseline;padding-top:2px;" width=24 height=11>'}a+="<a "+d+" href='"+b+"'>"+e+"</a>";a+="<div></div>";a+="</div>";return a}function SetHeader(a){$("divLeagueHeader").hide();$("divInsideHeader").show()}function InitMainTickerSection(b){var d="";var a="";if(b=="news"){d="News";a="Live"}else{a="News";d="Live"}$j("#Title"+a).removeClass("TitlePress"+a);$j("#Title"+a).addClass("TitleRelease"+a);$j("#Container"+a).css("display","none");$j("#Title"+d).addClass("TitlePress"+d);$j("#Title"+d).removeClass("TitleRelease"+d);$j("#Container"+d).css("display","block")}function ResizeWindow(){return}function InitMailBox(a){var b=GetCookie(a);if(b!=null&&b!="undefined"){$("divMailMain").addClassName("divMailLoggedIn");$$("#divMailMain div")[0].update(b+"@ONE.co.il")}else{$("divMailMain").addClassName("divMailLoggedOut")}}function ShowFanCount(a){$j("#HotToday, #HotWeek, #HotMonth").hide();$j("#HotBtnToday, #HotBtnWeek, #HotBtnMonth").removeClass("LeftTableHeaderIn");$j("#Hot"+a).show();$j("#HotBtn"+a).addClass("LeftTableHeaderIn")}function DexPromoItem(e,f,h,a){var b="";b+='<table class="tblDexMsg">';b+="        <tr>";b+='            <td dir="rtl" align="right">';b+='                <a class="dexMsgMainTitle" href="#{url}">#{mainTitle}</a>';b+="            </td>";b+='            <th rowspan="2"><img src="#{image}" class="dexImage" /></th>';b+="        </tr>";b+="        <tr>";b+='            <td dir="rtl" align="right">';b+='                <a class="dexMsgSecTitle"  href="#{url}">';b+="                    #{secTitle}";b+="                 </a>";b+="            </td>";b+="        </tr>";b+="    </table>";var d=new Template(b);var g={mainTitle:e,secTitle:f,url:h,image:a};return d.evaluate(g)}function SetHpg(a){var b=new Image;b.src="http://l4.zedo.com/log/p.gif?a=147652;c=455000000;x=7168;n=455;e=i;i=0;s=0;z="+Math.random();a.style.behavior="url(#default#homepage)";a.setHomePage("https://www.one.co.il/")}function DisplayFlash(a,f,b,d,e){if(navigator.appName=="Netscape"&&!(parseFloat(navigator.appVersion)<5)&&d){}else{document.write("<OBJECT "+e+" classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'	 WIDTH="+f+" HEIGHT="+b+" VIEWASTEXT><EMBED			SRC='https://images.one.co.il/images/new/flash/"+a+"'WIDTH="+f+" HEIGHT="+b+" wmode='transparent'>	</EMBED>				<PARAM NAME=quality VALUE=high>				<PARAM NAME=wmode VALUE=transparent>				<PARAM NAME=movie VALUE='https://images.one.co.il/images/new/flash/"+a+"'>			</OBJECT>")}}function GetFlash(a,f,b,d,e){if(navigator.appName=="Netscape"&&!(parseFloat(navigator.appVersion)<5)&&d){}else{return("<OBJECT "+e+" classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'	 WIDTH="+f+" HEIGHT="+b+" VIEWASTEXT><EMBED			SRC='https://images.one.co.il/images/new/flash/"+a+"'WIDTH="+f+" HEIGHT="+b+"  wmode='transparent'>	</EMBED>				<PARAM NAME=quality VALUE=high>				<PARAM NAME=wmode VALUE=transparent>				<PARAM NAME=movie VALUE='https://images.one.co.il/images/new/flash/"+a+"'>			</OBJECT>")}}function GoSearchArticles(a){document.location="/search/MoreArticals.asp?data="+escape(document.all("strSearch").value)+"&ArticleSeason="+a}function DisplayTableButton(h,g,j,i,f,e,d){var a="";a+="<table style='direction:ltr;height:14px;cursor:pointer;' cellpadding=0 cellspacing=0 "+h+">";a+="	<tr>";a+="		<td width=7 background='https://images.one.co.il/images/new/"+g+"'></td>";a+="		<td "+d+" background='https://images.one.co.il/images/new/TableButtonMiddle.gif' align=center "+i+" class="+f+" dir=rtl>"+e+"</td>";a+="		<td width=7 background='https://images.one.co.il/images/new/"+j+"'></td>";a+="	</tr>";a+="</table>";return a}function SwitchSection(a,b){if($("dvNews")!=null){if(a){$("dvNews").style.visibility="hidden";$("dvNewsPress").style.visibility="visible";$("dvScoreBoard").style.visibility="visible";$("dvScoreBoardPress").style.visibility="hidden";$("SpanScoreboard").style.visibility="hidden";$("SpanNews").style.visibility="visible";$("SpanScoreboard").hide();$("SpanNews").show();if(!b){}}else{$("dvNews").style.visibility="visible";$("dvNewsPress").style.visibility="hidden";$("dvScoreBoard").style.visibility="hidden";$("dvScoreBoardPress").style.visibility="visible";$("SpanNews").style.visibility="hidden";$("SpanScoreboard").style.visibility="visible";$("SpanNews").hide();$("SpanScoreboard").show()}}}function WriteMenuItem(b,a){document.write("<tr>");document.write("	<td align=Right style='height:20px;'>");document.write("	<a class='rightMenu' dir=rtl href='"+a+"'>"+b+"</a>");document.write("	<span style='width:6px'>&nbsp;</span>");document.write("	<table width=100% cellpadding=1 cellspacing=0>");document.write("		<tr height=3 >");document.write("			<td width=10></td>");document.write("			<td class='menuSep' ></td>");document.write("			<td width=6></td>");document.write("		</tr>");document.write("	</table>");document.write("	</td>");document.write("</tr>")}function WriteButton(b,a){document.write("<div style='height:43px;padding-bottom:18px'>");document.write("<a href='"+a+"' target='_blank'>");document.write("<IMG style='border:0px;height:43px;width:129px;' src='https://ads.one.co.il/images/ads/strip/"+b+"' />");document.write("</a>");document.write("</div>")}function WriteAdButton(b,a){document.write("<div style='height:43px;padding-bottom:18px'>");document.write("<a href='"+a+"' target='_blank'>");document.write("<IMG style='border:0px;height:53px;width:157px;' src='"+b+"' />");document.write("</a>");document.write("</div>")}function RefreshPage(a){document.location=a}var arrIds=Array();var arrPics=Array();var arrCaptions=Array();var currentI=0;var currentC=0;var refInterval;function ReLocateTower(){return}function Exchange(){Effect.toggle("divImage","appear",{afterFinish:ChangePicture});Effect.toggle("divCaption","appear",{afterFinish:ChangeCaption})}function ChangePicture(){currentI=(currentI+1>arrIds.length-1)?0:currentI+1;$("plImage").src=videoImages+"images/Video/segment109x82/"+arrPics[currentI];Effect.toggle("divImage","appear")}function ChangeCaption(){currentC=(currentC+1>arrIds.length-1)?0:currentC+1;Element.update("divCaption",arrCaptions[currentC]);Effect.toggle("divCaption","appear")}function NextVideo(){clearInterval(refInterval);currentI=(currentI+1>arrIds.length-1)?0:currentI+1;currentC=(currentC+1>arrIds.length-1)?0:currentC+1;$("plImage").src=videoImages+"images/Video/segment109x82/"+arrPics[currentI];Element.update("divCaption",arrCaptions[currentC])}function PrevVideo(){clearInterval(refInterval);currentI=(currentI-1<0)?arrIds.length-1:currentI-1;currentC=(currentC-1<0)?arrIds.length-1:currentC-1;$("plImage").src=videoImages+"images/Video/segment109x82/"+arrPics[currentI];Element.update("divCaption",arrCaptions[currentC])}function GoOne(){clearInterval(refInterval);document.location="/Cat/Video/first.aspx?id="+arrIds[currentC]}function GetFromArchive(){var b=$F("season");var a=$F("arcCategoryId");var d=$F("arcTableId");var e=$F("arcTeamId");var f="/Cat/Leagues/first.aspx?categoryId="+a+"&tableId="+d+"&teamId="+e+"&season="+b+"&act=archive";document.location=f}function GetGamesByTeam(){var b=$F("schSeason");var a=$F("schCategoryId");var d=$F("schTableId");var e=$F("schTeamLB");var f=$("schTeamLB").options[$("schTeamLB").selectedIndex].text;var g="/Cat/Articles/ShowTable.aspx?categoryId="+a+"&tableId="+d+"&teamId="+e+"&season="+b+"&act=games&teamname="+f;document.location=g}function GetGamesByRound(){var d=$F("schSeason");var a=$F("schCategoryId");var e=$F("schTableId");var f=$F("schTeamLB");var b=$F("schRound");var g="/Cat/Articles/ShowTable.aspx?categoryId="+a+"&tableId="+e+"&roundid="+b+"&season="+d+"&act=games";document.location=g}function SearchType(i,k,h,f,d,e,j,g,b,a){this.MenuID=i;this.Title=k;this.Link=h;this.IsPartOfOne=f;this.Image=d;this.ImageHover=e;this.ShowAsText=j;this.IsUTF=g;this.AddQueryInfo=b;this.AddMenuSeperator=a}searchType=new Object();var ctlocation="";var openMenu;var oneSearchtype=1;searchType[0]=new SearchType(0,"?????","/Cat/General/SearchResults.aspx?oneSearchtype=0&domains=One.co.il&client=pub-5655519383585983&forid=1&channel=1293907565&ie=UTF-8&oe=UTF-8&q=",false,"https://images.one.co.il/images/new/Search/google_regular.jpg","https://images.one.co.il/images/new/Search/google_selected.jpg",false,true,"&cof="+urlEncode("GALT:#008000;GL:1;DIV:#336699;VLC:003366;AH:center;BGC:FFFFFF;LBGC:003366;ALC:0000CC;LC:0000CC;T:333333;GFNT:7777CC;GIMP:7777CC;FORID:10")+"&hl=iw",true);searchType[1]=new SearchType(1,"?????","/Cat/General/SearchResults.aspx?oneSearchtype=1&q=",true,"","",true,false,"",false);searchType[2]=new SearchType(2,"???????","/Cat/General/SearchResults.aspx?oneSearchtype=2&q=",true,"","",true,false,"",false);searchType[3]=new SearchType(3,"??????","/Cat/Images/Packages.aspx?txt=",true,"","",true,false,"",false);function InitMenu(d,b){$j("#searchOptionsContainer"+d).append('<div class="searchOptionsTop'+b+'">&#160;</div><div id="middleMenuC'+d+'" class="searchOptionsMiddle'+b+'"></div>');var a="";for(menuItem in searchType){a=(b=="Home")?"SelectSearchOption('"+searchType[menuItem].MenuID+"');":"SelectSearchOption('"+searchType[menuItem].MenuID+"');OneSearch('','"+d+"');";if(searchType[menuItem].ShowAsText==true){menuHtml='<div class="searchOption'+b+'" onmouseover="hoverSearchOption(this, 1);" onmouseout="hoverSearchOption(this, 0);" onclick="'+a+'">????? '+searchType[menuItem].Title+"</div>"}else{menuHtml='<div class="searchOption'+b+'" onmouseover="hoverSearchOption(this, 1);this.style.backgroundImage = \'url('+searchType[menuItem].ImageHover+")'; this.style.backgroundRepeat='no-repeat'; this.style.backgroundPosition='90% 50%'; this.style.height='17px';\" onmouseout=\"hoverSearchOption(this, 0); this.style.backgroundImage = 'url("+searchType[menuItem].Image+")'; this.style.backgroundRepeat='no-repeat'; this.style.backgroundPosition='90% 50%'; this.style.height='17px';\" onclick=\""+a+'" style="background-image: url('+searchType[menuItem].Image+'); background-repeat: no-repeat; background-position: 90% 50%; height: 17px;"></div>'}$j("#middleMenuC"+d).append(menuHtml);if(searchType[menuItem].AddMenuSeperator==true){$j("#middleMenuC"+d).append('<div class="divSeperator" style="border-top: solid 1px #314f98; margin: 12px 3px 12px 3px; width: 152px; ">&#160;</div>')}}$j("#searchOptionsContainer"+d).append('<div class="searchOptionsBottom'+b+'">&#160;</div>');ctlocation=b}function MarkCookieQueryInContainer(b,a){var d=getCookie(b);MarkQueryInContainer(d,a)}function MarkQueryInContainer(e,a){if((e!=null)&&(e!="")&&(e!="undefined")){var d=$(a).innerHTML;var b=new RegExp(e,"g");d=d.replace(b,"<span class=queryMarked>"+e+"</span>");$(a).innerHTML=d}}function RemoveQueryFromCookie(a){setCookie(a,"")}function SetQueryCookie(b){var a=(b=="")?($F("txtHomeSearch1")):(b);setCookie("OneSearchQuery",a)}function OneSearch(d,b){var e=$j.trim($j("#txtHomeSearch"+b).val());if(d!=""){d=stripHTML(d)}else{if(e!=""){var f=e;f=stripHTML(f);$j("#txtHomeSearch"+b).val(f)}}if((d=="")&&(searchType[oneSearchtype].IsPartOfOne==true)){if(e!=""){window.location.href=searchType[oneSearchtype].Link+urlEncode(e)+"&isSearchInOne="+searchType[oneSearchtype].IsPartOfOne}else{}}else{if((searchType[oneSearchtype].IsPartOfOne==true)&&(d!="")){if((searchType[oneSearchtype].IsPartOfOne!=true)){SelectSearchOption(1)}window.location.href=searchType[oneSearchtype].Link+urlEncode(d)+"&isSearchInOne="+searchType[oneSearchtype].IsPartOfOne}else{if(searchType[oneSearchtype].IsPartOfOne!=true){var g=encodeURI(e);var a=urlEncode(e);var h=searchType[oneSearchtype].Link;if(searchType[oneSearchtype].IsUTF==true){h+=g+"&oneq="+a}else{h+=a}h+="&isSearchInOne="+searchType[oneSearchtype].IsPartOfOne;if(searchType[oneSearchtype].AddQueryInfo!=""){h+=searchType[oneSearchtype].AddQueryInfo}window.location.href=h}}}}function OpenSearchOptions(a,b){if($j("#"+a).css("display")=="none"){$j("#"+a).show();b.className="HomePageSearchArrowOpen";openMenu=b}}function CloseSearchOptions(a,b){if($j("#"+a).css("display")=="block"){openMenu.className="HomePageSearchArrowClosed";$j("#"+a).hide()}}function SelectSearchOption(a){if(a!=null&&a!=undefined){oneSearchtype=a}for(searchBtnIndex=0;searchBtnIndex<4;searchBtnIndex++){$j("#imgSearchBtn"+searchBtnIndex).html("??? "+searchType[oneSearchtype].Title)}}function hoverSearchOption(a,b){if(b==1){a.className="searchOptionHover"+ctlocation}else{a.className="searchOption"+ctlocation}}var activeSearchBoxId=0;function searchDefaultBtn(){if(window.event&&window.event.keyCode==13){OneSearch("",activeSearchBoxId)}else{return true}}function searchRadio99DefaultBtn(){if(window.event&&window.event.keyCode==13){searchArticles(1)}else{return true}}function urlEncode(d){var b="";for(var a=0;a<d.length;a++){if(d.charAt(a)==" "){b+="+"}else{b+=d.charAt(a)}}return escape(b)}function urlDecode(d){var b="";for(var a=0;a<d.length;a++){if(d.charAt(a)=="+"){b+=" "}else{b+=d.charAt(a)}}return unescape(b)}function stripHTML(b){var a=new RegExp("</?[a-z][a-z0-9]*[^<>]*>","g");return b.replace(a,"")}function stripFullHTML(b){var a=new RegExp("<(style|script|head)(?:.|\\s)*?>(?:.|\\s)*?</\\1>|<!?/?[a-z][a-z0-9]*[^<>]*>","gi");return b.replace(a,"")}function inputMaxLength(a,b,e){a=(window.event)?window.event:a;var d=(a.srcElement)?a.srcElement:a.target;var f=(d.value)?d.value:d.innerHTML;if(e&&a.keyCode==13){if(window.event){a.returnValue=false}else{a.preventDefault()}}if((f.length>=b)&&a.keyCode>40&&a.keyCode<256){if(window.event){a.returnValue=false}else{a.preventDefault()}}}function inputNumeric(a){a=(window.event)?window.event:a;var b=(a.srcElement)?a.srcElement:a.target;var f=(b.value)?b.value:b.innerHTML;if(a.type.toLowerCase()=="keydown"){if(a.ctrlKey||(a.keyCode>=46&&a.keyCode<=57)||a.keyCode==8||a.keyCode==9||(a.keyCode>=35&&a.keyCode<=40)){return}else{if(window.event){a.returnValue=false}else{a.preventDefault()}}}else{var d=parseFloat(f);var e=String(d);if(d==NaN||e!=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"")){if(b.value){b.value=""}else{b.innerHTML=""}}}}function Vote(){var d="";var e=1;while($("ra"+e)!=null){var f=document.forms[0].namedItem("ra"+e);q=0;for(var b=0;b<f.length;b++){if(f[b].checked){q=f[b].value}}if(q==0){alert("please answer to question number "+e);return}d+=q+",";e++}var h="https://svc.one.co.il/Cat/Vote/Vote.aspx?mode=v&res="+d+"&z="+Math.random();var g=new Image();g.src=h;SetCookieDays("Vote",1,30);document.location="/"}function SetCurrentVideoAttr(a){if(a.IsHD){if(a.IsHQ){$j("#imgHD").attr("src","https://images.one.co.il/images/msites/onetv/hq1_off.gif")}else{$j("#imgHD").attr("src","https://images.one.co.il/images/msites/onetv/hd1_off.gif")}$j("#aHDLink").show()}else{$j("#aHDLink").hide()}$j("#divTitle").html(a.Ttl)}function SetVideos(a){jVideos=a;currentMainPageVideo=jVideos[0];SetPlaylist(0,null)};
var comments=null;var numOfComments=0;var numOfParents=0;var arrTeamIDsOfComments=[];var Enums={Comments:[{All:-1,HasChilds:-2,TopRated:-3,Team:0}]};var commentsShowMode=Enums.Comments[0].All;var maxPositiveRate=5;var maxNegativeRate=-5;var selectedTeam="";var showedComemntIndex=0;var arrCommentsHTML=[];function InitComments(){$j("#CommentsContainer, #CommentsLoader").ajaxError(function(b,c,d){$j(this).append("error")});var a="/Cat/Comments/ajaxAllComments.aspx";z=Math.random();$j.getJSON(a,{ctype:ctype,id:elementId,json:1,cache:0,v1:v1,v2:v2},function(b){comments=b;numOfComments=comments.length;$j.each(b,function(c,d){if(typeof(d.Id)!="undefined"){if(d.Childs.length>1){numOfComments+=(d.Childs.length-1)}numOfParents++}arrTeamIDsOfComments.push(parseInt(d.Team,10))});$j("#lbTeams").selectbox({id:"lbCustomized",className:"comTeamsFilter",onCurrentFocus:ChangeTeamImage,onShowList:ShowListTeamLogo,onHideList:HideListTeamLogo,onItemClick:ItemClick});$j(".comTeamsFilter-moreButton").html('<img id="imgLogoInListBox" src="https://images.one.co.il/images/teams/png_37x38/2.png" style="display:none;" />');$j("#CommentsLoader").hide();$j("#CommentsContainer").show();$j("#CommentsContainer").html("");$j("#CommentsTitler div#Stat").html("???? "+(numOfComments-1)+" ?????? ?-"+numOfParents+" ??????");$j(".comTeamsFilter-moreButton, .comTeamsFilter-currentItem").attr("title","??? ?????? ???<br />????? ?????");$j(".comTeamsFilter-moreButton, .comTeamsFilter-currentItem, .Links > *").tooltip({showURL:false,track:true,fade:250,opacity:0.5,left:0,top:-40});ShowEachComment()})}function ShowEachComment(){var a=comments[showedComemntIndex++];if(a.Childs){resultHtml=CommentTemplate(a);if(a.Childs.length>1){resultHtml+="<div id='papa"+a.Id+"' style='display:none'>";$j.each(a.Childs,function(b,c){if(typeof(c.Id)!="undefined"){resultHtml+=SubCommentTemplate(c)}});resultHtml+="</div>"}$j("#CommentsContainer").append(resultHtml);setTimeout("ShowEachComment()",1)}}function ShowComments(){var a=false;$j.each(comments,function(b,c){if(IsShowComment(c)){$j("#comArticle"+c.Id).show();a=true}else{$j("#comArticle"+c.Id).hide()}});if(!a){resultHtml="??? ?????? ?????? ?????? ?? ??? ????? "+selectedTeam;if(commentsShowMode<1){resultHtml="??? ?????? ??????"}$j("#commentsNotFound").html(resultHtml).show();$j("#CommentsContainer").hide()}else{$j("#commentsNotFound").hide();$j("#CommentsContainer").show()}}function FilterTeamsListbox(){var a=$j("OPTGROUP > *");var b="";$j.each(a,function(c,d){if(typeof(d.value)!=undefined&&jQuery.inArray(parseInt(d.value,10),arrTeamIDsOfComments)<0){b+="#lbComTeam"+d.value+","}});$j(b).remove()}var ChangeTeamImage=function(a){$j("#imgLogoInListBox").attr("src","https://images.one.co.il/images/teams/jpg_23x30/"+a+".jpg")};var ShowListTeamLogo=function(){$j("#imgLogoInListBox").css("display","block")};var HideListTeamLogo=function(){$j("#imgLogoInListBox").css("display","none");ChangeTeamImage(0)};var ItemClick=function(b,a){if(b==0){b=Enums.Comments[0].All}commentsShowMode=b;selectedTeam=a;ShowComments()};function VoteForComment(a,b){$j.get("/Cat/Comments/RateComment.aspx",{id:a,vote:b},function(){$j("#tdFeedBack"+a).html("?????? ?????");$j("#votep"+a).attr("href","javascript:AlreadyVoted();");$j("#voten"+a).attr("href","javascript:AlreadyVoted();");SetCookieDays("comrate"+a,1,30)})}function AlreadyVoted(){alert("??? ????? ???? ????? ??")}function ReplyToThis(b,c,a){var d="/Cat/Comments/AddComment.aspx?id="+b+"&pid="+c+"&ctype="+a;OpenWindow(d,"addComment",400,320,0,0,false,false,false,false)}function FilterComments(b,a){commentsShowMode=b;$j("#CommentsFilterBar a").css("font-weight","normal");$j("#"+a).css("font-weight","bold");ShowComments()}function GetCommentColor(b){var a="#000";var c=CommentRate(b);if(c>16){if(b.Positive>=b.Negative){a="#2B4A9A"}else{a="#A40000"}}return a}function CommentRate(a){var c=a.Positive+(-1*a.Negative);var b=a.Positive+a.Negative;return b}function IsShowComment(a){if(typeof(a.Id)=="undefined"){return false}switch(commentsShowMode){case Enums.Comments[0].All:return true;break;case Enums.Comments[0].TopRated:if(a.Childs.length>1){return true}break;case Enums.Comments[0].HasChilds:if(CommentRate(a)>maxPositiveRate||CommentRate(a)<maxNegativeRate){return true}break}if(commentsShowMode>0&&a.Team==commentsShowMode){return true}return false}function GetRateLink(a,b){link="javascript:VoteForComment("+a+", "+b+");";if(GetCookie("comrate"+a)=="1"){link="javascript:AlreadyVoted();"}return link}function ToggleComment(a,b){if(b){GetCommentBanner(a)}else{if(!isDFPActive){$j("#comAd"+a).html("")}}$j("#Short"+a).toggle();$j("#Full"+a).toggle();if($j("#papa"+a)){$j("#papa"+a).toggle()}}function OpenAllComments(){$j("#hrClAll,div[id^='Full'],div[id^='papa']").show();$j("#hrOpAll,div[id^='Short']").hide();for(i=0;i<comments.length;i+=10){GetCommentBanner(comments[i].Id)}}function CloseAllComments(){$j("#hrClAll,div[id^='Full'],div[id^='papa]'").hide();$j("#hrOpAll,div[id^='Short']").show();$j("div[id^='comAd']").html("")}function GetCommentBanner(b){var a='<iframe src="http://c2.zedo.com/jsc/c2/ff2.html?n=455;c=26;d=60;w=408;h=50" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=408 height=50></iframe>';if(zedoChannel!="undefined"&&zedoChannel.length>0){a='<iframe src="http://c2.zedo.com/jsc/c2/ff2.html?n=455;c='+zedoChannel+';d=60;w=408;h=50" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=408 height=50></iframe>'}if(!isDFPActive){$j("#comAd"+b).html(a)}else{if(typeof GetCommentBannerDFP==="function"){GetCommentBannerDFP(b)}}}function InitAddCommentPage(){var d=GetCookie("commentUsername");var a=GetCookie("commentEmail");var c=GetCookie("commentTeam");var b=GetCookie("commentFlag");if(c!=null){TeamChanged(c);if(b!=null){SetSignatureSelect(c,b);SignatureChanged(b)}else{SetSignatureSelect(c)}}else{$j("#trSignature").hide()}$j("#selTeam").selectbox({className:"addComSelectTeam"});$j("input").each(function(e,f){if(($j(f).attr("id").indexOf("txtName")>-1)&&(d!=null)){$j(f).val(d)}if(($j(f).attr("id").indexOf("txtEmail")>-1)&&(a!=null)){$j(f).val(a)}})}function AddCommentSubmit(){var a=365;$j("#"+hidIP).val(GetIP());$j("input").each(function(b,c){if($j(c).attr("id").indexOf("txtName")>-1){SetCookieDays("commentUsername",$j(c).val(),a)}if($j(c).attr("id").indexOf("txtEmail")>-1){SetCookieDays("commentEmail",$j(c).val(),a)}});SetCookieDays("commentTeam",$j("select")[0].value,a);SetCookieDays("commentFlag",$j("#selSignature").val(),a);if(glbEditorInstance!=null&&document.getElementById("divVirtualKeyboard").style.display=="block"){window.resizeTo(400,365)}}function TeamChanged(a){$j("select")[0].value=a;$j("#"+hidTeamID).val(a);$j("#imgTeam").attr("src","https://images.one.co.il/images/teams/png_80x85/"+a+".png");$j("#imgTeam").show();$j("#imgSignature").hide();SetSignatureSelect(a)}function SetSignatureSelect(c,b){$j("#selSignature").html("<option value='0'>??? ???</option>");var a=false;$j.each(signatures.Rows,function(d,e){if(e.Team_Id==c){a=true;$j("#selSignature").append("<option value='"+e.Id+"'>"+e.Description+"</option>")}});if(!a){$j("#trSignature").hide()}else{$j("#trSignature").show()}$j("#tdSignature").html($j("#selSignature")[0].outerHTML);$j("#selSignature").show();if(b!=null&&b>0){$j("#selSignature").val(b)}$j("#selSignature").unselectbox();$j("#selSignature").selectbox({className:"addComSelectTeam",listboxMaxSize:50})}function SignatureChanged(b){var a="";$j("input[id^='hidSignature']").val(b);$j.each(signatures.Rows,function(c,d){if(d.Id==b){a=d.FileName;return}});$j("#imgSignature").attr("src","https://images.one.co.il/images/comments/signatures/"+a);if(a.length>1){$j("#imgSignature").show()}else{$j("#imgSignature").hide()}}function AddChar(b){if(glbEditorInstance==null){return}if(b=="BKSP"){var a=glbEditorInstance.GetData();glbEditorInstance.SetData(a.substring(0,a.length-1))}else{if(b=="PSIK"){glbEditorInstance.InsertHtml("'")}else{glbEditorInstance.InsertHtml(b)}}}function CommentTemplate(d){var c=GetRateLink(d.Id,1);var b=GetRateLink(d.Id,-1);var a=d.Childs.length;if(a==2){a="(????? 1)"}else{if(a>2){a="("+(a-1)+" ??????)"}else{a=""}}var e="";e+='<div class="comArticle" id="comArticle'+d.Id+'">';e+='<div id="Short'+d.Id+'" class="Short">';e+="    <div>";e+='        <img src="https://images.one.co.il/images/teams/jpg_23x30/'+d.Team+'.jpg" alt="'+d.TeamName+'" />';e+="        "+a;e+="    </div>";e+="    <dl>";e+="        <dt>";e+='            <a href="javascript:ToggleComment('+d.Id+', true);">';e+='                <span style="color:'+GetCommentColor(d)+'">'+d.Number+". "+d.Subject+"&nbsp;"+d.IsContent+"</span><br />";e+="                "+d.Username+", ("+d.Date+", "+d.Time+")";e+="            </a>";e+="        </dt>";e+="    </dl>";e+="</div>";e+='<div id="Full'+d.Id+'" class="Full" style="display:none;">';e+='    <div class="heighter"></div>';e+='    <img src="https://images.one.co.il/images/teams/png_80x85/'+d.Team+'.png" alt="'+d.TeamName+'"/>';e+="    <dl>";e+="        <dt>";e+='            <a href="javascript:ToggleComment('+d.Id+', false);">';e+="                <span>"+d.Number+". "+d.SubjectFull+"</span><br />";e+="            </a>";e+="        </dt>";e+="        <dd><br />"+d.Text+'<br /><br /><span class="Author">'+d.Username+", ("+d.Date+", "+d.Time+")</span></dd>";e+="     </dl>";if(d.FileName!=null&&d.FileName!=""){e+="<br />";e+='<img id="imgSignature"'+d.Id+' style="height:18px;width:256px;float:right;margin:-10px 20px 10px 0px;" src=\'https://images.one.co.il/images/comments/signatures/'+d.FileName+"' />"}e+='     <div class="Helper">';e+='         <table class="Vote" cellpadding="0" cellspacing="0">';e+="            <tr>";e+='                <td width="25px" class="Negative">-'+d.Negative+"</td>";e+='                <td width="25px"><a id="voten'+d.Id+'" href="'+b+'"><img id="img2" src="https://images.one.co.il/images/comments/v3/comments/finger_negative.jpg" /></a></td>';e+='                <td width="6px"><img src="https://images.one.co.il/images/comments/v3/comments/finger_seperator.jpg" style="width:6px" /></td>';e+='                <td width="25px"><a id="votep'+d.Id+'" href="'+c+'"><img src="https://images.one.co.il/images/comments/v3/comments/finger_positive.jpg" /></a></td>';e+='                <td width="25px" class="Positive">+'+d.Positive+"</td>";e+='                <td width="84px"  id="tdFeedBack'+d.Id+'" class="RateFeedback"></td>';e+="            </tr>";e+="         </table>";e+='         <table class="Reply" cellpadding="0" cellspacing="0">';e+="            <tr>";e+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, 0, ctype);">???? ?????</a>&nbsp;</td>';e+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_add.jpg" /></td>';e+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, '+d.Id+', ctype);">??? ?????? ??</a>&nbsp;</td>';e+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_reply.jpg" /></td>';e+="            </tr>";e+="         </table>";e+="    </div>";e+='    <div id="comAd'+d.Id+'"></div>';e+="</div>";e+="</div>";return e}function SubCommentTemplate(c){var b=GetRateLink(c.Id,1);var a=GetRateLink(c.Id,-1);var d="";d+='<div class="comArticleSub">';d+='<div id="Short'+c.Id+'" class="Short">';d+="    <div>";d+='        <img src="https://images.one.co.il/images/teams/jpg_23x30/'+c.Team+'.jpg" alt="'+c.TeamName+'" />';d+="        <dl>";d+="            <dt>";d+='                <a href="javascript:ToggleComment('+c.Id+', true);">';d+="                    <span>&#187; "+c.Subject+"&nbsp;"+c.IsContent+"</span><br />";d+="                    "+c.Username+", ("+c.Date+", "+c.Time+")";d+="                </a>";d+="        </dl>";d+="    </div>";d+="</div>";d+='<div id="Full'+c.Id+'" class="Full" style="display:none;">';d+='    <div class="Comment">';d+='    <div class="heighter"></div>';d+='        <img src="https://images.one.co.il/images/teams/png_80x85/'+c.Team+'.png" alt="'+c.TeamName+'" />';d+="        <dl>";d+="            <dt>";d+='                <a href="javascript:ToggleComment('+c.Id+', false);">';d+="                    <span>&#187; "+c.SubjectFull+"</span><br />";d+="                </a>";d+="            <dd>";d+="                <br />"+c.Text;d+="                <br /><br />";d+='                <span class="Autor">'+c.Username+", ("+c.Date+", "+c.Time+")</span>";d+="        </dl>";if(c.FileName!=null&&c.FileName!=""){d+="<br />";d+='<img id="imgSignature"'+c.Id+' style="height:18px;width:256px;float:right;margin:-10px 13px 10px 0px;" src=\'https://images.one.co.il/images/comments/signatures/'+c.FileName+"' />"}d+='        <div class="Helper">';d+='         <table class="Vote" cellpadding="0" cellspacing="0">';d+="            <tr>";d+='                <td style="width:25px;" class="Negative">-'+c.Negative+"</td>";d+='                <td style="width:25px;"><a id="votep'+c.Id+'" href="'+a+'"><img id="img2" src="https://images.one.co.il/images/comments/v3/comments/finger_negative.jpg" /></a></td>';d+='                <td style="width:6px;"><img src="https://images.one.co.il/images/comments/v3/comments/finger_seperator.jpg" style="width:6px" /></td>';d+='                <td style="width:25px;"><a id="voten'+c.Id+'" href="'+b+'"><img src="https://images.one.co.il/images/comments/v3/comments/finger_positive.jpg" /></a></td>';d+='                <td style="width:25px;" class="Positive">+'+c.Positive+"</td>";d+='                <td width="84px" id="tdFeedBack'+c.Id+'" class="RateFeedback"></td>';d+="            </tr>";d+="         </table>";d+='         <table class="Reply" cellpadding="0" cellspacing="0">';d+="            <tr>";d+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, 0, ctype);">???? ?????</a>&nbsp;</td>';d+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_add.jpg" /></td>';d+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, '+c.Parent+', ctype);">??? ?????? ??</a>&nbsp;</td>';d+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_reply.jpg" /></td>';d+="            </tr>";d+="         </table>";d+="        </div>";d+="    </div>";d+='    <div class="Tab"><b></b></div>';d+='    <div id="comAd'+c.Id+'"></div>';d+="</div>";d+="</div>";return d}function CommentTemplate1(c){var b=GetRateLink(c.Id,1);var a=GetRateLink(c.Id,-1);var e="";e+='<div class="comArticle">';e+='<div id="Short#{Id}" class="Short">';e+='    <img src="https://images.one.co.il/images/teams/png_29x30/#{Team}.png" />';e+="    <dl>";e+="        <dt>";e+='            <a href="javascript:ToggleComment(#{Id}, true);">';e+='                <span style="color:'+GetCommentColor(c)+'">#{Number}. #{Subject}</span><br />';e+="                #{Username}, (#{Date}, #{Time})";e+="            </a>";e+="        </dt>";e+="    </dl>";e+="</div>";e+='<div id="Full#{Id}" class="Full" style="display:none;">';e+='    <img src="https://images.one.co.il/images/teams/png_80x85/#{Team}.png" />';e+="    <dl>";e+="        <dt>";e+='            <a href="javascript:ToggleComment(#{Id}, false);">';e+="                <span>#{Number}. #{Subject}</span><br />";e+="            </a>";e+="        </dt>";e+="        <dd>#{Text}<br />#{Username}, (#{Date}, #{Time})</dd>";e+="     </dl>";e+='     <div class="Helper">';e+='         <table class="Vote" cellpadding="0" cellspacing="0">';e+="            <tr>";e+='                <td width="25px" class="Negative">-#{Negative}</td>';e+='                <td width="25px"><a id="voten#{Id}" href="'+a+'"><img id="img2" src="https://images.one.co.il/images/comments/v3/comments/finger_negative.jpg" /></a></td>';e+='                <td width="6px"><img src="https://images.one.co.il/images/comments/v3/comments/finger_seperator.jpg" style="width:6px" /></td>';e+='                <td width="25px"><a id="votep#{Id}" href="'+b+'"><img src="https://images.one.co.il/images/comments/v3/comments/finger_positive.jpg" /></a></td>';e+='                <td width="25px" class="Positive">+#{Positive}</td>';e+='                <td width="84px"  id="tdFeedBack#{Id}" class="RateFeedback"></td>';e+="            </tr>";e+="         </table>";e+='         <table class="Reply" cellpadding="0" cellspacing="0">';e+="            <tr>";e+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, #{Id}, ctype);">??? ?????? ??</a>&nbsp;</td>';e+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_reply.jpg" /></td>';e+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, 0, ctype);">???? ?????</a>&nbsp;</td>';e+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_add.jpg" /></td>';e+="            </tr>";e+="         </table>";e+="    </div>";e+=GetCommentBanner();e+="</div>";e+="</div>";var f=new Template(e);var d=f.evaluate(c);return d}function SubCommentTemplate1(c){var b=GetRateLink(c.Id,1);var a=GetRateLink(c.Id,-1);var e="";e+='<div class="comArticleSub">';e+='<div id="Short#{Id}" class="Short">';e+="    <div>";e+='        <img src="https://images.one.co.il/images/teams/png_29x30/#{Team}.png" />';e+="        <dl>";e+="            <dt>";e+='                <a href="javascript:ToggleComment(#{Id}, true);">';e+="                    <span>&#187; #{Subject}</span><br />";e+="                    #{Username}, (#{Date}, #{Time})";e+="                </a>";e+="        </dl>";e+="    </div>";e+="</div>";e+='<div id="Full#{Id}" class="Full" style="display:none;">';e+='    <div class="Comment">';e+='        <img src="https://images.one.co.il/images/teams/png_80x85/#{Team}.png" />';e+="        <dl>";e+="            <dt>";e+='                <a href="javascript:ToggleComment(#{Id}, false);">';e+="                    <span>&#187; #{Subject}</span><br />";e+="                </a>";e+="            <dd>";e+="                <br />";e+="                #{Username}, (#{Date}, #{Time})";e+="        </dl>";e+='        <div class="Helper">';e+='         <table class="Vote" cellpadding="0" cellspacing="0">';e+="            <tr>";e+='                <td style="width:25px;" class="Negative">-#{Negative}</td>';e+='                <td style="width:25px;"><a id="votep#{Id}" href="'+a+'"><img id="img2" src="https://images.one.co.il/images/comments/v3/comments/finger_negative.jpg" /></a></td>';e+='                <td style="width:6px;"><img src="https://images.one.co.il/images/comments/v3/comments/finger_seperator.jpg" style="width:6px" /></td>';e+='                <td style="width:25px;"><a id="voten#{Id}" href="'+b+'"><img src="https://images.one.co.il/images/comments/v3/comments/finger_positive.jpg" /></a></td>';e+='                <td style="width:25px;" class="Positive">+#{Positive}</td>';e+='                <td width="84px" id="tdFeedBack#{Id}" class="RateFeedback"></td>';e+="            </tr>";e+="         </table>";e+='         <table class="Reply" cellpadding="0" cellspacing="0">';e+="            <tr>";e+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, #{Parent}, ctype);">??? ?????? ??</a>&nbsp;</td>';e+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_reply.jpg" /></td>';e+='                <td>&nbsp;<a href="#" onclick="javascript:ReplyToThis(elementId, 0, ctype);">???? ?????</a>&nbsp;</td>';e+='                <td width="18px"><img src="https://images.one.co.il/images/comments/v3/comments/btn_add.jpg" /></td>';e+="            </tr>";e+="         </table>";e+="        </div>";e+="    </div>";e+='    <div class="Tab"><b></b></div>';e+=GetCommentBanner();e+="</div>";e+="</div>";var f=new Template(e);var d=f.evaluate(c);return d};
function IsCookieEnabled(){document.cookie="Enabled=true";var a=document.cookie;if(a.indexOf("Enabled=true")!=-1){return true}else{return false}}function setCookie(a,b){SetCookie(a,b)}function SetCookie(b,c){var a=new Date();a.setTime(a.getTime()+(1000*60*60*24));a.setHours(2);a.setMinutes(0);document.cookie=b+"="+escape(c)+";expires="+a.toGMTString()}function SetCookieDays(b,c,a){SetCookieByTime(b,c,1000*60*60*24*a)}function SetCookieHours(b,c,a){SetCookieByTime(b,c,1000*60*60*a)}function SetCookieMinutes(b,c,a){SetCookieByTime(b,c,1000*60*minutes)}function setCookieByTime(b,c,a){SetCookieByTime(b,c,a)}function SetCookieByTime(name,value,expires){var expdate=new Date();expdate.setTime(eval(expdate.getTime()+(expires)));document.cookie=name+"="+escape(value)+";expires="+expdate.toGMTString()+";path=/"}function getCookie(a){return GetCookie(a)}function GetCookie(e){var d=document.cookie;var c=e+"=";var b=d.length;var a=0;while(a<b){var f=a+c.length;if(d.substring(a,f)==c){var g=d.indexOf(";",f);if(g==-1){g=b}return unescape(d.substring(f,g))}a=d.indexOf(" ",a)+1;if(a==0){break}}return null}function SetSessionCookie(b,c,a){document.cookie=b+"="+escape(c)+ +";domain="+a+";path=/"}function setCookieByTimeCrazy(name,value,expires,domain){var expdate=new Date();expdate.setTime(eval(expdate.getTime()+(expires)));document.cookie=name+"="+escape(value)+";expires="+expdate.toGMTString()+";domain="+domain+";path=/"}function setSessionCookie(a,b){document.cookie=a+"="+escape(b)}function setCookieByDomain(c,d,a){var b=new Date();b.setTime(b.getTime()+(1000*60*60*24));b.setHours(2);b.setMinutes(0);if(a!=""){document.cookie=c+"="+escape(d)+";expires="+b.toGMTString()+";domain="+a+";path=/"}else{document.cookie=c+"="+escape(d)+";expires="+b.toGMTString()}}function MarkSessionDay(a){if(a==undefined){a=""}SetSessionNumber(a);if(GetSessionNumber(a)<2){setCookie("sessionmark"+a,"1")}}function GetSessionNumber(a){if(a==undefined){a=""}var b=GetCookie("sessionnum"+a);if(b<1||b==null){b=SetSessionNumber(a)}return b}function SetSessionNumber(a){if(a==undefined){a=""}var b=GetCookie("sessionnum"+a);if(b<1||b==null){b=1}else{b++}setCookie("sessionnum"+a,b);return b};
var isScreamableForced=false;var phContent="divLiveContent";var isGamesExists=false;var timeOut=600;var arrCounters=new Array();var isFirstRun=true;var arrId=new Array(1,10,100,101,102,103,104,105,106,107,108,109,11,110,111,112,113,114,115,116,117,118,119,12,120,121,1212,1214,1217,1219,122,1222,123,124,1240,125,126,127,128,1283,129,13,130,131,132,133,134,1347,135,136,137,138,139,14,140,1400,1401,141,1412,142,1420,143,144,145,146,1469,147,148,149,15,150,151,152,156,158,16,167,17,171,174,175,18,183,184,185,186,187,188,19,190,191,196,2,20,201,202,207,209,21,210,211,212,213,214,215,216,217,218,219,22,220,221,222,223,224,225,226,227,228,2289,229,23,230,231,232,233,234,235,2351,236,237,239,24,241,2418,244,245,2472,25,250,253,26,27,2732,28,29,2914,3,30,3078,3079,31,3105,3106,3107,3108,3109,3110,3111,3112,3113,3114,3115,3116,3117,3131,3132,3133,3134,3135,3136,3138,3140,3142,3143,3144,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,3170,3171,3172,3173,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3199,32,3200,3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3219,3221,3222,3223,3224,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3241,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,3278,3279,3280,3281,3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,3296,3297,33,3300,3301,3302,3303,3305,3306,3307,3308,3309,3311,3312,3313,3314,3315,3316,3317,3320,3321,3322,3323,3324,3325,3326,3327,3328,3329,3330,3331,3342,3344,3345,3350,3351,3352,3353,3354,3355,3357,3358,3359,3360,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3390,3391,3392,3393,3394,3395,3396,3397,3398,3399,34,3400,3401,3402,3403,3404,3406,3408,3409,3410,3411,3412,3413,3417,3418,3419,3420,3421,3422,3426,3429,3431,3432,3433,3434,3435,3436,3437,3439,3440,3442,3444,3445,3446,3447,3448,3449,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3468,3469,3470,3471,3472,3473,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3487,3488,3489,3492,3493,35,3552,3553,3554,3555,3558,3563,3564,36,3619,3621,3622,3623,3624,3626,3628,3629,3630,3632,3633,3634,3635,3636,3638,3640,3641,3643,3644,3647,3648,3649,3650,3651,3652,3653,3654,3657,3658,3660,3661,3662,3663,3665,3667,3668,3669,3670,3671,3673,3674,3675,3677,3678,3679,3680,3681,3682,3880,3928,4,4059,4068,4088,4089,4106,4107,4112,4115,4117,4128,4542,4547,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4564,4565,4566,4567,4568,4569,4570,4600,4632,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,465,4650,4651,4652,4658,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,4683,4684,4685,4686,4688,4689,4690,4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4745,4747,4748,4751,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,4769,4770,4771,4772,4773,4774,4775,4776,4777,4778,4779,4782,4783,4784,4785,4786,4787,4788,4789,4792,4793,4795,4796,4797,4798,4800,4801,4805,4812,4817,4826,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,4880,4881,4882,4883,4884,4885,4887,4888,4889,4890,4892,4894,4895,4896,4897,49,4900,4901,4903,4904,4906,4908,4909,4911,4913,4914,4915,4916,4919,4920,4921,4922,4923,4924,4925,4926,4928,4929,4931,4932,4933,4934,4935,4936,4937,4938,4939,4940,4942,4943,4944,4945,4949,4950,4953,4955,4957,4961,4963,4964,4965,4969,4970,4971,4972,4973,4974,4979,4980,4983,4984,4985,4986,4987,4988,4989,4990,4991,4992,4993,4994,4995,4996,4997,5,50,5000,5009,5010,5011,5012,5013,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5036,5040,5041,5042,5043,5044,5045,5048,5050,5051,5053,5054,5055,5056,5057,5058,5059,5060,5061,5062,5063,5065,5066,5067,5068,5071,5072,5073,5074,5075,5076,5077,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,51,5101,5103,5104,5106,5107,5109,5110,5111,5112,5113,5114,5115,5116,5117,5118,5119,5120,5121,5149,5150,5151,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,5162,5163,5164,5165,5166,5171,5173,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,52,5200,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212,5214,5215,5216,5217,5218,5219,5220,5221,5222,5226,5227,5236,5237,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267,5268,5269,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299,53,5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,54,55,56,57,58,59,6,60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87,88,89,9,90,91,92,93,94,95,96,97,98,99);var isGroupContainsGames=false;var arrUserGames=GetUserGames();var img=new Image();img.src="https://images.one.co.il/images/live/round_fast.gif";var isSound=(getCookie("liveSounded"))?getCookie("liveSounded"):0;isSound=(isSound==0)?1:0;var clsGroup=(function(){var a=function(b){var c=this;this.Update=function(d){this.txtDate=d[0];this.txtTime=d[1];this.leagueTableLink=d[2];this.subjectWidth=d[3];this.txtSubject=d[4];this.tableId=d[5];this.gameData=d[6];this.GetUI()};this.GetUI=function(){var d="";d+='<div id="divLiveTable'+this.tableId+'" class="hslice">';d+='<a rel="entry-content" style="display:none;" href="https://www.one.co.il/cat/live/webslice.aspx?tableid='+this.tableId+'"><span class="ttl">2</span></a>';d+='<div class="entry-title" style="visibility: hidden; display: none;">'+this.txtSubject+"</div>";d+='<table width="450px" cellspacing="0" cellpadding="0" border="0">';d+='	<tr valign="top">';d+="		<td height=14>";d+='			<table height=17 width="450px" cellspacing="0" cellpadding="0" border="0">';d+="				<tr height=17>";d+='				<td bgcolor=#28499A width="2px"></td> ';d+='				<td  bgcolor=#28499A background="https://images.one.co.il/images/new/live/innerLine_livescore_blue.gif" width="2px"></td> ';d+='				<td align="LEFT"  bgcolor=#28499A background="https://images.one.co.il/images/new/live/innerLine_livescore_blue.gif" width="76px"  class=f11b style="color: #ffffff">';if(this.leagueTableLink.length>5){d+=this.leagueTableLink}d+="				</td>";d+='				<td bgcolor=#CC0000 background="https://images.one.co.il/images/new/live/innerLine_livescore_red.gif" width="370px" align="right">';d+="					<table width=100% cellpadding=0 cellspacing=0>";d+="						<tr>";d+="							<td align=left dir=rtl>";d+='								<a class=f11l style="color:white;font-weight:bold;margin-bottom:1px;display:block;"  href="javascript:PopSmsWindow()">LIVE ???????</a>';d+="							</td>";d+="							<td align=left dir=rtl>";d+='								<a class=f11l style="color:white;font-weight:bold;margin-bottom:1px;display:block;"  href="http://xads.zedo.com/ads2/c?a=695741;g=0;c=455000000;i=0;x=3840;n=455;s=0;k=http://waps.mobile1.co.il/Shataps/PopUp/iPhone.aspx" target="_blank">ONE ?- iPhone</a>';d+="							</td>";d+='							<td class=f12b style="color: #ffffff" align=right dir=rtl>';d+=this.txtSubject;d+="							</td>";d+="						</tr>";d+="					</table>";d+="				</td>";d+='				<td width="11" bgcolor=#CC0000><img src="https://images.one.co.il/images/new/live/inner_header_right_corner5.gif" style="width:11px;height:17px;display:block"></td>';d+="				</tr>";d+="			</table>";d+="		</td>";d+="	</tr>";d+='	<tr style="height:16;background:url(https://images.one.co.il/images/live/bar_under_red.jpg) no-repeat">';d+='		<td align=center style="font-family:arial;font-size:11px;font-weight:bold;color:#555555">';d+="			?????? ?-"+this.txtDate+" ??? "+this.txtTime+" | ";d+='			????? ??? ???? <span id="counter'+this.tableId+'">'+sec+"</span> ?????";d+="		</td>";d+="	</tr>";d+='	<tr height="10"><td></td></tr>';d+="</table>";d+="</div>";this.html=d};this.Update(b)};return a}());var clsGame=(function(){var a=function(c,d){var e=this;var b=c[14].split("-");this.homeId=$j.trim(b[0]);this.guestId=$j.trim(b[1]);this.liveId=$j.trim(b[2]);this.isBasketball=$j.trim(b[3])=="True"?1:0;this.group=d;this.isGoal=false;this.isFinished=false;this.Update=function(g,f){this.isGoal=false;this.isFinished=false;if(!g){this.oldHomeScore=this.homeScore;this.oldGuestScore=this.guestScore;this.oldTime=this.txtTime}this.refToGame=f[0];this.refToBet=f[1];this.refToArena=f[2];this.refToPlayByPlay=f[3];this.txtGuestTeam=f[4];this.txtGuestScore=f[5];this.txtHomeScore=f[6];this.guestScore=(f[5].toString().match(/[\d]+/))?f[5].toString():0;this.homeScore=(f[6].toString().match(/[\d]+/))?f[6].toString():0;this.txtHomeTeam=f[7];this.txtTime=f[8];this.txtLiveImage=f[9];this.lblPeriodExtension=f[10];this.lblPenalty=f[11];this.lblHalfTime=f[12];this.lblScorers=f[13];this.id=f[15];if(!g&&(this.homeScore!=this.oldHomeScore||this.guestScore!=this.oldGuestScore)){this.isGoal=true}if(!g&&this.txtTime!=this.oldTime&&this.txtTime=="????"){this.isFinished=true}this.css=(this.isGoal)?this.css="LiveS":"Live";this.css=(this.txtTime=="????")?"LiveF":this.css;this.GetUI();this.lblPeriodExtension=this.lblPeriodExtension.replace("live",this.css);this.lblHalfTime=this.lblHalfTime.replace("live",this.css)};this.GetUI=function(){var f="";var g=new Date();g.setDate(g.getDate()+1);g.setHours(2);g.setMinutes(0,0);var j=g.Format("isoDateTime")+"+02:00";f+='<a href="LiveGameTabled'+this.id+'"></a>';f+='<div id="divLive'+this.id+'" class="hslice">';f+='<div class="entry-title" style="visibility: hidden; display: none;">'+this.txtHomeTeam+" "+this.txtHomeScore+" - "+this.txtGuestScore+" "+this.txtGuestTeam+"</div>";f+='<a rel="entry-content" style="display:none;" href="https://www.one.co.il/Cat/Live/SingleGame.aspx?live_id='+this.id+'"><span class="ttl">2</span></a>';f+='<abbr class="endtime" title="'+j+'"></abbr>';f+='<table width=450 border=0 cellpadding=0 cellspacing=0 id="LiveGameTabled'+this.id+'">';f+='	<tr bgcolor="#F5F4F4">';if(this.refToPlayByPlay.length<3){f+="		<td width=70 class="+this.css+">";f+="			&nbsp;"+this.refToGame;f+="		</td>";f+="		<td width=0 align=center class="+this.css+">";f+=this.refToBet;f+="		</td>";f+="		<td width=30 align=center class="+this.css+">";f+=this.refToArena;f+="		</td>"}else{f+="		<td width=100>";f+=this.refToPlayByPlay;f+="		</td>"}f+="		<td align=right width=90 class="+this.css+' DIR="rtl">';f+=this.txtGuestTeam;f+="		</td>";f+='		<td style="display:none" align=center width="65px" class='+this.css+' id="tdGameScoresLoader'+this.liveId+'">';f+='		    <img src="'+img.src+'" width="18" height="18" align="absmiddle" />';f+="		</td>";f+='		<td style="display:block;width:65px;" align=center class='+this.css+' id="tdGameScores'+this.liveId+'">';f+="			&nbsp;";f+=this.txtGuestScore;f+="			 - ";f+=this.txtHomeScore;f+="			&nbsp;";f+="		</td>";f+="		<td align=left width=90 class="+this.css+" DIR=rtl>";f+=this.txtHomeTeam;f+="		</td>";f+="		<td width=105 height=18 align=right class="+this.css+" dir=rtl>";f+=this.txtLiveImage;f+=" ";f+=this.txtTime;f+=" ";f+=this.lblPeriodExtension;f+=" ";f+="		</td>";f+="		<td width=12 align=right class="+this.css+" dir=rtl valign=top>";if(!isSingleGame){var h=(arrUserGames.indexOf(this.liveId)>-1)?" checked ":"";f+='			<input type=checkbox id="chkGameId'+this.liveId+'"'+h+' style="font-size:5px;" onclick="javascript:SaveUserGames();">'}f+="		</td>";f+="	</tr>";f+=this.lblPenalty.replace("colspan=7","colspan=8");f+=this.lblHalfTime.replace("colspan=7","colspan=8");f+=this.lblScorers.replace("colspan=7","colspan=8");f+="	<tr height=10>";f+="		<td colspan=8></td>";f+="	</tr>";f+="</table>";f+="</div>";this.html=f};this.Update(true,c);this.GetUI()};return a}());var clsLive=(function(){var a=function(){var b=this;this.name="liveInit";this.goalHomeId=0;this.goalGuestId=0;this.goalHomeScore=0;this.goalGuestScore=0;this.isGoal=false;this.isFinished=false;this.arrGames=new Array();this.arrGamesId=new Array();this.arrGroups=new Array();this.arrCurrent=new Array();this.arrLiveId=new Array();this.arrPlay=new Array();this.UpdateGame=function(c){if(typeof this.currentGroup=="undefined"){this.currentGroup=1}var d=new clsGame(c,this.currentGroup);liveId=d.liveId;if(typeof this.arrGames[liveId]=="undefined"){this.arrGamesId.push(liveId);this.arrGames[liveId]=d}else{this.arrGames[liveId].Update(false,c)}};this.UpdateGroup=function(c){var e=new clsGroup(c);var d=this.FindGroup(e);if(!isGamesExists){this.arrGroups.push(e);d=this.FindGroup(e)}else{this.arrGroups[d].Update(c)}this.currentGroup=d};this.FindGroup=function(d){var c=-1;$j.each(this.arrGroups,function(e,f){if(escape(f.txtSubject)==escape(d.txtSubject)){c=e}});return c},this.IsGroupHaveUserGames=function(c){var d=false;$j.each(arrUserGames,function(f,e){if(objLive.arrGames[e].group==c){d=true}});return d},this.Show=function(){$j("#"+phContent).html("<br>");lbCategories=$j("#lbCategories");lbselectedIndex=lbCategories.prop("selectedIndex");if($j("#"+phContent)!=undefined){$j.each(this.arrGroups,function(d,e){if((lbselectedIndex==1&&objLive.IsGroupHaveUserGames(d))||(isSingleGame&&objLive.IsGroupHaveUserGames(d))||lbselectedIndex==0){$j("#"+phContent).append(e.html);$j.each(objLive.arrGamesId,function(f,g){var h=objLive.arrGames[g];if(h.group==d){if((lbselectedIndex==1&&arrUserGames.indexOf(h.liveId)>-1)||(isSingleGame&&arrUserGames.indexOf(h.liveId)>-1)||lbselectedIndex==0){$j("#"+phContent).append(h.html)}}});linkToAll=false;if(lbselectedIndex==0){linkToAll=false}if(lbselectedIndex==1){linkToAll=true}if(d==objLive.arrGroups.length-1){$j("#"+phContent).append(GetSelectButton(linkToAll))}else{$j("#"+phContent).append(GetSelectLink(linkToAll))}if(d==0){$j("#"+phContent).append(dfpStripContainer2)}if(d==6){$j("#"+phContent).append(dfpStripContainer3)}if(d==0){var c="";c+='<div class="h10"></div>';$j("#"+phContent).append(c)}}})}this.Scream();if(isSingleGame&&isIE&&jQuery.browser.version.indexOf("9")>=0&&window.external.msIsSiteMode()){this.IE9Notification()}};this.Scream=function(){var d=false;var c=false;objLive.arrPlay=[];var e=$j("lbCategories");if((e&&e.prop("selectedIndex")==1&&arrUserGames.length>0)||(e&&e.prop("selectedIndex")==0)||isScreamableForced){c=true}$j.each(objLive.arrGamesId,function(f,h){var j=objLive.arrGames[h];var g=false;if(e==undefined||((e.prop("selectedIndex")==0)||(e.prop("selectedIndex")==1&&arrUserGames.indexOf(j.liveId)>-1))){g=true}if(j.isGoal&&j.txtHomeScore!=""&&j.txtGuestScore!=""&&objLive.AudioExists(j)&&g){if(j.isBasketball){d=true}if(!d){objLive.arrPlay.push(mediaUrl+"goal.mp3")}d=true;objLive.arrPlay.push(mediaUrl+"team"+j.homeId+".mp3");objLive.AddAudioResult(j.homeScore);objLive.arrPlay.push(mediaUrl+"team"+j.guestId+".mp3");objLive.AddAudioResult(j.guestScore);if(!j.isBasketball){objLive.arrPlay.push(mediaUrl+"minute.mp3");objLive.AddAudioMinute(j.txtTime)}}});if(objLive.arrPlay.length>0){if(c&&isSound){$j("#livePlayer").attr("url",objLive.arrPlay.shift());setTimeout("objLive._Play()",timeOut)}}};this.IE9Notification=function(){if(isSingleGameWindowFocused){return}var d=false;var c=getQueryStringVariable("live_id");objLive.arrPlay=[];$j.each(objLive.arrGamesId,function(e,f){if(f==c){var g=objLive.arrGames[f];var h=g.txtHomeTeam+" "+g.txtGuestScore+" - "+g.txtGuestScore+" "+g.txtGuestTeam+" ("+g.txtTime+")";if(g.isGoal&&g.txtHomeScore!=""&&g.txtGuestScore!=""&&!g.isBasketball){window.external.msSiteModeSetIconOverlay("https://images.one.co.il/Images/Msites/IE9/ball.ico",h)}if(g.isFinished){window.external.msSiteModeSetIconOverlay("https://images.one.co.il/Images/Msites/IE9/WHISTLE.ICO",h)}}})};this.AddAudioMinute=function(f){var d=/[\d]+/;var c=d.exec(f);var e=(c!=null)?c[0]:"";if(e!=""){objLive.AddAudioResult(e)}};this.AddAudioResult=function(d){if(d<101){objLive.arrPlay.push(mediaUrl+"g"+d+".mp3");return}if(d<120&&d>101){objLive.arrPlay.push(mediaUrl+"g100.mp3");objLive.arrPlay.push(mediaUrl+"g"+(d-100)+"and.mp3");return}if(d>119){objLive.arrPlay.push(mediaUrl+"g100.mp3");d=d-100;if(d%10==0){objLive.arrPlay.push(mediaUrl+"g"+d+".mp3");return}var c=d-(d%10);var e=d%10;objLive.arrPlay.push(mediaUrl+"g"+c+".mp3");objLive.arrPlay.push(mediaUrl+"g"+e+"and.mp3")}};this.AudioExists=function(f){var d=parseInt(f.homeId,10);var c=parseInt(f.guestId,10);var e=(arrId.indexOf(d)>-1&&arrId.indexOf(c)>-1)?true:false;return e};this._SetUrl=function(){if(objLive.arrPlay.length>0){$("livePlayer").PlayCount=1;$("livePlayer").url=objLive.arrPlay.shift();setTimeout("objLive._Play()",timeOut/2)}};this._Play=function(){$("livePlayer").controls.play()};this.Debug=function(c){return};this.CountGamesByGroup=function(e){var d=0;for(var f=0,g=this.arrGames.length;f<g;f++){if(this.arrGames[f]){var h=this.arrGames[f];if(h.group==e){d++}}}return d};this.End=function(){}};return a}());var objLive=new clsLive;function GetLive(){GettingResults();if(isIE){$j("#livePlayer").controls.stop()}objLive.arrPlay=[];if($j("#lbCategories")!=undefined&&$j("#lbCategories").prop("selectedIndex")>1){document.location=$j("#lbCategories").val();return}clearInterval(countHandler);$j("#tdUpdateTime,#tdUpdateLoader").toggle();AjaxGetLive();countHandler=setTimeout("GetLive()",sec*1000);setTimeout(function(){googletag.pubads().refresh([slot_Strip_3,slot_Strip_2,slot_Strip_1])},2000)}function AjaxGetLive(){var a="/Cat/Live/AjaxLive.aspx";$j.get(a,function(b){ParseResult(b)})}var ParseResult=function(f){var e=(f.responseText)?f.responseText:f;var a=new Array();a=e.split(/\|##TIME##\|/);if(!isSingleGame){GetAd()}$j("#tdUpdateTime").html("?????? ?- "+a[0]);$j("#"+phContent).html("");arrLiveGroups=GetGroups(a[1]);$j.each(arrLiveGroups,function(h,g){ParseGroup(g)});isGamesExists=true;objLive.Show();var d=/#(LiveGameTabled[\d]+)/;var c=d.exec(document.location.href.toString());var b=(c!=null)?c[0]:"";if(b.toString().length>0){document.location.hash=b}countdown=sec};function GetGroups(b){var a=new Array();a=b.split(/\|##GROUP##\|/);return a}function ParseGroup(b){b=b.replace(/##\|\|##/g,"##| |##");var a=new Array();a=b.split(/\|##GR##\|/);var c=a[6];if(a.length>1&&c!=" "){objLive.UpdateGroup(a);GetGames(c)}}function GetGames(b){var a=new Array();a=b.split(/\|##GAME##\|/);$j.each(a,function(d,c){ParseGame(c)})}function ParseGame(b){b=b.replace(/##\|\|##/g,"##| |##");var a=new Array();a=b.split(/\|##GE##\|/);if(a.length<2||a.length!=17){return}a[5]=(a[5].match(/[\d]+/))?a[5]:"";a[6]=(a[6].match(/[\d]+/))?a[6]:"";objLive.UpdateGame(a)}function GetLiveByCategory(b){if(isIE&&$j("#livePlayer")){$j("#livePlayer").controls.stop()}objLive.arrPlay=[];b=b||false;var c=document.location.href.toLowerCase();var a=$j("#lbCategories");if(c.indexOf(".aspx")>-1||a.prop("selectedIndex")>1){document.location.href=a.val();return}if(b){a.prop("selectedIndex",1)}if(a.prop("selectedIndex")==0){GetLive(0);return}a.prop("selectedIndex",1);SaveUserGames();GetLive(0)}function SaveUserGames(){var a="";arrUserGames=[];$j(":checkbox:checked").each(function(){var c=/[\d]+/;var b=c.exec($j(this).attr("id"));if(b!=null){a+=b[0]+",";arrUserGames.push(b[0])}});setCookie("liveUserGames",a)}function SelectGames(){var b=$j("#Form1");var a=b.getInputs("checkbox");$j.each(arrUserGames,function(d,c){if($j("#chkGameId"+c)){$j("#chkGameId"+c).attr("checked","checked")}})}function GetAd(){return}function UpdateCounters(){countdown--;if(countdown<0){countdown=sec}$j("span[id*='counter']").html(countdown);setTimeout("UpdateCounters()",1000);return}function GetUserGames(){if(getCookie("liveUserGames")){var a=getCookie("liveUserGames");return a.split(",")}return new Array()}function OnPlayStateChange(b){try{switch(b){case 1:break;case 8:$("livePlayer").controls.stop();setTimeout("objLive._SetUrl()",timeOut/2);break;case 10:break}}catch(a){}}function ToggleSound(){isSound=(isSound==0)?1:0;if(isSound==1){$j("#imgSpeaker").attr("src","https://images.one.co.il/images/live/speaker_on.jpg")}else{$j("#imgSpeaker").attr("src","https://images.one.co.il/images/live/speaker_off.jpg")}setCookieByTime("liveSounded",isSound,1000*60*60*24*30)}function GettingResults(){var a="<img src='"+img.src+"' width='18' height='18' align='absmiddle' />";$j.each(objLive.arrGamesId,function(b,c){$j("#tdGameScores"+c+",#tdGameScores"+c).toggle()})}function GetSelectLink(b){if(isSingleGame){return""}var a="";a="<table width='450px' align='center' cellapdding='0' cellspacing='0' border='0'>";a+="	<tr>";a+="		<td width='100%' dir='rtl' align='right'>";if(b){a+="			<span style='font-family:arial;text-decoration:underline;font-size:11px;color:#666666;cursor:hand' onclick='javascript:$(\"lbCategories\").selectedIndex = 0 ;GetLiveByCategory()'>";a+="				+ ??? ?? ?? ???????";a+="			</span>"}else{a+="			<span style='font-family:arial;text-decoration:underline;font-size:11px;color:#666666;cursor:hand' onclick='javascript:GetLiveByCategory(true)'>";a+="				+ ??? ?????? ??????";a+="			</span>"}a+="		</td>";a+="	</tr>";a+="	<tr height='10px'><td></td></tr>";a+="</table>";return a}function GetSelectButton(b){if(isSingleGame){return""}var a="";a="<table width='450px' align='center' cellapdding='0' cellspacing='0' border='0'>";a+="	<tr height=21>";a+="		<td></td>";a+="		<td width='98' dir='rtl' align='center' style='background:url(https://images.one.co.il/images/live/button_clear.gif) no-repeat;'>";if(b){a+="			<span style='font-family:arial;font-size:10px;color:#666666;cursor:hand;' onclick='javascript:$(\"lbCategories\").selectedIndex = 0 ;GetLiveByCategory()'>";a+="				??? ?? ?? ???????";a+="			</span>"}else{a+="			<span style='font-family:arial;font-size:10px;color:#666666;cursor:hand;' onclick='javascript:GetLiveByCategory(true)'>";a+="				??? ?????? ??????";a+="			</span>"}a+="		</td>";a+="	</tr>";a+="	<tr height='10px'><td></td></tr>";a+="</table>";return a}function openlive(a){noteWindow=window.open("/Cat/Live/SingleGame.aspx?live_id="+a,"noteWindowlet","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=470,height=330,innerheight=330,innerwidth=450,top=1,left=1")}function InitLiveTicker(){InitMainTickerSection("live");InitDayLiveTicker(1);$j("#LiveGames1").jScrollPane({dragMinHeight:20,dragMaxHeight:50,showArrows:true,scrollbarWidth:11,arrowSize:10,scrollbarOnLeft:true});InitDayLiveTicker(2);$j("#LiveGames2").jScrollPane({dragMinHeight:20,dragMaxHeight:50,showArrows:true,scrollbarWidth:11,arrowSize:10,scrollbarOnLeft:true});InitDayLiveTicker(3);$j("#LiveGames3").jScrollPane({dragMinHeight:20,dragMaxHeight:50,showArrows:true,scrollbarWidth:11,arrowSize:11,scrollbarOnLeft:true});InitDayLiveTicker(4);$j("#LiveGames4").jScrollPane({dragMinHeight:20,dragMaxHeight:50,showArrows:true,scrollbarWidth:11,arrowSize:10,scrollbarOnLeft:true});InitDayLiveTicker(currentLiveMode);if(currentLiveMode<4){InitMainTickerSection("news")}}function InitDayLiveTicker(a){for(i=1;i<5;i++){$j("#LiveDay"+i).removeClass("LiveRelease"+i);$j("#LiveDay"+i).removeClass("LivePress"+i);if(i!=a){$j("#LiveDay"+i).addClass("LiveRelease"+i);$j("#LiveGamesContainer"+i).css("display","none")}else{$j("#LiveDay"+i).addClass("LivePress"+i);$j("#LiveGamesContainer"+i).css("display","block")}}}function GetTicker(){$j.ajax({url:"/Cat/Live/AjaxLiveTicker.aspx",type:"GET",success:function(a){ParseResultTicker(a)}})}function MSNMessengerGetTicker(){$j.ajax({url:"/Cat/Live/AjaxLiveTicker.aspx",type:"GET",success:function(a){MSNMessengerParseResultTicker(a.d)}})}function ParseResultTicker(m){var g=m;var a=g.split(/\|##TIC##\|/);var c=(typeof a[0]=="undefined")?"":a[0];var d=(typeof a[1]=="undefined")?"":a[1];var e=(typeof a[2]=="undefined")?"":a[2];var f=(typeof a[3]=="undefined")?"":a[3];var n=(typeof a[3]=="undefined")?"":a[4];var h=(typeof a[3]=="undefined")?"":a[5];var l=(typeof a[3]=="undefined")?"":a[6];var j=(typeof a[3]=="undefined")?"":a[7];var k=(typeof a[3]=="undefined")?"":a[8];var b=Ticker(c,d,e,f,n,h,l,j,k);$j("#divTicker").html(b);if(typeof(currentSection)=="undefined"){currentSection=0}if(currentSection==0){if(jQuery.trim(n).length>0){InitDayLiveTicker(2)}else{InitDayLiveTicker(4)}}else{InitDayLiveTicker(currentSection)}}function Ticker(b,c,d,e,k,f,j,g,h){b=b||"";c=c||"";d=d||"";e=e||"";k=k||"";f=f||"";j=j||"";g=g||"";h=h||"";var a="";a+='				<table width="150" cellpadding="0" cellspacing="1" style="height:176px;">';a+='					<tr height="16" style="Z-INDEX:20;POSITION:relative">';a+='						<td width="38" onclick="ClickLiveSection(1)" style="position:absolute:z-index:2"><div id="dvLiveSec1" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;POSITION:absolute;">'+b+'</div><div id="dvLiveSec1Press" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px"><img src="https://images.one.co.il/images/new/ticker/SBButton1_roll.gif" width="38" height="14"></div></td>';a+='						<td width="38" onclick="ClickLiveSection(2)" style="position:absolute:z-index:2"><div id="dvLiveSec2" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;POSITION:absolute;">'+c+'</div><div id="dvLiveSec2Press" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px"><img src="https://images.one.co.il/images/new/ticker/SBButton2_roll.gif" width="38" height="14"></div></td>';a+='						<td width="38" onclick="ClickLiveSection(3)" style="position:absolute:z-index:2"><div id="dvLiveSec3" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;POSITION:absolute;">'+d+'</div><div id="dvLiveSec3Press" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px"><img src="https://images.one.co.il/images/new/ticker/SBButton3_roll.gif" width="38" height="14"></div></td>';a+='						<td width="38" onclick="ClickLiveSection(4)" style="position:absolute:z-index:2"><div id="dvLiveSec4" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;POSITION:absolute;">'+e+'</div><div id="dvLiveSec4Press" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px"><img src="https://images.one.co.il/images/new/ticker/SBButton4_roll.gif" width="38" height="14"></div></td>';a+="					</tr>";a+='					<tr height="160px">';a+="							<td colspan=4 valign=top>";a+='							<table cellpadding="0" cellspacing="0" height="160px">';a+='								<tr style="height:160px;">';a+='									<td width="11">';a+='										<table style="width:100%;height:140px;padding:0px;margin:0px;" class="BgliveTicker"cellpadding=0 cellspacing=0>';a+='											<tr valign="top" style="height:10px">';a+='												<td><img src="https://images.one.co.il/images/new/scroller/scrollUp.gif" onmouseover="this.style.cursor=\'hand\'"';a+='														onmousedown="SetScroll(1)" onmouseup="ReleaseScroll()" ondragstart="ReleaseScroll()"';a+='														width="11" height="10"></td>';a+="											</tr>";a+='											<tr valign="top" style="height:120px">';a+='												<td><img src="https://images.one.co.il/images/new/scroller/scrollbar2.gif" id="scrollbutton"';a+='														ondragstart="event.returnValue=false" onmousedown="GrabButton()" onmouseup="ReleaseButton()"';a+='														width="11" height="13" style="VISIBILITY:hidden;CURSOR:hand;POSITION:absolute"></td>';a+="											</tr>";a+='											<tr valign="bottom" style="height:10px">';a+='												<td><img src="https://images.one.co.il/images/new/scroller/scrollDown.gif" onmouseover="this.style.cursor=\'hand\'"';a+='														onmousedown="SetScroll(0)" onmouseup="ReleaseScroll()" ondragstart="ReleaseScroll()"';a+='														width="11" height="10"></td>';a+="											</tr>";a+="										</table>";a+="									</td>";a+='									<td width=147 valign=top style="padding-left:2px;padding-right:2px"> ';a+='										<span id="Span4" style="Z-INDEX:11;VISIBILITY:hidden;POSITION:absolute">';a+=k;a+='											<table cellpadding="0" cellspacing="0" width="140px" class="LiveSep">';a+=f;a+="											</table>";a+="										</span>";a+='										<span id="Span3" style="Z-INDEX:10;VISIBILITY:hidden;POSITION:absolute">';a+='											<table cellpadding="0" cellspacing="0" width="140px" class="LiveSep">';a+=j;a+="											</table>";a+="										</span>";a+='										<span id="Span2" style="Z-INDEX:10;VISIBILITY:hidden;POSITION:absolute">';a+='											<table cellpadding="0" cellspacing="0" width="140px" class="LiveSep">';a+=g;a+="											</table> ";a+="										</span>  ";a+='										<span id="Span1" style="Z-INDEX:10;VISIBILITY:hidden;POSITION:absolute">';a+='											<table cellpadding="0" cellspacing="0" width="140px" class="LiveSep">';a+=h;a+="											</table>";a+="										</span>";a+="									</td>";a+="								</tr>";a+="							</table>";a+="						</td>";a+="					</tr>";a+="				</table>";return a}function MSNMessengerGetTicker(){new Ajax.Request("/Cat/Live/AjaxLiveTicker.aspx?css=msnLiveGame&cssSubject=msnLiveSubject",{method:"get",onComplete:MSNMessengerParseResultTicker,requestHeaders:["If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT"]})}var MSNMessengerParseResultTicker=function(m){var g=m.responseText;var a=g.split(/\|##TIC##\|/);var c=(typeof a[0]=="undefined")?"":a[0];var d=(typeof a[1]=="undefined")?"":a[1];var e=(typeof a[2]=="undefined")?"":a[2];var f=(typeof a[3]=="undefined")?"":a[3];var n=(typeof a[3]=="undefined")?"":a[4];var h=(typeof a[3]=="undefined")?"":a[5];var l=(typeof a[3]=="undefined")?"":a[6];var j=(typeof a[3]=="undefined")?"":a[7];var k=(typeof a[3]=="undefined")?"":a[8];var b=MSNMessengerTicker(c,d,e,f,n,h,l,j,k);$j("#divTicker").html(b);if(currentSection==0){if(n.strip().length>0){InitDayLiveTicker(2)}else{InitDayLiveTicker(4)}}else{InitDayLiveTicker(currentSection)}};function MSNMessengerTicker(b,c,d,e,k,f,j,g,h){b=b||"";c=c||"";d=d||"";e=e||"";k=k||"";f=f||"";j=j||"";g=g||"";h=h||"";var a="";a+='				<table width="160" cellpadding="0" cellspacing="1">';a+='					<tr height="160">';a+="							<td colspan=4 valign=top>";a+='							<table cellpadding="0" cellspacing="0" height="130">';a+="								<tr>";a+='									<td width=147 colspan=4 valign=top style="padding-left:2px;padding-right:2px"> ';a+='										<span id="Span4" style="Z-INDEX:11;VISIBILITY:hidden;POSITION:absolute">';a+=k;a+='											<table cellpadding="0" cellspacing="0" width="100%" class="msnLiveSep">';a+=f;a+="											</table>";a+="										</span>";a+='										<span id="Span3" style="Z-INDEX:10;VISIBILITY:hidden;POSITION:absolute">';a+='											<table cellpadding="0" cellspacing="0" width="100%" class="msnLiveSep">';a+=j;a+="											</table>";a+="										</span>";a+='										<span id="Span2" style="Z-INDEX:10;VISIBILITY:hidden;POSITION:absolute">';a+='											<table cellpadding="0" cellspacing="0" width="100%" class="msnLiveSep">';a+=g;a+="											</table> ";a+="										</span>  ";a+='										<span id="Span1" style="Z-INDEX:10;VISIBILITY:hidden;POSITION:absolute">';a+='											<table cellpadding="0" cellspacing="0" width="100%" class="msnLiveSep">';a+=h;a+="											</table>";a+="										</span>";a+="									</td>";a+='									<td width="11">';a+='												<table width=100% height=100% class="msnLiveScrollerBg"cellpadding=0 cellspacing=0>';a+='											<tr height="2" bgcolor="white">';a+="												<td></td>";a+="											</tr>";a+='											<tr valign="top" height="10">';a+='												<td><img src="https://images.one.co.il/images/MSites/MSNMessenger/msnScrollUp.jpg" onmouseover="this.style.cursor=\'hand\'"';a+='														onmousedown="SetScroll(1)" onmouseup="ReleaseScroll()" ondragstart="ReleaseScroll()"';a+='														width="11" height="10"></td>';a+="											</tr>";a+='											<tr valign="top">';a+='												<td><img src="https://images.one.co.il/images/MSites/MSNMessenger/msnScroller.jpg" id="scrollbutton"';a+='														ondragstart="event.returnValue=false" onmousedown="GrabButton()" onmouseup="ReleaseButton()"';a+='														width="11" height="13" style="VISIBILITY:hidden;CURSOR:hand;POSITION:absolute"></td>';a+="											</tr>";a+='											<tr valign="bottom">';a+='												<td><img src="https://images.one.co.il/images/MSites/MSNMessenger/msnScrollDown.jpg" onmouseover="this.style.cursor=\'hand\'"';a+='														onmousedown="SetScroll(0)" onmouseup="ReleaseScroll()" ondragstart="ReleaseScroll()"';a+='														width="11" height="10"></td>';a+="											</tr>";a+="										</table>";a+="									</td>";a+="								</tr>";a+="							</table>";a+="						</td>";a+="					</tr>";a+="				</table>";return a}var wo=121;var ho=172;var _i=0;var objOLive=new Array();var oName="divLiveOverlay";var cooOverlayShow="isShowOverlay";var cooOverlaySpeak="isShowOverlaySpeak";function GetOverlayAjax(){var a="/Cat/Live/AjaxLiveOverlay.aspx";if(getCookie(cooOverlayShow)!=0){new Ajax.Request(a,{method:"get",onComplete:ParseOverlay,requestHeaders:["If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT"]})}}var ParseOverlay=function(b){ohName=new Array();ogName=new Array();ohScore=new Array();ogScore=new Array();ohScorers=new Array();ogScorers=new Array();var a=b.responseText;isSingleGame=true;objLive=new clsLive;if(a.toString().indexOf("false")<0){GetGames(a);if(objLive.arrGames.length>0){_i=0;ShowOverlayDiv()}}};function ShowOverlayDiv(){var b=document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;var a=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;RepositionOverlay(0);$(oName).style.left=b-wo-25;$(oName).style.width=wo;$(oName).style.height=ho;if($("divToplayerSmall")&&$("divToplayerSmall").visible()){}else{Element.show(oName);new Effect.Opacity("divLiveOverlay",{afterFinish:ShowOverlaysGames,duration:1,from:0,to:0.7})}}function ShowOverlaysGames(){Effect.toggle("tblOverlay","appear",{duration:1,afterFinish:OnHide})}function OnHide(){var a=objLive.arrGamesId[_i];if(typeof objLive.arrGames[a].lblScorers=="undefined"){objLive.arrGames[a].lblScorers=""}if(objLive.arrGames[a].isBasketball==0){objLive.arrGames[a].lblScorers=GetLastEventScorers(objLive.arrGames[a].lblScorers)}Element.update("hScore",objLive.arrGames[a].homeScore);Element.update("gScore",objLive.arrGames[a].guestScore);Element.update("hName",objLive.arrGames[a].txtHomeTeam);Element.update("gName",objLive.arrGames[a].txtGuestTeam);Element.update("scorers",objLive.arrGames[a].lblScorers);Effect.toggle("tblOverlay","appear",{duration:1,afterFinish:OnShow})}function OnShow(){_i++;if(_i<objLive.arrGamesId.length){setTimeout("ShowOverlaysGames()",4000)}else{_i=0;setTimeout("HideOverlayDiv()",4000)}}function RestoreTable(){ClearLastResults();Element.show("tblOverlay")}function HideOverlayDiv(){new Effect.DropOut(oName,{duration:1,afterFinish:RestoreTable})}function ClearLastResults(){Element.update("hScore","");Element.update("gScore","");Element.update("hName","");Element.update("gName","")}function ChangeOptionToShowOverlay(){if($("chkIsOverlayShow").checked){setCookie(cooOverlayShow,1,1000*60*60*24*7)}else{setCookie(cooOverlayShow,0,1000*60*60*24*7);setCookie(cooOverlaySpeak,0,1000*60*60*24*7)}}function GetLastEventScorers(g){var c=0;var a="";do{var f=/(['??????????????????????????? ]{2,}) *\(\d+\)/;var b=f.exec(g);eventText=(b!=null)?b[0]:"";g=g.replace(eventText,"");if(eventText!=""){var e=/(\d+)/;var d=parseInt(e.exec(eventText),10);if(d>c){c=d;a=eventText}}}while(eventText!="");return a}function RepositionOverlay(b){var d=document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;var c=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;if(self.pageYOffset){s=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){s=document.documentElement.scrollTop}else{if(document.body){s=document.body.scrollTop}}}ypos=s;$(oName).style.top=c-ho-2+ypos}function PopSmsWindow(){window.open("http://one.mobile1.co.il/shataps/popup/SMSOne.aspx","_blank","location=no,status=no,toolbar=no,scrollbars=no,menubar=no,resizable=no,width=360,height=162")};
var images="https://images.one.co.il/images/ads/";var adTower120=false;var adTower160=false;function LoadOneZedoAdd(g,d,e,c,a){var b=e;var f=new SWFObject("https://ads.one.co.il/images/ads/"+g+"?clickTAG="+d,"swf"+b,c,a,6,"#FFFFFF");f.addParam("allowScriptAccess","always");f.addParam("quality","high");f.addParam("wmode","transparent");f.write("div"+e)}function ShowAdsTakeOver(b,c){var a="https://ads.one.co.il/images/ads/"+b[1];var g=b[2];var i=b[3];var d=b[4];if(a.toString().toLowerCase().indexOf(".swf")>-1){var f=new SWFObject(a+"?clickTAG="+g,"ban"+i+"x"+d,i,d,6,"#ffffff");f.addParam("allowScriptAccess","always");f.write(c);$(c).show()}if(a.toString().toLowerCase().indexOf(".gif")>-1||a.toString().toLowerCase().indexOf(".jpg")>-1){var e="<a href='"+g+"' target='_blank'>";e+="<img src='"+a+"' width='"+i+"px' height='"+d+"px' border='0' />";e+="</a>";$(c).update(e);$(c).show()}}function Init129X150Banner(){var c="https://ads.one.co.il/images/ads/";var a=new Array("129x150.gif");var b=new Array("http://xads.zedo.com/ads2/c?a=464549;g=0;c=455000000;i=0;x=7168;n=455;s=0;k=http://213.8.137.51/Erate/LinkTo.asp?sTool=FIOPC4&sType=2&URL=http://www.arcmedia.co.il/bankigud/heshbon_hafuch/?ToolId=FIOPC4&website=One");var d=Random(a.length)-1;$("href129X150").href=b[d];$("img129X150").src=c+a[d]}function IsTransitEnable(){if(IsIphone()){return false}if(!GetCookie("oneTransferPage")){$j("#adTransit").css({width:GetWindowWidth()+"px",height:GetWindowHeight()+"px",display:"block"});isTransitActive=true;SetCookie("oneTransferPage",1);return IsTransitEnable}return false}function AdTransferFinished(){isTransitActive=false;TowerReposition();$j("#adTransit").hide()}function TransferPageUITop(){document.write('<table width="775" align="center" id="tblAdBlock">');document.write("	<tr>");document.write("		<td>");document.write('			<img src="https://images.one.co.il/images/toplogo.jpg" width="775" height="53">');document.write("		</td>");document.write("	</tr>");document.write('	<tr height="25">');document.write('		<td align="center" class="text" class="f14b" style="color:#005fcd" dir="rtl">');document.write("		</td>");document.write("	</tr>");document.write('	<tr height="410">');document.write('		<td align="center" valign="bottom" id="adBlockContent">')}function TransferPageUIBot(){document.write("		</td>");document.write("	</tr>");document.write("	<tr>");document.write('		<td style="text-align:center;">');document.write('			    <img src="https://images.one.co.il/images/ads/skip_700.jpg" style="border:0;width:700px;height:19px;cursor:pointer" onclick="javascript:AdTransferFinished();"');document.write("		</td>");document.write("	</tr>");document.write("</table>")}function ShowFlash(d,b,e,a,f){var c=new SWFObject(d,b,e,a,6,"#FFFFFF");c.addParam("allowScriptAccess","always");c.addParam("quality","high");c.addParam("wmode","transparent");c.write(f)}function CountAdEvent(a){ImpressionCount(a)}function ImpressionCount(a){var b=new Image();b.src="http://l4.zedo.com/log/p.gif?a="+a+";c=455000000;x=5632;n=455;e=i;i=0;s=0;z="+Math.random()}function GetLink(a,b){return"http://xads.zedo.com/ads2/c?a="+a+";g=0;c=455000000;i=0;x=0;n=455;s=0;k="+b}function OpenAdLandingPage(a,b){b=GetLink(a,b);OpenWindow(b,"AdLandingPage",GetWindowWidth()/2,GetWindowHeight(),true,true,true,true,true,true)}function ShowFootballAd(a,b,d,e){var c="https://ads.one.co.il/images/ads/"+a;var b="?clickTAG="+b;var g=new SWFObject(c+b,"fLeft","110","600","6","#ffffff");g.addParam("quality","high");g.addParam("allowScriptAccess","always");if(a.indexOf("transparent")<0){g.addParam("wmode","transparent")}g.write("divFootballLeft");var f="https://ads.one.co.il/images/ads/"+d;var e="?clickTAG="+e;var h=new SWFObject(f+e,"fRight","110","600","6","#ffffff");h.addParam("quality","high");h.addParam("allowScriptAccess","always");if(d.indexOf("transparent")<0){h.addParam("wmode","transparent")}h.write("divFootballRight");$j("#divFootballLeft,#divFootballRight").show()}function TowerReposition(){return}function WallpaperReposition(){var a=$j("#specialLayerAdInner").width()>0?$j("#specialLayerAdInner").width():1;$j("#specialLayerAdInner").css({left:GetWindowWidth()/2-(a/2)+"px"})}function TowerRepositionTowersXPos(){var a=560;var b=Math.floor(GetWindowWidth()/2);var f=Math.floor(775/2);var d=((b+f)%2==0)?1:2;var c=b-f-a-12;var e=b+f-d;return{Left:c,Right:e}}var zedoAdsParams=Array();zedoAdsParams[0]="dimension=2&channel=0&type=1";zedoAdsParams[1]="dimension=7&channel=0&type=1";var zedoAdsHolder=Array();zedoAdsHolder[0]="jumbo";zedoAdsHolder[1]="adTower600";var zedoIndex=0;function CloseBomba(){var a=new Image();a.src="http://l4.zedo.com/log/p.gif?a=548704;c=455000000;x=3840;n=455;e=i;i=0;s=0;z="+Math.random();$j(".adBomba, #specialLayerAdInner, div[id^='divAdSpecial'], #divFootballRight, #divFootballLeft, #divWallLeft, #divWallRight").hide().html("");$j("#MainPageJumboContainer").html('<iframe src="http://c2.zedo.com/jsc/c2/ff2.html?n=455;c=1;d=48;w=728;h=90" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=728 height=90></iframe>').show();$j("#adTower600Left").css("width","160px").html('<iframe src="http://c2.zedo.com/jsc/c2/ff2.html?n=455;c=1;d=7;w=160;h=600" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=160 height=600></iframe>').show()}function TakeOverAds(a){this.cfg=jQuery.extend({CookieName:"TakeOverZedo",ChanArray:new Array()},a);this.cook=GetCookie(this.cfg.CookieName);this.IncChannel=function(){if(this.cook!=null){if(parseInt(this.cook)<this.cfg.ChanArray.length-1){this.cook=parseInt(this.cook);this.cook++}else{this.cook=0}}else{this.cook=this.GetRandChannel()}SetCookie(this.cfg.CookieName,this.cook)};this.GetChannel=function(){if(this.cook==null){this.IncChannel()}return this.cfg.ChanArray[this.cook]};this.RandomChannel=function(){return this.cfg.ChanArray[Random(this.cfg.ChanArray.length)-1]};this.GetIndex=function(){return(this.cook!=null)?this.cook:0};this.SetIndex=function(b){this.cook=b};this.GetRandChannel=function(){return Random(this.cfg.ChanArray.length)-1}}function OverrideJSChannel(b){var a=b;if(IsIphone()){a="156/155"}return a};
var zedoChannel="";var clsAdsTakeOver=(function(){var a=function(c){var e=this;this.arrChannels=new Array();this.curChannelIndex=-1;var d=new Date();this.TakeOverCookieName=c+d.getFullYear()+d.getMonth()+d.getDate();var b=function(){e.curChannelIndex++;if(e.curChannelIndex>=e.arrChannels.length){e.curChannelIndex=0}SetCookieDays(e.TakeOverCookieName,e.curChannelIndex,90)};this.AddChannel=function(f){e.arrChannels.push(f)};this.SetCurrentChannel=function(){var h=GetCookie(e.TakeOverCookieName);var g=Random(e.arrChannels.length*10);var f=parseInt(g/10,10);e.curChannelIndex=(h==null||h=="undefined")?f:parseInt(h,10);b();zedoChannel=e.arrChannels[e.curChannelIndex]};this.CurrentChannelIndex=function(){return e.curChannelIndex}};return a}());
function ShowTOPLayer(){}var clsToplayer=(function(){var a=function(c){var d=this;var b=jQuery.extend({baseSWFPath:"",zedoCounterID:0,switchSeconds:15,container:"divToplayerContainer",mainWidth:"500",mainHeight:"400",mainSWF:"",mainLink:"",mainPosition:"BC",isMainPage:false,remWidth:"100",remHeight:"100",remSWF:"f",remLink:"",remPosition:"BR",tagMain:"",tagReminder:"",refTimer:null,Misc:""},c);this.cfg=b;this.RenderFlash=function(e,f,g){$j("#"+this.cfg.container).css({width:f.Width,height:f.Height,left:"",right:"",top:"",bottom:"","z-index":5,position:"fixed"}).css(f.XSide,f.X).css(f.YSide,f.Y);if(g.length>0){$j("#"+this.cfg.container).html(g)}else{ShowFlash(e,"toplayer",f.Width,f.Height,this.cfg.container)}};this.GetScreenPosition=function(f,g,e){var i=0;var k=0;var j="";var l="";switch(f.toLowerCase()){case"tl":i=0;k=0;j="left";l="top";break;case"tc":i=GetWindowWidth()/2-g/2;k=0;j="left";l="top";break;case"tr":i=25;k=0;j="right";l="top";break;case"cl":i=0;k=pos.Y=GetWindowHeight()/2-e/2;j="left";l="top";break;case"cc":i=GetWindowWidth()/2-g/2;k=GetWindowHeight()/2-e/2;j="left";l="top";break;case"cr":i=25;k=GetWindowHeight()/2-e/2;j="right";l="top";break;case"bl":i=0;k=0;j="left";l="bottom";break;case"bc":i=GetWindowWidth()/2-g/2;k=0;j="left";l="bottom";break;case"br":i=25;k=0;j="right";l="bottom";break}return{XSide:j,YSide:l,X:i+"px",Y:k+"px",Width:g+"px",Height:e+"px"}};this.InitMain=function(){var e=this.cfg.baseSWFPath+""+this.cfg.mainSWF;if(this.cfg.mainLink.length>7){e+="?clickTAG="+this.cfg.mainLink}var f=this.GetScreenPosition(this.cfg.mainPosition,this.cfg.mainWidth,this.cfg.mainHeight);this.RenderFlash(e,f,this.cfg.tagMain)};this._InitToplayer=function(){this.InitMain();$j("#"+this.cfg.mainContainer).show();if(this.cfg.switchSeconds>0){this.cfg.refTimer=setTimeout("SwitchToReminderProxy()",this.cfg.switchSeconds*1000)}};this.InitReminder=function(){var e=this.cfg.baseSWFPath+""+this.cfg.remSWF;if(this.cfg.remLink.length>7){e+="?clickTAG="+this.cfg.remLink}var f=this.GetScreenPosition(this.cfg.remPosition,this.cfg.remWidth,this.cfg.remHeight);this.RenderFlash(e,f,this.cfg.tagReminder)};this.SwitchToReminder=function(){this.InitReminder()};this.ClearSwitchToReminder=function(){clearTimeout(this.cfg.refTimer)};this.Close=function(){$j("#"+this.cfg.container).hide()};this._InitToplayer()};return a}());function SwitchToReminderProxy(){objotop.SwitchToReminder()}function ToplayerClearSwitchToReminder(){objotop.ClearSwitchToReminder()}function CloseTopLayer(){isToplayerWasClosed=true;objotop.Close();if($j("#tower500")&&resWidth>801){$j("#tower500").show()}};
var fbAppId=117670158262038;function FBSocialReader(c,r){if(!(this instanceof FBSocialReader)){return undefined}var s=this;var b={id:c||$j('meta[property="fb:app_id"]').attr("content")||fbAppId,namespace:""};var i=new m();var u={currentIndex:0};var p=$j.extend({debug:false,isWidgetMode:true,ui:$j("#SocialReader"),cssPrefix:"Social_",friendsToShow:4,userActionsToShow:4,friendsActionsToShow:3},r);var t={isGetUserData:false,isGetUserFriends:false,isBuildingFriendUI:false};var l={logInMessage:"אנא הרשם",deleteMyAction:"מחק פעילות זו מפעילויות שלי",actions:{"news.reads":"קראתי את ","video.watches":"צפיתי ב"},objects:{article:"הכתבה","video.other":"סרטון","video.tv_show":"תוכנית"}};this.OGGet=function(x){var w=$j.Deferred();if(!i.isLoggedIn||!i.isAuthorized){if(o()){console.error("User not authorized.")}w.reject("User not authorized.");return w.promise()}FB.api("/"+x,function(y){if(!y||y.error){if(!y){w.reject()}else{w.reject(y.error)}if(o()){console.warn("Error occurred (%s) couldn't get open graph ID %s.",y.error.message,x)}}else{w.resolve(y)}});return w.promise()};this.OGactionGet=function(w,z,y){var x=$j.Deferred();if(!i.isLoggedIn||!i.isAuthorized){if(o()){console.error("User not authorized.")}x.reject("User not authorized.");return x.promise()}FB.api("/"+z.uid+"/"+w.type,function(D){if(!D||D.error){if(!D){x.reject()}else{x.reject(D.error)}if(o()){console.warn("Error occurred (%s) couldn't get actions.",D.error.message)}}else{var A=D.data;var C=(D.paging)?D.paging.next:null;var B=[];if(!y){B.push(new $j.Deferred().resolve())}else{$j.each(A,function(F,E){for(var G in E.data){if(!E.data.hasOwnProperty(G)||!E.data[G].hasOwnProperty("id")){continue}(function(){var H=G,I=s.OGGet(E.data[H].id);I.done(function(J){$j.extend(E.data[H],J);if(o()){console.log("Done "+z.name+" "+E.type+"Object "+F)}});B.push(I)})()}})}$j.when.apply(null,B).done(function(){z.actions=(z.actions||[]).concat(A);z.actions.next=C;z.actions.currentIndex=0;x.resolve();if(o()){console.log("Received all "+w.type+" for "+z.name)}}).fail(x.reject)}});return x.promise()};this.OGactionPost=function(z,y){var w=$j.Deferred();var x={};if(!i.isLoggedIn||!i.isAuthorized){if(o()){console.error("User not authorized.")}w.reject("User not authorized.");return w.promise()}z=z||FBSocialReader.OGobjects[$j('meta[property="og:type"]').attr("content")];y=y||$j('meta[property="og:url"]').attr("content");x[z.type]=y;FB.api("/me/"+z.referredAction.type,"post",x,function(A){if(!A||A.error){if(!A){w.reject()}else{w.reject(A.error)}if(o()){console.warn("Error occured (%s) couldn't post the action.",A.error.message)}}else{a(A.id);w.resolve(A);if(o()){console.info(z.referredAction.type+" "+z.type+", got action ID: "+A.id)}}});return w.promise()};this.OGactionDelete=function(w){var x=$j.Deferred();if(!i.isLoggedIn||!i.isAuthorized){if(o()){console.error("User not authorized.")}x.reject("User not authorized.");return x.promise()}FB.api("/"+w,"delete",function(y){if(!y||y.error){if(!y){x.reject()}else{x.reject(y.error)}if(o()){console.warn("Error occurred (%s) couldn't delete the action.",y.error.message)}}else{x.resolve(y);if(o()){console.info("Action ID: "+y.id+"deleted")}}});return x.promise()};this.GetUserData=function(){var w=$j.Deferred();if(!i.isLoggedIn||!i.isAuthorized){if(o()){console.error("User not authorized.")}w.reject("User not authorized.");return w.promise()}t.isGetUserData=true;FB.api({method:"fql.query",query:"SELECT uid, name, pic_square FROM user WHERE uid = me()"},function(y){if(!y||y.error){if(!y){w.reject()}else{w.reject(y.error)}if(o()){console.error("Collect User Data: Fail.",y.error)}}else{i.AddUserData(y);var x=[];$j.each(FBSocialReader.OGactions.GetAll(),function(A,z){var B=s.OGactionGet(z,i,true);B.done(function(){if(o()){console.log("Done "+i.name+" "+z.type)}});x.push(B)});$j.when.apply(null,x).done(function(){i.SortActions();w.resolve();if(o()){console.log("All User Data received")}}).fail(function(z){w.reject(z)}).always(function(){t.isGetUserData=false})}});return w.promise()};this.GetUserFriends=function(){var w=$j.Deferred();if(!i.isLoggedIn||!i.isAuthorized){if(o()){console.error("User not authorized.")}w.reject("User not authorized.");return w.promise()}t.isGetUserFriends=true;FB.api({method:"fql.query",query:"SELECT uid, name, pic_square FROM user WHERE is_app_user = 'true' AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"},function(x){if(!x||x.error){if(!x){w.reject()}else{w.reject(x.error)}if(o()){console.error("Collect friends: Fail.",x.error)}}else{u=x;u.currentIndex=0;t.isGetUserFriends=false;w.resolve()}});return w.promise()};this.InternalTest=function(){};var n=function(){var w=$j("#fb-root");if(w.length==0){$j('<div id="fb-root"></div>').prependTo("body")}if(window.FB){FB.Event.subscribe("auth.statusChange",v);FB.api("/"+b.id,function(x){if(!x||x.error){if(o()){console.warn("Error occurred: couldn't get app namespace")}}else{b.namespace=x.namespace}});FB.getLoginStatus(v)}else{$j.getScript("//connect.facebook.net/he_IL/all.js#xfbml=1&appId="+this.appId).done(function(){FB.Event.subscribe("auth.statusChange",v);FB.init({appId:b.id,channelUrl:"https://gabi.sites.one.co.il/channel.html",status:false,cookie:true,xfbml:true});FB.api("/"+b.id,function(x){if(!x||x.error){if(o()){console.warn("Error occurred: could not get app namespace.")}}else{b.namespace=x.namespace}});FB.getLoginStatus(v);$j(s).trigger("fbInit")}).fail(function(){if(o()){console.error("Fail to load facebook script")}})}return s};var v=function(y){var x=$j.Deferred();var w=$j.Deferred();if(o()){console.log("User status changed to "+y.status)}if(y.status==="connected"){i=new m(y.authResponse,{isAuthorized:true,isLoggedIn:true});$j(s).trigger("fbLoggedIn");if(!t.isGetUserData){x=s.GetUserData()}if(!t.isGetUserFriends){if(o()){console.log("Getting User Friends.","status.isGetUserFriends = "+t.isGetUserFriends)}w=s.GetUserFriends()}}else{if(y.status==="not_authorized"){i=new m({isAuthorized:false,isLoggedIn:true});x.resolve();w.resolve()}else{i=new m();x.resolve();w.resolve();if(o()){console.log("User isn't logged in to Facebook")}}}$j.when(x,w).done(function(){if(p.isWidgetMode){g()}}).fail(function(z){if(o()){console.error("Failed to get user or user friends data ",z)}})};var g=function(){if(o()){console.log("Building UI")}var E=p.ui.find(" .UserLoggedIn");if(i.isLoggedIn&&i.isAuthorized){p.ui.find(".UserName").text(i.name);p.ui.find(".UserPicture").attr("src",i.pic_square).attr("alt",i.name);p.ui.find(".LogInBtn").hide();p.ui.find(".UserLoggedIn").show();p.ui.find(".User").show();var G=["כבוי","מופעל"],F=["הפעלה","כיבוי"],D=p.ui.find(".Settings"),C=p.ui.find(".sharingStatus"),A=p.ui.find(".btnStopSharing"),H=(getCookie("fbOneConnectShare")||"true")==="true";if(H){D.addClass("on");C.text(G[H?1:0]);A.text(F[H?1:0]).addClass("on");window.setTimeout(s.OGactionPost(),10000)}C.text(G[H?1:0]);A.text(F[H?1:0]).click(function(I){H=!H;setCookie("fbOneConnectShare",H);D.toggleClass("on");C.text(G[H?1:0]);A.text(F[H?1:0]).toggleClass("on");I.stopImmediatePropagation();I.preventDefault()});var z=p.ui.find(".prevFriends"),x=p.ui.find(".nextFriends");z.click(function(I){I.stopImmediatePropagation();I.preventDefault();if(t.isBuildingFriendUI){return}var J=(u.currentIndex||0)-p.friendsToShow;if(J>0){u.currentIndex=J;z.addClass("on")}else{u.currentIndex=0;z.removeClass("on")}if(u.currentIndex<u.length){x.addClass("on")}e()});if(u.length>p.friendsToShow){x.click(function(I){I.stopImmediatePropagation();I.preventDefault();if(t.isBuildingFriendUI){return}var J=(u.currentIndex||0)+p.friendsToShow;if(J<u.length){u.currentIndex=J}if(u.currentIndex+p.friendsToShow<u.length){x.addClass("on")}else{x.removeClass("on")}if(u.currentIndex>0){z.addClass("on")}e()}).addClass("on")}var y=p.ui.find(".navigation .prevAction"),w=p.ui.find(".navigation .nextAction"),B=p.ui.find(".navigation .hide");y.click(function(M){M.stopImmediatePropagation();M.preventDefault();var J=$j(this),K=J.parent().parent(),I=(K)?K.find(".userAction.template"):undefined,O=K.data("userData"),L=K.data("actionsToShow"),N=O.actions.currentIndex-L;if(N<0){O.actions.currentIndex=0}else{O.actions.currentIndex=N}h(O,I,K)});w.click(function(M){M.stopImmediatePropagation();M.preventDefault();var J=$j(this),K=J.parent().parent(),I=(K)?K.find(".userAction.template"):undefined,O=K.data("userData"),L=K.data("actionsToShow"),N=O.actions.currentIndex+L;if(N<O.actions.length){O.actions.currentIndex=N}h(O,I,K)});B.click(function(I){I.stopImmediatePropagation();I.preventDefault();E.find("li.ui-state-active a").click()});e();f();E.tabs("option","disabled",[]);E.tabs("option","selected",H?0:2)}else{if(!i.isAuthorized){p.ui.find(".UserLoggedIn").hide();p.ui.find(".LogInBtn").show();p.ui.find(".User").show()}E.tabs("option","selected",2)}};var f=function(){if(o()){console.log("Building User Actions UI")}if(!p.ui){return}var x=p.ui.find("#UserActions div.actions");var w=(x)?x.find(".userAction.template"):undefined;if(x.length==0||w.length==0){return}h(i,w,x)};var e=function(){if(o()){console.log("Building User Friends Actions UI")}var w=p.ui.find("#FriendsActions");var y=w.find(".friends").children("img").not(".friend.template").remove().end().end();var z=w.find(".friend.template");if(y.length==0||z.length==0){return}var D=p.friendsToShow;var B=u.clone();do{var C=u.currentIndex||0;var A=B.splice(C,1)[0];var x=z.clone().removeClass("template");if(x.is("img")){x.attr("src",A.pic_square).attr("alt",A.name)}else{x.find("img").attr("src",A.pic_square).attr("alt",A.name)}x.data("userData",A).click(function(){if(t.isBuildingFriendUI){return}t.isBuildingFriendUI=true;var F=$j(this),I=F.data("userData"),E=p.ui.find("#FriendsActions"),G=E.find("span.friendName"),H=E.find(".actions").slideUp(function(){$j(this).children(".userAction").not(".template").remove();var J=E.find(".userAction.template");if(!I||H.length==0||J.length==0){return}if(G){G.text(I.name)}F.addClass("selected").siblings(".selected").removeClass("selected");if(I.actions){I.actions.currentIndex=0}h(I,J,H)})}).insertBefore(z);if(D--==p.friendsToShow){x.click()}}while(D>0&&B.length>0)};var h=function(D,x,w){var B=(D==i)?p.userActionsToShow:p.friendsActionsToShow;var y=w.children(".navigation");var z=y.children(".navigation .nextAction");var A=y.children(".navigation .prevAction");var C=[];if(D.actions){C.push($j.Deferred().resolve())}else{$j.each(FBSocialReader.OGactions.GetAll(),function(F,E){var G=s.OGactionGet(E,D,true);G.done(function(){if(o()){console.log("Done "+D.name+" "+E.type)}});C.push(G)})}$j.when.apply(null,C).done(function(){if(D.actions.length==0){w.children("div.name, div.navigation").hide().end().children("div.noActions").show().end().slideDown(function(){t.isBuildingFriendUI=false});return}else{w.children("div.name, div.navigation").show().end().children("div.noActions").hide()}w.data("userData",D).data("actionsToShow",B).children(".userAction").not(".template").remove();var G=D.actions.currentIndex+B;if(G>D.actions.length){G=D.actions.length}for(var F=D.actions.currentIndex||0;F<G;F++){var E=d(x,D.actions[F]).insertBefore(y);if(F==D.actions.currentIndex){E.addClass("first")}}if(D.actions.currentIndex>0){A.addClass("on")}else{A.removeClass("on")}if(G==D.actions.length){z.removeClass("on")}else{z.addClass("on")}w.slideDown(function(){t.isBuildingFriendUI=false})})};var d=function(x,y){var z;for(var B in y.data){if(y.data.hasOwnProperty(B)){z=y.data[B]}}if(!z){return undefined}var w=x.clone().removeClass("template");var A=new Date(y.publish_time);if(isNaN(A)||A=="Invalid Date"){A=j(y.publish_time)}w.find("span.action").text(l.actions[y.type]+" "+l.objects[z.type]);w.find("a").attr("href",z.url);w.find("img").attr("src",z.image[0].url).attr("alt",z.title);w.find(".btnRemoveAction").click(y.id,function(C){var D=s.OGactionDelete(C.data);D.done(function(){q(C.data)})});w.find("span.title").text(z.title);w.find("span.time").text(k(A));return w};var a=function(w){var x=s.OGGet(w);x.done(function(y){i.actions.push(y);for(var z in y.data){if(!y.data.hasOwnProperty(z)){continue}(function(){var A=z,B=s.OGGet(y.data[A].id);B.done(function(C){$j.extend(y.data[A],C);i.SortActions();p.ui.find("#UserActions div.actions .userAction:not(.template)").remove();f()})})()}})};var q=function(w){for(var x=0;x<i.actions.length;x++){if(i.actions[x].id==w){i.actions.splice(x,1);break}}f()};var o=function(){return p.debug&&window.console};var j=function(w){var x=w.match(/\d+/g);return new Date(x[0],x[1]-1,x[2],x[3],x[4],x[5])};var k=function(w){var x=["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"];var y=new Date();var B=Math.round((y-w)/1000);if(B<2){return("לפני שנייה")}if(B<60){return("לפני "+Math.round(B)+" שניות")}if(B<120){return("לפני דקה")}if(B<3600){return("לפני "+Math.round((B)/60)+" דקות")}if(B<7200){return("לפני שעה")}if(B<10800){return("לפני שעתיים")}if(B<86400){return("לפני "+Math.round((B)/3600)+" שעות")}var A=Math.round(B/86400);var z=new Date(y.getFullYear(),y.getMonth()+1,0).getDate();if(A<2){return("אתמול")}if(A<3){return("לפני יומיים")}if(A<7||(A>7&&A<14)||(A>14&&A<z)){return("לפני "+A+" ימים")}if(A==7){return("לפני שבוע")}if(A==14){return("לפני שבועיים")}if(A<32&&w.getDate()==y.getDate()){return("לפני חודש")}if(w.getFullYear()==y.getFullYear()){return"ב- "+w.getDate()+" ב"+x[w.getMonth()]}return"ב- "+w.getDate()+" ב"+x[w.getMonth()]+" "+w.getFullYear()};function m(z,x){var y=this;this.accessToken="";this.actions=[];this.expiresIn=new Date();this.isAuthorized=false;this.isLoggedIn=false;this.name="";this.pic_square="";this.uid="";if(z!=undefined){z.uid=z.userID;z.userID=undefined;for(var w=0;w<arguments.length;w++){$j.extend(this,arguments[w])}this.expiresIn=new Date(new Date().getTime()+parseInt(this.expiresIn)*1000)}this.AddUserData=function(A){$j.extend.apply(y,A)};this.SortActions=function(A){A=A||false;y.actions.sort(function(B,C){var D=new Date(B.publish_time),E=new Date(C.publish_time);if(isNaN(D)||D=="Invalid Date"){D=j(B.publish_time);E=j(C.publish_time)}return(A)?D-E:E-D})}}return n()}FBSocialReader.Post=function(h,e,f,g,i,d){var a=$j.Deferred();if(window.FB){var b={method:"feed",display:"dialog"};if($j.trim(h).length>0){b.name=h}if($j.trim(e).length>0){b.caption=e}if($j.trim(f).length>0){b.description=f}if($j.trim(g).length>0){b.link=g}if($j.trim(i).length>0){b.picture=i}if($j.isArray(d)&&d[0].name!=undefined&&d[0].link!=undefined){b.actions=d}FB.ui(b,function(j){if(!j||j.error){if(!j){a.reject()}else{a.reject(j.error)}}else{a.resolve(j)}})}else{var c=new FBSocialReader("",{isWidgetMode:false});$j(c).on("fbInit",function(){FBSocialReader.Post(h,e,f,g,i,d).done(function(j){a.resolve(j)}).fail(function(j){if(!j){a.reject()}else{a.reject(j.error)}})})}return a.promise()};FBSocialReader.OGactions={read:{type:"news.reads"},watch:{type:"video.watches"},GetAll:function(){var a=[];$j.each(this,function(b,c){if(!$j.isFunction(c)){a.push(c)}});return a},GetByType:function(a){var b=$j.grep(this.GetAll(),function(c){return c.type&&c.type==a});return(b.length>0)?b[0]:undefined}};FBSocialReader.OGobjects={article:{type:"article",referredAction:FBSocialReader.OGactions.read},video:{type:"video.other",referredAction:FBSocialReader.OGactions.watch},tvShow:{type:"video.tv_show",referredAction:FBSocialReader.OGactions.watch},GetByType:function(a){var b=$j.grep(FBSocialReader.OGobjects,function(c){return c.type&&c.type==a});return(b.length>0)?b[0]:undefined},GetAll:function(){var a=[];$j.each(this,function(b,c){if(!$j.isFunction(c)){a.push(c)}});return a},GetByAction:function(a){a=(a.type)?a:FBSocialReader.OGactions.GetByType(a);return $j.grep(this.GetAll(),function(b){return b.referredAction==a})}};
function PrepareAdsElementsForResponsiveDesign(){setTimeout(function(){if($j("#adTower600Left").width()>165){$j("#adTower600Left").addClass("adTowerWide")}if($j("#adTower600Right").width()>165){$j("#adTower600Right").addClass("adTowerWide")}},3000)}if(typeof tmo_util!="object"){tmo_util={}}if(typeof tmo_prop!="object"){tmo_prop={}}tmo_prop.IE=(navigator.userAgent.indexOf("MSIE")>=0)?true:false;if(navigator.userAgent.indexOf(".NET4.0E; .NET4.0C;")>=0){tmo_prop.IE=true}tmo_util.stlPopUnder=function(a,e,f,d,c,b,g){tmo_prop.TM_PopUnder="off";tmo_prop.TM_PopUnderData=a;tmo_prop.TM_PopUnderHeight=b;tmo_prop.TM_PopUnderWidth=g;tmo_prop.TM_Targetwindow=f;tmo_prop.TM_PopUnderSpecification=e;top.isPopDone_=false;window.TM_openWin=function(){if(tmo_prop.TM_PopUnder=="off"){tmo_prop.TM_PopUnder="on";myWindow=window.open("",tmo_prop.TM_Targetwindow,tmo_prop.TM_PopUnderSpecification);myWindow.document.write("<html><head><title>&nbsp;Advertisement</title></head><body marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>"+tmo_prop.TM_PopUnderData+"</body></html>");if(!tmo_prop.IE){myWindow.window.open("about:blank").close()}if(d="Pop-under"){myWindow.blur();window.focus()}}};if(!tmo_prop.IE){document.addEventListener("click",window.TM_openWin,false)}if(!tmo_prop.IE){document.addEventListener("mouseup",function(){if(top.isPopDone_){return}var j=Math.random();var h=document.createElement("a");h.href="data:text/html,"+unescape("%3Cscript%3E")+"window.close();"+unescape("%3C/script%3E"),document.getElementsByTagName("body")[0].appendChild(h);var i=document.createEvent("MouseEvents");i.initMouseEvent("click",true,true,window,0,0,0,0,0,true,false,false,true,0,null);h.dispatchEvent(i);h.parentNode.removeChild(h);window.open("about:blank","_tab"+j.toString()).close();top.isPopDone_=true},false)}else{setTimeout(window.TM_openWin,250)}};var tm={tm_pop:function(d,h){var g=h.cap||1;var c=h.wait||4;var b=h.cookie||"__.tm";var i=h.width;var a=h.height;var h="";var f={tm_initializefun:function(){this.ua.tm_initializefun()},ua:{tm_initializefun:function(){this.browser=this.tm_Stringsearchfun(this.list_browser)||"unknown";this.version=this.tm_Versionsearchfun(navigator.userAgent)||this.tm_Versionsearchfun(navigator.appVersion)||"unknown";this.os=this.tm_Stringsearchfun(this.list_os)||"unknown";if(this.browser=="Chrome"||this.browser=="chrome"){i=i||window.innerWidth;a=a||window.innerHeight}else{if(this.browser=="Explorer"||this.browser=="explorer"){i=i||window.innerWidth;a=a||window.innerHeight}else{i=i||screen.width;a=a||screen.height}}h="width="+i+",height="+a+",resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=yes,top=0,left=0"},list_browser:[{str:navigator.userAgent,subStr:"Chrome",id:"Chrome"},{str:navigator.userAgent,subStr:"OmniWeb",versionSearch:"OmniWeb/",id:"OmniWeb"},{str:navigator.vendor,subStr:"Apple",id:"Safari",versionSearch:"Version"},{prop:window.opera,id:"Opera",versionSearch:"Version"},{str:navigator.vendor,subStr:"iCab",id:"iCab"},{str:navigator.vendor,subStr:"KDE",id:"Konqueror"},{str:navigator.userAgent,subStr:"Firefox",id:"Firefox"},{str:navigator.vendor,subStr:"Camino",id:"Camino"},{str:navigator.userAgent,subStr:"Netscape",id:"Netscape"},{str:navigator.userAgent,subStr:"MSIE",id:"Explorer",versionSearch:"MSIE"},{str:navigator.userAgent,subStr:"Gecko",id:"Mozilla",versionSearch:"rv"},{str:navigator.userAgent,subStr:"Mozilla",id:"Netscape",versionSearch:"Mozilla"}],list_os:[{str:navigator.platform,subStr:"Win",id:"Windows"},{str:navigator.platform,subStr:"Mac",id:"Mac"},{str:navigator.userAgent,subStr:"iPhone",id:"iPhone/iPod"},{str:navigator.platform,subStr:"Linux",id:"Linux"}],tm_Stringsearchfun:function(j){for(var n=0;n<j.length;n++){var m=j[n].str;var e=j[n].prop;this.versionSearchString=j[n].versionSearch||j[n].id;if(m){if(m.indexOf(j[n].subStr)!=-1){return j[n].id}}else{if(e){return j[n].id}}}},tm_Versionsearchfun:function(e){var j=e.indexOf(this.versionSearchString);if(j==-1){return}return parseFloat(e.substr(j+this.versionSearchString.length+1))}},cookie:{tm_get:function(s,v){var u=new Date;u.setTime(u.getTime());var r=(new Date(u.getTime()+1000*60*60*v)).toGMTString();var q=document.cookie.split(";");var w="";var o="";var t=[0,r];for(var n=0;n<q.length;n++){w=q[n].split("=");o=w[0].replace(/^\s+|\s+$/g,"");if(o==s){b_cookie_found=true;if(w.length>1){t=unescape(w[1]).split("|");if(t.length==1){t[1]=r}}return t}w=null;o=""}return t},tm_set:function(e,k,j){document.cookie=e+"="+escape(k+"|"+j)+";expires="+j+";path=/"}},listener:{tm_addfun:function(n,q,o){var m="on"+q;if(typeof n.addEventListener!="undefined"){n.addEventListener(q,o,arguments.callee)}else{if(typeof n.attachEvent!="undefined"){n.attachEvent(m,o)}else{if(typeof n[m]!="function"){n[m]=o}else{var e=n[m];n["old_"+m]=e;n[m]=function(){e();return o()}}}}},tm_removefun:function(j,n,m){var e="on"+n;if(typeof j.removeEventListener!="undefined"){j.removeEventListener(n,m,false)}else{if(typeof j.detachEvent!="undefined"){j.detachEvent(e,m)}else{if(typeof j["old_"+e]!="function"){j[e]=null}else{j[e]=j["old_"+e]}}}}},format:{},random:function(){return Math.floor(Math.random()*1000001)}};f.tm_initializefun();f.format.popunder={settings:{url:d,times:g,hours:c,cookie:b},config:h,isBinded:false,isTriggered:false,tm_initializefun:function(){var e=f.cookie.tm_get(f.format.popunder.settings.cookie,f.format.popunder.settings.hours);this.cookie={};this.cookie.times=!isNaN(Number(e[0]))?Number(e[0]):0;this.cookie.expires=!isNaN(Date.parse(e[1]))?e[1]:(new Date).toGMTString();if(document.readyState=="complete"){setTimeout(f.format.popunder.bind,1)}else{f.listener.tm_addfun(document,"DOMContentLoaded",function(){f.listener.tm_removefun(document,"DOMContentLoaded");f.format.popunder.bind()});f.listener.tm_addfun(document,"onreadystatechange",function(){if(document.readyState=="complete"){f.listener.tm_removefun(document,"onreadystatechange");f.format.popunder.bind()}});f.listener.tm_addfun(window,"load",f.format.popunder.bind)}},bind:function(){if(f.format.popunder.isBinded){return}f.format.popunder.isBinded=true;if(f.format.popunder.cookie.times>=f.format.popunder.settings.times){return}var u={};for(var z in f.format.popunder.binders){var w=f.format.popunder.binders[z];var t=z.split("");var s="",A="";var o=1,m;for(var q=0;q<t.length;q++){var v=t[q];if(v.match(/[a-z0-9]/)==null){continue}m=v.search(/[a-z]/)==0;if(m){if(m!=o){u[s][A]=w;s=v}else{s+=v}}else{if(m!=o||parseInt(q)+1==t.length){if(m!=o){if(typeof u[s]!="object"){u[s]={}}A=v}if(parseInt(q)+1==t.length){u[s][m==o?A+v:A]=w}}else{A+=v}}o=m}}var n=u[f.ua.browser.toLowerCase()]||u.all;var r=Object.keys(n);r.sort();for(var w=0;w<r.length;w++){var A=r[w];if(f.ua.version<=A){break}}n[A]()},binders:{chrome:function(){},chrome37:function(){f.listener.tm_addfun(document,"mousedown",f.format.popunder.triggers.tm_anchor_trigg)},chrome30:function(){f.listener.tm_addfun(document,"click",f.ua.os=="Windows"?f.format.popunder.triggers.tm_fullscreen_trigg:f.format.popunder.triggers.tm_triple_trigg)},chrome28:function(){f.listener.tm_addfun(document,"click",f.format.popunder.triggers.tm_triple_trigg)},firefox12_chrome21:function(){f.listener.tm_addfun(document,"click",f.format.popunder.triggers.tm_double_trigg)},explorer0:function(){f.listener.tm_addfun(document,"click",f.format.popunder.triggers.tm_singledelay)},all0:function(){f.listener.tm_addfun(document,"click",f.format.popunder.triggers.tm_single)}},triggers:{tm_fullscreen_trigg:function(){f.listener.tm_removefun(document,"click",f.format.popunder.triggers.tm_fullscreen_trigg);if(!f.format.popunder.tm_register_trigg()){return}document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);window.open(f.format.popunder.settings.url,"pu_"+f.random(),f.format.popunder.config);document.webkitCancelFullScreen()},tm_triple_trigg:function(){f.listener.tm_removefun(document,"click",f.format.popunder.triggers.tm_triple_trigg);if(!f.format.popunder.tm_register_trigg()){return}window.open("javascript:window.focus()","_self");var e=window.open("about:blank","pu_"+f.random(),f.format.popunder.config);var k=document.createElement("a");k.setAttribute("href","data:text/html,<script>window.close();</script>");k.style.display="none";document.body.appendChild(k);var j=document.createEvent("MouseEvents");j.initMouseEvent("click",true,true,window,0,0,0,0,0,true,false,false,true,0,null);k.dispatchEvent(j);document.body.removeChild(k);e.document.open().write('<script type="text/javascript">window.location="'+f.format.popunder.settings.url+'";</script>');e.document.close()},tm_anchor_trigg:function(){f.listener.tm_removefun(document,"mousedown",f.format.popunder.triggers.tm_triple_trigg);if(!f.format.popunder.tm_register_trigg()){return}var j=document.createElement("A");var m=window.open(f.format.popunder.settings.url,"pu_"+f.random(),f.format.popunder.config);var k=document.createEvent("MouseEvents");k.initMouseEvent("click",true,true,window,0,0,0,0,0,true,false,false,true,0,null);j.dispatchEvent(k);j.parentNode.removeChild(j)},tm_double_trigg:function(j){f.listener.tm_removefun(document,"click",f.format.popunder.triggers.tm_double_trigg);if(!f.format.popunder.tm_register_trigg()&&j!="i"){return}var n=window.open(f.format.popunder.settings.url,"pu_"+f.random(),f.format.popunder.config);if(n){n.blur();try{var m=n.window.open("about:blank");m.close()}catch(e){}if(f.ua.browser=="Firefox"){window.showModalDialog("javascript:window.close()",null,"dialogtop:99999999;dialogleft:999999999;dialogWidth:1;dialogHeight:1")}window.focus()}},tm_singledelay:function(){f.listener.tm_removefun(document,"click",f.format.popunder.triggers.tm_singledelay);if(!f.format.popunder.tm_register_trigg()){return}var e=window.open(f.format.popunder.settings.url,"pu_"+f.random(),f.format.popunder.config);window.setTimeout(window.focus,750);window.setTimeout(window.focus,850);if(e){e.blur()}},tm_single:function(e){f.listener.tm_removefun(document,"click",f.format.popunder.triggers.tm_single);if(!f.format.popunder.tm_register_trigg()&&e!="i"){return}var j=window.open(f.format.popunder.settings.url,"pu_"+f.random(),f.format.popunder.config);if(j){j.blur();window.focus()}}},tm_register_trigg:function(){if(f.format.popunder.isTriggered){return false}f.format.popunder.isTriggered=true;if(f.format.popunder.settings.hours>0){f.cookie.tm_set(f.format.popunder.settings.cookie,++f.format.popunder.cookie.times,f.format.popunder.cookie.expires)}return true}};f.format.popunder.tm_initializefun();if(!Object.keys){Object.keys=function(){var j=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),m=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=m.length;return function(l){if(typeof l!=="object"&&typeof l!=="function"||l===null){throw new TypeError("Object.keys called on non-object")}var p=[];for(var k in l){if(j.call(l,k)){p.push(k)}}if(n){for(var o=0;o<e;o++){if(j.call(l,m[o])){p.push(m[o])}}}return p}}()}}};
