var d=document;
var bkr=true;
function $(v){return(d.getElementById(v));}
function $s(v){return($(v).style);}

function sw(o){$s(o).display='block';}
function hd(o){$s(o).display='none';}
function tgl(o){$s(o).display=($s(o).display=='block')?'none':'block';}

function vv(o){$s(o).visibility='visible';}
function vh(o){$s(o).visibility='hidden';}
function tglv(o){$s(o).visibility=($s(o).visibility=='visible')?'hidden':'visible';}

function $t(o,t){$(o).innerHTML=t;}
function $v(o){return $(o).value;}
function of(tv,obj){if(obj.value==tv)obj.value='';}
function ob(tv,obj){if(obj.value=='')obj.value=tv;}

function h(rw){rw.style.backgroundColor='#FFC';}
function r(rw){rw.style.backgroundColor='';}

function w(u,s,w,h){window.open(u,s,'width='+w+',height='+h+',scrollbars=1');return false;}
function vE(e){return e.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);}
function StartTyping(CharacterPos){if(MsgArray[MsgIndex].charAt(CharacterPos)!=MsgSeperator){MsgBuffer=MsgBuffer+MsgArray[MsgIndex].charAt(CharacterPos);$t('at',MsgBuffer);delay=TypeDelay;}else{delay=NxtMsgDelay;MsgBuffer="";CharacterPos=-1;if(MsgIndex!=MsgArray.length-1){MsgIndex++;}else{MsgIndex=0;}}CharacterPos++;setTimeout("StartTyping('"+CharacterPos+"')",delay);}
function externalLinks(){var hostName=window.location.hostname;var links=d.getElementsByTagName("a");for(var i=0;i<links.length;i++)if(links[i].href.indexOf(hostName)==-1)links[i].setAttribute("target","_blank")}

//≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡	A	J	A	X	≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
function taqim(n){AjxObj=create_ajax_object();AjxGet("/taqim.php","n="+n,ShowResault,"vt",1);return false;}
function linklist(p){
	AjxObj=create_ajax_object();
	for(i=1;i<11;i++)
		$s('b'+i).backgroundColor='#fff';
	$s('b'+p).backgroundColor='#ff9';
	$t("mawaqe","<img vspace=121 src=/i/jx.gif>");
	AjxGet("/link.php","p="+p,ShowLinks,"mawaqe",0);
}
function AjxGet(url,parameters,processReq,rdi,cachebust)
{
	AjxObj.onreadystatechange=processReq;
	if(cachebust)
		AjxObj.open('GET',url+"?"+parameters+"&cachebust="+new Date().getTime(),true);
	else
		AjxObj.open('GET',url+"?"+parameters,true);
	AjxObj.send(null);
}
function create_ajax_object()
{
	var httprequest=false;
	if(window.XMLHttpRequest){httprequest=new XMLHttpRequest();if(httprequest.overrideMimeType)httprequest.overrideMimeType('text/xml')}
	else if(window.ActiveXObject){try{httprequest=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{httprequest=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}}
	return httprequest
}