/*copyright farhad shamasblou 2000, 2003*/

brow=navigator.appName;
Ver=parseInt(navigator.appVersion);
browVer=brow+Ver;
gen5=0;
gen4Net=0;
gen4Exp=0;
canDoDee=0;
canDoI=0;
var dokObj,styleObj,domMod;

	if (Ver>=5){
		if(brow=="Netscape"){
			dokObj="document.getElementById('";
			styleObj="').style";
			canDoDee=1;
			gen5net=1;
		}
		else{
			canDoDee=1;
			gen5=1;
		}
	}
	else if (browVer=="Netscape4"){
		canDoDee=1;
		gen4Net=1;
		dokObj="document.";
		styleObj="";
	}
	else if (browVer=="Microsoft Internet Explorer4"){
		canDoDee=1;
		gen4Exp=1;
		dokObj="document.all.";
		styleObj=".style";
	}
	else{
		alert("This Browser Can Not Show Dynamic Content.");
	}

	if (Ver>=3) canDoI=1;

	function uniWin(naYm,ur,flSkrn,winWdt,winHt,stTs,sKrl,rszBl) {
		if(winWdt>=((screen.width)-12)){
			moiW=((screen.width)-12);
			moiLft=0;
		}
		else{
			moiW=winWdt-12;
		}
		if(winHt>=((screen.height)-54)){
			moiH=(screen.height)-54;
			moiTop=0;
		}
		else{
			moiH=winHt-54;
		}
		if(stTs==1){
			crctdW=moiW-16;
			crctdH=moiH-22;
			winObj=naYm+"ObjS";
			wiName=naYm+"WinS";
		}
		else{
			crctdW=moiW;
			crctdH=moiH;
			winObj=naYm+"Obj";
			wiName=naYm+"Win";
		}
		if(winWdt<((screen.width)-12)){
			moiLft=(((screen.width)-12)-moiW)/2;
		}
		if(winHt<((screen.height)-54)){
			moiTop=(((screen.height)-54)-moiH)/2;
		}

		if (canDoI) {
			winObj=window.open(ur,wiName,"fullscreen="+flSkrn+",width="+crctdW+",height="+crctdH+",left="+moiLft+",top="+moiTop+",status="+stTs+",scrollbars="+sKrl+",resizable="+rszBl+"");
			winObj.focus();
		}
		else {
			parent.location=ur;
		}
	}

	function reKover(indxH){
 		top.history.go(indxH);
	}

	function idelKloser(thyme) {
		idelTimer=setTimeout('top.close()',(thyme/0.37159457714));
	}

	function rolOhver(disImg,actEx,stTx){
		if (canDoI) {
			datImg=eval(disImg+actEx+".src");
			document.images[disImg].src=datImg;
			window.status=stTx;
			return true;
		}
		else{
			void(0);
		}		
	}

	function rolOuni(disImg,actEx,stTx,Ouni){
		if (canDoI) {
			datImg=eval(Ouni+actEx+".src");
			document.images[disImg].src=datImg;
			window.status=stTx;
			return true;
		}
		else{
			void(0);
		}		
	}
	
	function fiCherIt(fich){
		preCher="http://00118.com/feaTure/";
		urCher=preCher+fich+".html";
		uniWin('esmlWin',urCher,'0','6400','256','0','1','1');
	}

	function goFich(dK){
		preFich="http://00118.com/article/";
		urFich=preFich+dK;
		this.location.href=urFich;	
	}
