var tDelete='האם אתה בטוח כי ברצונך להמשיך במחיקה?';var documentWidth,documentInnerWidth,documentScrollWidth;var documentLeftScroll;if(!window.timeLog)window.timeLog=(function(){});timeLog('j-start');$(function(){documentDataChange();documentResize()});$(document).bind('resize',documentResize);var url;function documentResize()
{timeLog('documentResize:start');documentWidth=$(document.body).width();documentInnerWidth=$(document.body).innerWidth();documentScrollWidth=documentWidth-documentInnerWidth;documentLeftScroll=(documentScrollWidth>0?documentScrollWidth:0);timeLog('documentResize:end');}
function windowopen(href)
{var dfdsf;window.open('?'+href,'_top')}
function documentDataChange(){documentDataChangeOld();}
function documentDataChangeOld(){timeLog('userBefore');$("td.user").add('td.useron').toolTip({html:toolTipUser,place:'ul'});timeLog('userAfter');timeLog('helpBefore');$("span.help").each(function(){var $s=$(this)
ht=$s.html();if(parseInt(ht))
{}
else
{timeLog('1');$('').insertAfter($s).toolTip({binder:'click',html:''+ht+'',place:'ul'});timeLog('4');}});timeLog('helpAfter');$('#iefix_password').add('#iefix_username').add("#iefix_tgv").each(function(){var $t=$(this);$tWidth=$t.css('width');if($tWidth.indexOf('%')>0){var wid=parseInt($tWidth)/100;var newWid=($t.parent().width()*wid+(wid==1?-5:0));$t.css('width',newWid+'px');}});var fhgdfgdf=55;timeLog('after Fix Inputs');timeLog('forum-Start');if(window.forumload)forumload();timeLog('Document data Change');};$(function(){$.ajaxSetup({timeout:10000});var loader=$("#loader");loader.hide();loader.ajaxStart(function(){$(this).show();});loader.ajaxStop(function(){$(this).hide();});loader.ajaxError(function(m,a,b){});$("#loader").css("left",$(window).width()/2-5).hide();$("#oldweb").click(whyExit);});function tryData(inScript)
{try
{eval(inScript);}
catch(err)
{alert('defjsError:'+inScript);}}
function whyExit()
{$("span.whyexit").clone().remove();var b='
';var myexit=$(b).appendTo($("#load"));myexit.css('left',$(window).width()/2-myexit.width()/2).css('top',$(window).height()/2-myexit.height()/2+document.body.scrollTop);}
var UserChooseLoad=false;var userChooseP;var chooseUserDiv;function usUserClick(inX)
{cuCloseDo();userChooseP.callback(inX);}
function cuCloseDo(){blackScreenHide();chooseUserDiv.remove();UserChooseLoad=false;}
function defUserChoose(inP)
{if(UserChooseLoad)return(false);UserChooseLoad=true;userChooseP=inP;var cont=$('#load');if(inP.container)cont=inP.container;var b='
@
!
';chooseUserDiv=$(b).appendTo(cont);$('#divcuTitle').html(inP.title).hide();$("#cuClose").click(cuCloseDo);$('#chooseUserDivList').load(bubble_http+'/?todo=user&a=chooseuser',defUserChooseLoaded);}
function defUserChooseLoaded()
{blackScreenShow();UserChooseLoad=false;chooseUserDiv.css('left',$(window).width()/2-chooseUserDiv.width()/2).css('top',$(window).height()/2-chooseUserDiv.height()/2+document.body.scrollTop).css('z-index',1).show();}
var blackScreenInterval;function blackScreenShow()
{;$('.divDisableElement').remove();var divDisable='
asa
';$(divDisable).appendTo($(document.body)).hide().css('top','0px').css('left','0px').css('width',documentInnerWidth).css('height',$(document).height()).css('z-index',0).show();}
function blackScreenHide(){window.clearInterval(blackScreenInterval);$('.divDisableElement').remove()}
function showScript()
{if($('.myt').length>0){$('.myt')[0].focus();return(false);}
var divShowScript='';if($("#load").length>0)
divShowScript=$(divShowScript).insertBefore($('#load'));else
divShowScript=$(divShowScript).prependTo(document.body);}
var oldglobalEval=$.globalEval;function logGlobalEval()
{$.globalEval=function(x){log(x);oldglobalEval(x)};alert('globalEval');}
$.hotkeys.add('Alt+Ctrl+r',function(){window.open(document.location,'_top');});$.hotkeys.add('Alt+m',function(){window.open('?i=mail','_top');});$.hotkeys.add('Alt+d',function(){window.open('?todo=user&a=disconnect','_top');});$.hotkeys.add('Alt+u',function(){window.open('?i=user&a=connect','_top');});$.hotkeys.add('Alt+x',function(){showScript();$('.myt')[0].focus();return(false)});function cookieSwitch(inx,more){$.cookie(inx,$.cookie(inx)?null:true,{path:'/',expires:7})}
$.hotkeys.add('Alt+1',function(){var x='showlnge';cookieSwitch(x);alert(x+' '+$.cookie(x))});$.hotkeys.add('Alt+2',function(){$('div#bottom').toggle();});$.hotkeys.add('Alt+3',function(){var x='showtimer';cookieSwitch(x);alert(x+' '+$.cookie(x))});$.hotkeys.add('Alt+4',function(){var x='noresample';cookieSwitch(x);alert(x+' '+$.cookie(x))});$.hotkeys.add('Alt+9',function(){var x='noajax';cookieSwitch(x);alert(x+' '+$.cookie(x))});$.hotkeys.add('Alt+0',function(){var x='likeeverybody';cookieSwitch(x);alert(x+' '+$.cookie(x))});$.hotkeys.add('Alt+l',logGlobalEval);$.hotkeys.add('Shift+t',function(){alert(timeLogStr)})
$.hotkeys.add('Shift+L',function(){lngeditLoad();})
function userContact(inID,inName)
{if(usID==0)
windowopen('i=messages&a=new&id='+inID)
else
{inName=inName.replace(/'/g,'!@!');mailonload='newMessage( {instant:true, id: '+inID+',name: \''+inName+'\' } );';$.cookie('mailonload',mailonload);windowopen('i=mail');}}
function defaultValue(selector,defvalue){if($.trim($(selector).val())==""){$(selector).val(defvalue).css('color','#777777');}
$(selector).focus(function(){if($(selector).val()==defvalue){$(selector).val("").css('color','');}});$(selector).blur(function(){if($.trim($(selector).val())==""){$(selector).val(defvalue).css('color','#777777');}});$(selector).parents('form').bind('submit',function(){if($(selector).val()==defvalue)$(selector).val("")})}
function log(inX)
{if($(".log").length==0)
$('').insertBefore($("#load")).val(inX);else
$(".log").css('height','300px').val($(".log").val()+inX);}
function defSecurity(inText)
{return(inText.replace(/on[a-zA-Z]+/gi,'no').replace(/javascript/gi,'jt'))}
function disableSelection(selector){selector.bind('selectstart',function(){return false});selector.css('-moz-user-select',"none");}
function enableSelection(selector){selector.css('-moz-user-select',"");selector.unbind('selectstart');}
function modalShow(inx)
{var b='';b+='
';return(ans);}
var blank=null;function fixPng(png){if(blank==null){blank=new Image();blank.src='/bsImg/8427.gif';}
var src=png.src;if(!png.style.width){png.style.width=$(png).width();}
if(!png.style.height){png.style.height=$(png).height();}
png.onload=function(){};png.src=blank.src;png.style.visibility='visible';png.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"',sizingMethod='scale')";}
timeLog('j-end');