//***********time
var timerID = null
	var timerRunning = false
	function stopTimeKeep()
	{
	if(timerRunning)
		clearTimeout(timerID) 
	timerRunning = false
	}
	function startTimeKeep(en)
	{
	
	stopTimeKeep() 
	showtime(en) 
	}
	function showtime(en)
	{
	var now = new Date()
	var hours = now.getHours()
	var minutes = now.getMinutes()
	var seconds = now.getSeconds()
	var timeValue = "" + ((hours > 12) ? hours - 12 : hours) 
	timeValue += ((minutes < 10) ? ":0" : ":") + minutes
	timeValue += ((seconds < 10) ? ":0" : ":") + seconds 
	timeValue += "&nbsp;&nbsp;";
	if(en == '1')
		timeValue += (hours >= 12) ? "PM" : "AM"
	else
	timeValue += (hours >= 12) ? "&nbsp;&#1576;&#1593;&#1583; &#1575;&#1586; &#1592;&#1607;&#1585;" : "&nbsp;&#1602;&#1576;&#1604; &#1575;&#1586; &#1592;&#1607;&#1585;"
	document.all.pTime.innerHTML= '<p style=\"font-size: 12px; font-family: Tahoma; color=white\" >'+timeValue+'</p>'
	if(en == '1')
		timerID = setTimeout("showtime(1)",1000)
	else
		timerID = setTimeout("showtime(0)",1000)
	timerRunning = true 
	}	  
	function showDate()
	{
		var now = new Date()
	    var day = now.toDateString()
	    
		document.all.pDate.innerHTML= '<span style=\"font-size: 12px; font-family: Tahoma; color=white\" >'+day+'</span>'
	}
//end time
//**********************************************************************************
//global function
function onImageOver(img)
{
	
	var path;
	path = removeExt(img.src,".gif");
	path += "_o.gif";
	img.src=path;
	
}
function onImageOut(img)
{
	var path;
	path = removeExt(img.src,"_o.gif");
	path += ".gif";
	img.src=path;
}
function removeExt(str,ext)
{
	return str.substring(0,str.indexOf(ext));
}
function winOpen(sPath,w,h)
{
	window.open(sPath,null,"height=h,width=s,status=yes,toolbar=no,menubar=no,location=no");
}
//end global function
function applyFilter(filter)
{
	if((navigator.appVersion.indexOf("MSIE 5.5")!=-1||navigator.appVersion.indexOf("MSIE 6")!=-1||navigator.appVersion.indexOf("MSIE 7")!=-1)&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)
	for(var i=1;i<=s_ct;i++)
			document.all["s_m"+i].style.filter=filter;
	else alert("These filter effects are only available to IE5.5+ users on Windows!")
}
