var locss;var notType=1,nActive=0;var NHrefs=new Array('EmailVerify.aspx','Extended.aspx','MemMedia.aspx','WCom.aspx','Friends/nmf.aspx?type=Status&sw=4&fl=3&init=2','Extended.aspx','BlogEdit.aspx');function showND(idx,obj){if(aboutOut!=-1){clearTimeout(aboutOut)}var t=document.getElementById('tblh'),no=document.getElementById('tdNotify');t.rows[0].cells[0].innerHTML='';t.rows[1].cells[0].innerHTML=NDescs[idx];t.style.display='';t.style.left=getLeft(no)+(no.clientWidth-t.clientWidth)/2;t.style.top=getTop(obj)+24;aboutOut=setTimeout('hideDFX();aboutOut=-1;',8000)}var dx;function NUpdate(){if(document.getElementById){dx=(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()}if(dx){dx.onreadystatechange=function(){if(dx.readyState==4&&dx.status==200){eval('loadNotifies(dx.responseText)')}}}dx.open("GET",'nserv.aspx?t='+new Date(),true);dx.send(null)}function genItem(nId,nData){var txt=NTxts[nId];if(nData!=null&&nData!='undefined'&&nData!=''){var nds=nData.split(",");for(i=0;i<nds.length;i++){txt=txt.replace('#'+i,nds[i])}}return'<span id="notf'+nId+'" onmouseover="showND('+nId+',this)" onmouseout="hideDF()">'+txt+' <b><a target="mf" href="'+NHrefs[nId]+'">'+NLnks[nId]+'</a></b></span>'}function loadNotifies(ss){if(ss=='#')return;if(ss!=''&&ss!='!'){var innerTxt='';var nis=ss.split("|");var i=0;for(i=0;i<nis.length;i++){var pair=nis[i].split('=');innerTxt+=(innerTxt==''?'':'<br />')+genItem(pair[0],pair[1])}initNotifies(innerTxt)}else{vanishNotifies()}}function hideNotifies(){var i=nActive==0?'none':'';notType=0;switchN('none',i)}function showNotifies(){var i=nActive==0?'none':'';notType=1;switchN(i,'none')}function initNotifies(txt){document.getElementById('NInner').innerHTML=txt;nActive=1;if(notType==1)showNotifies();else hideNotifies()}function vanishNotifies(){nActive=0;switchN('none','none')}function switchN(NOD,NID){var no=document.getElementById('tdNotify'),ni=document.getElementById('tdNIcon');no.style.display=NOD;ni.style.display=NID}function page_load(){try{var mfo=document.getElementById('mf');if(mfo.contentWindow.document.location.href.indexOf('.aspx')==-1){locss=unescape(location.search.substring(1,location.search.length));if(!locss==''){mfo.src=locss}else{mfo.src='Home.aspx'}}}catch(e){}if(locss==''){}}function page_resize(){set_mf()}function set_mf(){var mymf=document.getElementById("mf");try{var mozh;if(br_moz){mf.document.body.style.height="auto";var mp=mymf.offsetParent;var poff=0;mozh=mf.document.body.offsetHeight;if(mozh<550)mozh=620}var hts=br_moz?mozh:mf.document.body.scrollHeight;mymf.height=hts+20;mymf.scrolling='no'}catch(e){mymf.scrolling='yes'}}function doSe1(ss){sNav('&Username='+escape(ss))}function sNav(p){window.lsp='';go('Friends/?R=1'+p)}function ch_Skin(sId){SetCook('SkinID',sId,'');document.getElementById('mf').contentWindow.location.reload()}function ch_Lang(cname){SetCook('LangID',cname,'');var wo='';var pos=document.getElementById('mf').contentWindow.document.location.href;window.document.location.href=wo+"Default.aspx"+(pos.indexOf('about')>-1?'':'?'+escape(pos))}function SetCook(nm,val,wo){SetCookie(nm,val)}function SetCookie(sName,sValue){date=new Date();document.cookie=sName+"="+escape(sValue)+"; expires=Fri, 31 Dec 2010 23:59:59 GMT;"}function getColor(){var mfholder=document.getElementById('tdMF');mfholder.style.backgroundColor=document.getElementById('mf').contentWindow.document.bgColor}function frndss(){window.lsp='';go('/Friends')}function showMN(mnARRNM){goexec('showMNEXE('+mnARRNM+')',mnARRNM)}function hideMN(mnARRNM){outexec('hideMNEXE()',mnARRNM)}function showMNEXE(mnArr){genMenu(mnArr);tUser.style.display='none';tMenus.style.display=''}function hideMNEXE(){tMenus.style.display='none';tUser.style.display=''}function genMenu(ss){clearTable('tblMenu',0);var nr;nr=tMenu.insertRow(-1);var nd=nr.insertCell(-1);nd.innerHTML='&nbsp;';for(var i=0;i<ss.length;i+=3){genMI(ss[i],ss[i+1],nr,ss[i+2])}}function genMI(t,l,r,tr){var nd=r.insertCell(-1);nd.className='top';nd.innerHTML='<a target="'+tr+'" href="'+l+'">'+t+'</a>';nd.style.width=120+'px';nd=r.insertCell(-1);nd.style.width=4+'px'}var wHandle=-1,wId='',outcode='';function goexec(code,mId){if(mId==wId&&wHandle!=-1){clearHandle();return}if(wHandle!=-1){outNow()}wId=mId;eval(code)}function outexec(code,mId){outcode=code;wId=mId;wHandle=setTimeout('outNow()',500)}function outNow(){eval(outcode);clearHandle()}function clearHandle(){clearTimeout(wHandle);wHandle=-1}function go(u){document.getElementById('mf').contentWindow.document.location=u}
function ChooseSkin(Idx,wo){
SetCookie('SkinID',Idx);
SetCookie('NewSkin',"0");
skrl();
}
function NewSkin(){
SetCookie('SkinID',7);
SetCookie('NewSkin',"1");
skrl();
}
function skrl(){
var pos=document.getElementById('mf').contentWindow.document.location.href;
window.document.location.href="Default.aspx?"+escape(pos);
}
function SetCookie(sName, sValue){date = new Date();document.cookie = sName + "=" + escape(sValue) + "; expires=Fri, 26 Aug 2010 23:59:59 GMT;";}
function genSkins(){var ret='';var i;for(i=0;i<skins.length;i++){ret+='<td id=ss'+i+' onmouseover="this.className='+"'"+'normborder'+"'"+'" onmouseout="this.className='+"'"+'leftbtn'+"'"+'" style="CURSOR: hand;BACKGROUND-COLOR:'+skins[i]+'" onclick="ChooseSkin(this.cellIndex,'+"''"+');" class="leftbtn">&nbsp;</td>'}return '<table cellspacing="3" border="0" width="100%" height="28"><tr>'+ret+'</tr></table>'; }
function genPoll(a,b){var rets='',i,c;for(i=0;i<a.length;i++){var checked=i==0?'checked ':'';rets+='<tr><td><input id="opPoll'+i+'" '+checked+'type="radio" value="'+i+'" name="mradio"><label for="opPoll'+i+'" class="leftFC sf">'+a[i]+'</label></td></tr>'}c=b==''?'</table>':'<tr><td class="Leftbtn"><font size="1" class="LeftAltFC">'+b+'</font></td></tr></table>';return '<input type="hidden" id="pCount" name="pCount" value="'+a.length+'"><table border="0" width="100%">'+rets+c;}
function doPoll(){var i;for(i=0;i<Math.ceil(document.all('pCount').value);i++){if(document.all('opPoll'+i).checked==true){window.open('Polls?Do='+i,'mypoll','height=420,location=0,menubar=0,toolbar=0,width=380,resizable=1,scrollbars=1');return;}}}
function showPoll(){window.open('Polls?Action=3','mypoll','height=420,location=0,menubar=0,toolbar=0,width=380,resizable=1,scrollbars=1');return;}
var sps='<img border="0" src="images/spacer10.gif" width="10" height="10">';
var bspp='<tr><td width="20">'+
sps+
'</td><td>'+
sps+
'</td><td width="20">'+
sps+
'</td></tr>';

function genbutton(caption, href,trgt){ 
var rets='<tr>'+
'<td width="20">'+
'<img border="0" src="images/rcross.gif" width="20" height="22"></td>'+
'<td width="121" height="24" align="center" class="rb rbn" onmouseover="this.className=\'rb rbo\'" onmouseout="this.className=\'rb rbn\'">'+
'<a href="'+href+'" target="'+trgt+'">'+
caption+
'</a>'+
'</td>'+
'<td width="20">'+
'<img border="0" src="images/rcross.gif" width="20" height="22"></td>'+
'</tr>'+bspp;
return rets;}

function genspace(inner){return '<tr><td class="leftspace" align="center" height="22">'+inner+'</td></tr>';}
function genlabel(caption){return '<tr><td class="leftarea" align="center" height="22"><font style="font-size:8pt">'+caption+'</font></td></tr>';}
function genarea(inner){return '<tr><td class="leftarea" align="center" height="22">'+inner+'</td></tr>';}
function genCounter(a,b,c,d){return '<table border="0" width="100%" cellspacing="1"><tr><td><font size="2">عدد الزوار</font></td></tr><tr><td align="center"><font class="LeftFC f" id="cca">'+a+'</font></td></tr><tr><td><font size="2">اليوم</font></td></tr><tr><td align="center"><font class="leftFC" id="ccb">'+b+'</font></td></tr><tr><td><font size="2">متصلين الآن</font></td></tr><tr><td align="center"><font class="LeftFC f" id="ccc">'+c+' عضو'+'</font></td></tr><tr><td align="center"><font class="LeftFC f" id="ccd">'+d+' زائر'+'</font></td></tr></table>';}

