//<marquee height="0" width="100%" direction="right" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()"><b style="color:#c5c130;">فرا رسيدن ايام فاطميه و شهادت سيده بانوان عالم ، حضرت فاطمه زهرا (س) بر تمام مسلمانان جهان تسليت و تعزيت باد .</b></marquee>


var ie=document.all
var ns6=document.getElementById && !document.all
var m=false;
var x=0, y=0;
var xmouse=0, ymouse=0;
var time;
var dragapproved=false
var win=false;

function initializedrag(e){
	offsetx=ie? event.clientX : e.clientX
	offsety=ie? event.clientY : e.clientY
	if (ie)
		document.getElementById("showimage").style.display=''
	
	tempx=parseInt(document.getElementById("showimage").style.left)
	tempy=parseInt(document.getElementById("showimage").style.top)
	
	dragapproved=true
	document.onmousemove=drag_drop
}

function drag_drop(e){
	if (ie&&dragapproved&&event.button==1){
		height=document.body.clientHeight+document.body.scrollTop-255;
		width=document.body.clientWidth+document.body.scrollLeft-365;
		xpos=tempx+event.clientX-offsetx;
		ypos=tempy+event.clientY-offsety;
		if( xpos>0 && xpos<width && ypos>0 && ypos<height ){
			document.getElementById("showimage").style.left=xpos;
			document.getElementById("showimage").style.top=ypos;
		}
	}else if (ns6&&dragapproved){
		document.getElementById("showimage").style.left=tempx+e.clientX-offsetx
		document.getElementById("showimage").style.top=tempy+e.clientY-offsety
	}
}

function open_win(source){
	win=true;
	if (ie||ns6){
		Obj=document.getElementById? document.getElementById("showimage") : document.all.showimage
		if (Obj.style.visibility=="hidden"){
			Obj.innerHTML='\
<table border=0 bordercolor="#ff00ff" width="479" height="359" id=drag bgcolor=#ffffff cellpadding="0" cellspacing="0">\
	<tr>\
		<td style="cursor:move" onMousedown="initializedrag(event)" onSelectStart="return false" colspan=2 style="border-color:black; border-style:inset; border-width:0px;padding-top:3px;padding-right:3" background='+source+' valign=top bgcolor="#ffffff">\
			<table width="100%" height="100%" border="0" bordercolor="#ff0000" cellpadding="0" cellspacing="0">\
				<tr>\
					<td colspan="0" height=180" align="right" valign="bottom"><img align="right" style="cursor:hand" src=close.gif alt=Close onClick=close_win()><div align="right" style="padding:0 0 0 0;"><b><a href="monasebat/sh-askari90/index.htm"><font size="4" face="Arial" color="white">ويژه نامه</a></b></font></div>\
					</td>\
				</tr>\
			</table>\
		</td>\
	</tr>\
</table>\
'
			if(ie){
				Obj.style.left=document.body.scrollLeft+1
				Obj.style.top=document.body.scrollTop+1
			}
			Obj.style.visibility="visible"
		}else
			Obj.style.visibility="hidden"
	}
}



function open_kids_win(source){
	win=true;
	if (ie||ns6){
		Obj=document.getElementById? document.getElementById("showimage") : document.all.showimage
		if (Obj.style.visibility=="hidden"){
			Obj.innerHTML='\
<table style="position:fixed;" align="left" border=0 bordercolor="#ff00ff" width="500" height="375" id=drag bgcolor=#ffffff cellpadding="0" cellspacing="0">\
	<tr>\
		<td style="cursor:move" onMousedown="initializedrag(event)" onSelectStart="return false" colspan=2 style="border-color:black; border-style:inset; border-width:0px;padding-top:3px;padding-right:3" background='+source+' valign=top bgcolor="#ffffff">\
			<table width="100%" height="100%" border="0" bordercolor="#ff0000" cellpadding="0" cellspacing="0">\
				<tr>\
					<td colspan="5" height="0" align="left">&nbsp;<img style="cursor:hand" src=close.gif alt=Close onClick=close_win()>&nbsp;</td>\
				</tr>\
				<tr>\
					<td colspan="2" align="center">\
					<div align="right">\
						<b><a href="#" target="_blank""><a style="text-decoration:none;margin:2px;display:block;" href="http://www.shiachildren.com"><font size="3" face="Arial" color="#006600;"><img style="border:1px solid;" src="../../image/far/main/dn/sh-ch.gif" border="0"></b></font></a>\
					</div>\
					<span style="font-size:12px;font-weight:bold;color:#0c41a3;">پايگاه (1)<br><br></span>\
					</td>\
					<td colspan="2" align="center">\
					<div align="right">\
						<b><a href="#" target="_blank"><a style="text-decoration:none;margin:2px;display:block;" href="6ejt/kodakan.html"><font size="3" face="Arial" color="#006600;"><img style="border:1px solid;" src="../../image/far/main/dn/al-shia.gif" border="0"></b></font></a>\
					</div>\
					<span style="font-size:12px;font-weight:bold;color:#0c41a3;">پايگاه (2)<br><br></span>\
					</td>\
				</tr>\
			</table>\
		</td>\
	</tr>\
</table>\
'
			if(ie){
				Obj.style.left=document.body.scrollLeft+1
				Obj.style.top=document.body.scrollTop+1
			}
			Obj.style.visibility="visible"
		}else
			Obj.style.visibility="hidden"
	}
}




function close_win(){
	if(win){
		Obj.style.visibility="hidden"
		win=false;
	}
}

function Esc(){
	if( ie && event.keyCode==27 )
		close_win()
}

document.onkeypress=Esc



