<!--
var moveable=false;
var hover='#ff0033',normal='#0086C6';//color;#009EEA
var index=10000;//z-index;
var     leavenIE = 0;
var		leavenFF = 0;

var ns=(document.layers);
var ns6=(document.getElementById&&!document.all);
var ie=(document.all);
if (ns||ns6){
	window.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
	document.releaseEvents(Event.MOUSEMOVE);
}
if (ns){window.onmousedown=startDrag;window.onmouseup=stopDrag;}
if (ie||document.getElementById){document.onmousedown=startDrag;document.onmouseup=stopDrag;}

//Start Drag;
function startDrag(e)
{
if (ns){
     window.onmousemove=drag;
	 z=e.target.parentNode;
	 y=e.layerY;
	 x=e.layerX;
	 z.zIndex=index++;
	 moveable = true; 
}
if (ie && window.event.srcElement.parentElement){
	 document.onmousemove=drag;
	 z=window.event.srcElement.parentElement; 
	 y=window.event.offsetY;
	 x=window.event.offsetX;
	 z.style.zIndex=index++;
	 moveable = true;
}
if (ns6){
	 document.onmousemove=drag;
	 z=e.target.parentNode.style;
	 x=e.clientX - parseInt(z.left);
	 y=e.clientY - parseInt(z.top);
	 z.zIndex=index++;
	 moveable = true;
}
return false;
}
function drag(e)
{
if(moveable){
	if (ns && z){z.left=e.pageX-x;z.top=e.pageY-y;}
	if (ns6 && z){z.top=parseInt(e.clientY)-y;z.left=parseInt(e.clientX)-x}
	if (ie && z){z.style.posLeft=window.event.clientX-x;z.style.posTop=window.event.clientY-y}
	return false;
}
}
//Stop Drag;
function stopDrag(e)
{
if(moveable){
	if (ie||ns6)document.onmousemove=null;
	if (ns)window.onmousemove=null;
	z=null;
	moveable = false;
}
}
//Get Focus;
function getFocus(obj)
{
	if(obj.style.zIndex!=index)
	{
		index = index + 2;
		var idx = index;
		obj.style.zIndex=idx;
		//obj.nextSibling.style.zIndex=idx-1;
	}
}
//Minimize;
function min(obj)
{
	var win = obj.parentNode.parentNode;
	var tit = obj.parentNode;
	var msg = tit.nextSibling;
	var flg = msg.style.display=="none";
	if(flg)
	{
		win.style.height  = parseInt(msg.style.height) + parseInt(tit.style.height) + 2*3;
		msg.style.display = "block";
	}else{
		win.style.height  = parseInt(tit.style.height) + 2*2;
		msg.style.display = "none";
	}
}
//Close;
function cls(obj)
{
	//document.bgColor=0x009EEA; 

	//return close_messagebox();
	var win = obj.parentNode.parentNode;
	win.style.visibility = "hidden";
	//window.location.href='index1.php';
}

function close_messagebox()
{
		u = document.getElementById('xMsg1').style;	
		//alert(leavenFF+" "+leavenIE);
		//alert(leavenIE);
		//alert(leavenFF);
		if (u && (ns||ns6)){
				
			u.opacity  = leavenFF;
			leavenFF-=0.01;
			if(leavenFF < 0){
			leavenFF = 0;
			return;
			}
			
		}
		else if (ie && u){
				
			u.filter  = 'alpha(opacity='+leavenIE+')';
			leavenIE--;
			if(leavenIE < 0){
			leavenIE = 0;
			return;
			}
		}
		
		setTimeout("close_messagebox();", 5);
}

//Initialization;
function build()
{
var str = ""
+ "<div id=xMsg" + this.id + " "
+ "style='z-index:10000;"
+ "z-index:" + this.zIndex + ";"
+ "width:" + this.width + ";"
+ "height:" + this.height + ";"
+ "left:" + this.left + ";"
+ "top:" + this.top + ";"
+ "background-color:" + normal + ";"
+ "color:" + normal + ";"
+ "font-size:10px;"
+ "font-family:Verdana;"
+ "position:absolute;"
+ "cursor:default;"
+ "filter:alpha(opacity=0);"
+ "opacity:0.5;"
+ "border:2px solid " + normal + ";"
+ "' "
+ "onmousedown='getFocus(this)'>"
+ "<div "
+ "style='"
+ "background-color:" + normal + ";"
+ "width:" + (this.width-2*2) + ";"
+ "height:20;"
+ "cursor:move;"
+ "color:white;text-align:left;"
+ "' "
+ "ondblclick='min(this.childNodes[1])'"
+ ">"
+ "<label style='float:left;'>" + this.title + "</label>"
+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style='width:12;cursor:pointer;border-width:0px;color:white;' onclick='min(this)'><img src='images/min.gif'/></font>"
+ "<font style='width:12;cursor:pointer;border-width:0px;color:white;' onclick='cls(this)'><img src='images/close.gif'/></font>"


+ "</div>"
+ "<div style='"
+ "width:" + (this.width-5) + ";"
+ "height:" + (this.height-20-5) + ";"
+ "background-color:#49B3E8;"
+ "line-height:14px;"
+ "word-break:break-all;"
+ "padding:3px;"
+ "'>" + this.message + "</div>"
+ "</div>";
document.body.innerHTML += str;

}

//Gradually Light-coloured;
function show_messagebox()
{
		u = document.getElementById('xMsg1').style;
		if (ns && u){
			u.opacity  = leavenFF;
			leavenFF+=0.01;
		}
		if (ns6 && u){
			u.opacity = leavenFF;
			leavenFF+=0.01;
		}
		if (ie && u){
			u.filter  = 'alpha(opacity='+leavenIE+')';
			leavenIE+=1;
		}
		

		if(leavenIE > 100){
			leavenIE = 100;
			return;
		}
		if(leavenFF > 1){
			leavenFF = 1;
			return;
		}
		setTimeout("show_messagebox();", 5);
		//if(parseInt(z.left)>160){window.clearTimeout(gotomover);}
}



//Create Object;
function xWin(id,w,h,tit,msg)
{
	index = index+2;
	this.id      = id;
	this.width   = w;
	this.height  = h;
	
	//this.top     = parseInt((document.body.clientHeight-h)/2+(document.body.clientHeight)*0.4); 
  //this.left	   = parseInt((document.body.clientWidth-w)/2); 
	//this.top     = parseInt((window.screen.height-h)/2+(768/(window.screen.height))*100); 
  this.left	 		 =0; 
  this.top       =0;
	
	this.zIndex  = index;
	this.title   = tit;
	this.message = msg;
	this.obj     = null;
	this.build   = build;
	this.build();
}
function initialize()
{
var a = new xWin("1",345,280,"<span class='STYLE9'>Wait...</span>","<table width=340 style='border:0px #cccccc solid'><tr><td colspan=2 align='left' valign='top' style='font-size:12' color='#0000ff'><span class='STYLE1'>&nbsp;&nbsp;&nbsp;&nbsp;Your prayer could be the most important gift that  someone<br> receives today. In just seconds, <br> the power of prayer can be part of your daily life.</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='signup.php' class='black' target='_blank' align='center'>Interested?  Here's how...</a> <br><br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='signup.php' target='_blank' class='blue1'>Sign Up Now</a></b><br><br></td></tr></table>");
show_messagebox();

}
initialize();
//setTimeout("initialize()",15000);
 
