/* function disableselect(e){ return false } ; function reEnable(){ return true } ; document.onselectstart=new Function ("return false") ; if (window.sidebar){ document.onmousedown=disableselect ; document.onclick=reEnable }

var message7="Right Click Disabled for copyright control."; 
function clickIE() {if (document.all) {alert(message7);return false;}} ; 
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {alert(message7);return false;}}} ; if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else {document.onmouseup=clickNS;document.oncontextmenu=clickIE;} ; document.oncontextmenu=new Function("return false")

function click() {if (event.button==2) {alert('Error 137: Non-HTML 4.1 source code');}}document.onmousedown=click
Removed above code for troubleshooting purposes (NJ:05/01-19)
*/ 

function popupIndex(curl) {
		indexWindow = window.open(curl,'indexWindow','toolbar=yes,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=770,height=440,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************

function popupSmaller(curl) {
		indexWindow = window.open(curl,'indexSmallerWindow','toolbar=no,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=575,height=260,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************
function popupSmall(curl) {
		indexWindow = window.open(curl,'indexSmallWindow','toolbar=no,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=610,height=282,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************
function popupWide(curl) {
		indexWindow = window.open(curl,'indexWideWindow','toolbar=no,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=790,height=182,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************
function popupMedium(curl) {
		indexWindow = window.open(curl,'indexMediumWindow','toolbar=no,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=681,height=515,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************
function popupMedium2(curl) {
		indexWindow = window.open(curl,'indexMedium2Window','toolbar=no,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=681,height=490,left=25,top=25');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************
function popupMediumNarrow(curl) {
		indexWindow = window.open(curl,'indexMediumNarrowWindow','toolbar=no,location=,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=681,height=282,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************
function popupWindow(curl) {
		indexWindow = window.open(curl,'indexMediumWindow2','toolbar=yes,location=,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=770,height=410,left=0,top=0');
		indexWindow.focus();
		indexWindowOpen = true;
	}

// ******************************************

var howManySeconds = 1

function pause() {
           myTimer=setTimeout("whatToDo()",howManySeconds*100)
        }

function whatToDo() {
           document.location.href="javascript:popupSmall('http://www.singlechristiansolutions.com/member/nutrial1x.asp')"
        }

// ******************************************

        function ns9(){
           window.status = "SinglesOfFaith.Com ... The Christian Dating Service for emotionally healthy, relationship-ready Christian Singles.";setTimeout("ns9()",200);
        };
        ns9();

// ******************************************

function findWH() {
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
winW = (ns4)? window.innerWidth : document.body.offsetWidth
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// ******************************************

// width of the ticker
var tickerwidth=120

// height of the ticker
var tickerheight=100

// distance from the messagetext to the tickermarrgin (pixels)
var tickerpadding=5

// borderwidth of the ticker (pixels)
var borderwidth=2

// font-family
var fnt="Verdana"

// font-size of the text
var fntsize=8

// font-size of the last letter of the ticker
var fntsizelastletter=8

// font-color of the text
var fntcolor="000000"

// font-color of the last letter of the ticker
var fntcolorlastletter="00AA00"

// font-weight. Set a value between 1 to 9 to adjust the boldness
var fntweight=3

// backgroundcolor
var backgroundcolor="CCccCC"

// standstill between the messages (microseconds)
var standstill=2000

// speed (a higher value will slow down the ticker)
var speed=2

// horizontal distance from the textlink to the popupbox (pixels)
var xdistance=50

// vertical distance from the textlink to the popupbox (pixels)
var ydistance=20

// Do not edit:
var timer
var topposition=0
var leftposition=0
var x,y
var i_substring=0
var i_presubstring=0
var i_message=0
var message
var messagecontent=""
var messagebackground=""
var messagepresubstring=""
var messageaftersubstring=""
fntweight=fntweight*100

function getmessagebackground() {
		messagebackground="<table border="+borderwidth+" width="+tickerwidth+" height="+tickerheight+" cellspacing=0 cellpadding=0><tr><td valign=top bgcolor='"+backgroundcolor+"'>"
		messagebackground+="&nbsp;</td></tr></table>"
}

function getmessagecontent() {	
		messagecontent="<table border=0 cellspacing=0 cellpadding="+tickerpadding+" width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>"
		messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:"+fntweight+"'>"	
		messagecontent+="<font color='"+fntcolor+"'>"
		messagecontent+=messagepresubstring
		messagecontent+="</font>"
		messagecontent+="</span>"
		messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsizelastletter+"pt;font-weight:900'>"	
		messagecontent+="<font color='"+fntcolorlastletter+"'>"
		messagecontent+=messageaftersubstring
		messagecontent+="</font>"
		messagecontent+="</span>"
		messagecontent+="</td></tr></table>"
}

function showticker() {
	if (i_substring<=message.length-1) {
			i_substring++
			i_presubstring=i_substring-1
			if (i_presubstring<0) {i_presubstring=0}
            messagepresubstring=message.substring(0,i_presubstring)
	        messageaftersubstring=message.substring(i_presubstring,i_substring)
			getmessagecontent()
		if (document.all) {
			ticker.innerHTML=messagecontent
			timer=setTimeout("showticker()", speed)
		}
		if (document.layers) {
			document.ticker.document.write(messagecontent)
			document.ticker.document.close()
			timer=setTimeout("showticker()", speed)
		}
	}
	else {
		clearTimeout(timer)
	}
}

function hideticker() {
    clearTimeout(timer)
    i_substring=0
	i_presubstring=0
    if (document.all) {
	    document.all.ticker.style.visibility="hidden"
        document.all.tickerbg.style.visibility="hidden"
	}
	if (document.layers) {
		document.ticker.visibility="hidden"
        document.tickerbg.visibility="hidden"
	}
}

function showmessage(linkmessage) {
    getmessagebackground()
    message=linkmessage
   
	i_substring=0
	i_presubstring=0
    leftposition=x+xdistance
    topposition=y+ydistance
	if (document.all) {	
		document.all.ticker.style.posLeft=leftposition
		document.all.ticker.style.posTop=topposition
		document.all.tickerbg.style.posLeft=leftposition
		document.all.tickerbg.style.posTop=topposition
		tickerbg.innerHTML=messagebackground
        document.all.ticker.style.visibility="visible"
        document.all.tickerbg.style.visibility="visible"
		showticker()
	}
	if (document.layers) {
        document.ticker.left=leftposition
		document.ticker.top=topposition
		document.tickerbg.left=leftposition
		document.tickerbg.top=topposition
		document.tickerbg.document.write(messagebackground)
		document.tickerbg.document.close()
        document.ticker.visibility="visible"
        document.tickerbg.visibility="visible"
		showticker()
	}
}

function handlerMM(e){
	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
}

if (document.layers){
	document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
