var imageTag=false;var theSelection=false;var clientPC=navigator.userAgent.toLowerCase();var clientVer=parseInt(navigator.appVersion);var is_ie=((clientPC.indexOf("msie")!=-1)&&(clientPC.indexOf("opera")==-1));var is_nav=((clientPC.indexOf('mozilla')!=-1)&&(clientPC.indexOf('spoofer')==-1)&&(clientPC.indexOf('compatible')==-1)&&(clientPC.indexOf('opera')==-1)&&(clientPC.indexOf('webtv')==-1)&&(clientPC.indexOf('hotjava')==-1));var is_moz=0;var is_win=((clientPC.indexOf("win")!=-1)||(clientPC.indexOf("16bit")!=-1));var is_mac=(clientPC.indexOf("mac")!=-1);b_help="خط عريض: [/b]نص[ .[b";i_help="خط مائل: [i]نص[/i]";u_help="خط في الأسفل: [u]نص[/u]";q_help="إدراج اقتباس: [quote]نص مقتبس[/quote]";c_help="إظهار نص البرمجة : [/code]برنامج[code]";l_help="قائمة نُقطية: [list]نص[/list]";o_help="قائمة عددية: [list=]نص[/list]";p_help="اضف صورة: [img]http://image_url/[/img]";w_help="اضف رابطة: [url]http://url[/url]";a_help="اغلق جميع أكواد البيبيكود BBCode المفتوحة";s_help="لون الخط:[color=red]نص[color/]العبارة التالية صالحة ايضا:color=#FF0000";f_help="حجم الخط: [size=x-small]خط صغير[/size]";k_help="نص يتم استعراضه في مساهمتك: [scroll]نص[/scroll]";e_help="نص باهث: [fade]نص[/fade]";r_help="نص غير واضع (مضبب): [blur]نص[/blur]";j_help="نص مقلوب: [flipv]نص[/flipv]";v_help="نص مقلوب رأساً على عقِب: [fliph]نص[/fliph]";m_help="تصفيف النص على اليسار: [left]النص[/left] (ctrl+m)";d_help="نص يتحرك من الأعلى إلى الأسفل: [updown]نص[/updown]";t_help="نص في الوسط : [center]نص[/center]";g_help="نص مصفف على اليمين: [right]نص[/right]";x_help="نص مضروب عليه بخط في منتصفه: [strike]نص[/strike]";y_help="رفع الصور";z_help="اضافة وجه ضاحك (ابتسامة) في مساهمتك";h_help="نص يُمكن مُعاينته فقط من طرف الأعضاء الذين ساهموا في الموضوع: [hide]نص[/hide]";sp_help="النص أو الصورة مخفية ولا تظهر الآ عند الضغط عليها: [spoiler]النص أو رابط الصورة[/spoiler]";wo_help="عنصر ينتمي الى عالم Warcraft : [wow]17104[/wow]";ft_help="نمط الكتابة : [font=Verdana]النص[/font]";jt_help="تصفيف النص: [justify]النص[/justify] (ctrl+j)";sub_help="اجعل النص كدليل مصغر: [sub]النص[/sub] (ctrl+m)";sup_help="اجعل النص كعارض: [sup]النص[/sup] (ctrl+n)";tab_help="إدماج جدول";hr_help="أضِف سطر : نص[hr]نص";fl_help="ادماج صور فلاشية: [flash(عرض,ارتفاع)]رابط الفلاش[/flash]";vd_help="ادماج مقطع فيديو من نوع (youtube, dailymotion)";_help="";bbcode=new Array();bbtags=new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list][*]','[/list]','[list=1][*]','[/list]','[img]','[/img]','[url]','[/url]','[scroll]','[/scroll]','[fade]','[/fade]','[blur]','[/blur]','[flipv]','[/flipv]','[fliph]','[/fliph]','[updown]','[/updown]','[center]','[/center]','[right]','[/right]','[strike]','[/strike]','[embed-flash(width,height)]','[/embed-flash]');bbtags[40]='[hide]';bbtags[41]='[/hide]';bbtags[42]='[spoiler]';bbtags[43]='[/spoiler]';bbtags[44]='[wow]';bbtags[45]='[/wow]';bbtags[46]='[justify]';bbtags[47]='[/justify]';bbtags[48]='[sub]';bbtags[49]='[/sub]';bbtags[50]='[sup]';bbtags[51]='[/sup]';bbtags[52]='[left]';bbtags[53]='[/left]';bbtags[54]='[table]';bbtags[55]='[/table]';bbtags[56]='[hr]';bbtags[58]='[tr]';bbtags[59]='[/tr]';bbtags[60]='[td]';bbtags[61]='[/td]';var selectId=new Array('px','color','font','other','table_gui','flash','url','img','servimg_upload_gui','video','sel_smilies','dices','wpx','wcolor','wfont','wother','wtable_gui','wflash','wurl','wimg','wservimg_upload_gui','wvideo','wsel_smilies','wdices');imageTag=false;function helpline(help){if(help.length<5){document.getElementById('helpbox').innerHTML=eval(help+"_help")}else{document.getElementById('helpbox').innerHTML=help}}function getarraysize(thearray){for(i=0;i';parent.vB_Editor['text_editor'].insert_text(text,text.length,0)}}}else{text=' '+text+' ';if(parent.document.forms['post'].message.createTextRange&&parent.document.forms['post'].message.caretPos){var caretPos=parent.document.forms['post'].message.caretPos;caretPos.text=caretPos.text.charAt(caretPos.text.length-1)==' '?text+' ':text;parent.document.forms['post'].message.focus()}else{parent.vB_Editor['text_editor'].insert_text(text,text.length,0);parent.document.forms['post'].message.focus()}}}function emoticonw(text){text=' '+text+' ';if(opener.document.forms['post'].message.createTextRange&&opener.document.forms['post'].message.caretPos){var caretPos=opener.document.forms['post'].message.caretPos;caretPos.text=caretPos.text.charAt(caretPos.text.length-1)==' '?text+' ':text;opener.document.forms['post'].message.focus()}else{opener.document.forms['post'].message.value+=text;opener.document.forms['post'].message.focus()}}function constructBBcode(bbcode,args,content){var textarea=document.post.message;var i=0;var tmp_args='';var tmp_content='';if(bbcode=='flash'||bbcode=='img'||(bbcode=='url'&&document.getElementById(content).value!='')){tmp_content+=document.getElementById(content).value}else{tmp_content+=document.getElementById(args[0]).value}if(bbcode=='flash'){if(document.getElementById(args[0]).value>0&&document.getElementById(args[1]).value>0){tmp_args+='('+document.getElementById(args[0]).value+','+document.getElementById(args[1]).value+')'}}else{if(bbcode=='url'&&document.getElementById(args[0]).value!=''){tmp_args+='=';if(document.getElementById(args[0]).value.indexOf('www.')==0){document.getElementById(args[0]).value='http://'+document.getElementById(args[0]).value}}while(i=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(!theSelection){txtarea.value+=bbopen+bbclose;txtarea.focus();return}document.selection.createRange().text=bbopen+theSelection+bbclose;txtarea.focus();return}else if(txtarea.selectionEnd&&(txtarea.selectionEnd-txtarea.selectionStart>0)){mozWrap(txtarea,bbopen,bbclose);return}else{vB_Editor['text_editor'].insert_text(text,text.length,bboffset);txtarea.setSelectionRange(txtarea.value.length-bbclose.length,txtarea.value.length-bbclose.length);txtarea.focus()}storeCaret(txtarea)}function bbstyle(bbnumber){var txtarea=document.post.message;var button=document.getElementById('addbbcode'+bbnumber);if(bbnumber!=-1){var tag=document.getElementById('addbbcode'+bbnumber).tagName}donotinsert=false;theSelection=false;bblast=0;if(bbnumber==-1){while(bbcode[0]){butnumber=arraypop(bbcode)-1;txtarea.value+=bbtags[butnumber+1];var tag=document.getElementById('addbbcode'+butnumber).tagName;if(tag=='INPUT'){buttext=eval('document.post.addbbcode'+butnumber+'.value');eval('document.post.addbbcode'+butnumber+'.value ="'+buttext.substr(0,(buttext.length-1))+'"')}else if(tag=='BUTTON'&&document.getElementById('addbbcode'+butnumber)){document.getElementById('addbbcode'+butnumber).className='button2'}}imageTag=false;txtarea.focus();return}if((clientVer>=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(theSelection){document.selection.createRange().text=bbtags[bbnumber]+theSelection+bbtags[bbnumber+1];txtarea.focus();theSelection='';return}}else if(txtarea.selectionEnd&&(txtarea.selectionEnd-txtarea.selectionStart>0)){mozWrap(txtarea,bbtags[bbnumber],bbtags[bbnumber+1]);return}for(i=0;i '}smilies_content+='';div.innerHTML=smilies_content}}overFlowX=cd['x']+div.offsetWidth-document.body.offsetWidth;cd['x']=overFlowX>0?cd['x']-overFlowX:cd['x'];div.style.left=cd['x']+'px';div.style.top=(cd['y']+h)+'px'}else{div.style.visibility='hidden'}}function mozWrap(txtarea,open,close){var selLength=txtarea.textLength;var selStart=txtarea.selectionStart;var selEnd=txtarea.selectionEnd;if(selEnd==1||selEnd==2)selEnd=selLength;var s1=(txtarea.value).substring(0,selStart);var s2=(txtarea.value).substring(selStart,selEnd);var s3=(txtarea.value).substring(selEnd,selLength);txtarea.value=s1+open+s2+close+s3;return}function storeCaret(textEl){if(textEl.createTextRange)textEl.caretPos=document.selection.createRange().duplicate()}var html=document.getElementsByTagName('html');var document_dir='ltr';for(var i=0;i=window_width){mouse_x-=10}vari.style.left=mouse_x+'px'}function insert_search_menu(session_id){session_input=(session_id?'':'');session_id=(session_id?'?sid='+session_id:'');url_search=window.url_search||'/search';document.write('')}function insert_search_menu_new(session_id){session_input=(session_id?'':'');session_id=(session_id?'?sid='+session_id:'');url_search=window.url_search||'/search';document.write('')}function insert_plus_menu(search_where,session_id,add_favourite){var favourite="";session_id=(session_id?'&sid='+session_id:'');var userLinks="";try{if(_userdata["session_logged_in"]>0&&_userdata["user_id"]>0){if(add_favourite){favourite=search_where.replace(new RegExp("f([0-9]*)(&|&)t=([0-9]*)","g"),'$3');url_favourite=window.url_favourite||('/search?search_id=favouritesearch&add_favourite='+favourite+session_id);favourite='أضف إلى المفضلة '}search_where='&search_where='+search_where;url_newposts=window.url_newposts||('/search?search_id=newposts'+search_where+session_id);url_egosearch=window.url_egosearch||('/search?search_id=egosearch'+search_where+session_id);url_unanswered=window.url_unanswered||('/search?search_id=unanswered'+search_where+session_id);url_watchsearch=window.url_watchsearch||('/search?search_id=watchsearch'+search_where+session_id);userLinks='معاينة المواضيع الجديدة معاينة مُساهماتي معاينة المواضيع بدون مساهمات المواضيع المراقبة'+favourite}}catch(e){userLinks=""}document.write('المزيد!