// <script language="Javascript">

window.onerror = handleErrors
function handleErrors(){return true}

var turl = document.URL
var jv = "True"	
if (navigator.javaEnabled() < 1) {jv = "False"}
var pgname = window.location.pathname;
pgname = pgname.substring(pgname.lastIndexOf('/') + 1);
var rf = document.referrer
if (turl.indexOf("?ref=")!=-1)	
	rf = turl.substring(turl.lastIndexOf("?ref=")+5,turl.length)
document.write( "<script language=\"JavaScript\" src=\"/cgi-local/Functions/NewUser.asp?ref="+ rf +"&res="+ window.screen.width + "x" + window.screen.height +"&cl="+ window.screen.colorDepth +"&jv="+ jv +"&pg="+ pgname +"\"><\/script>" )

/*
Pausing updown message scroller- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
Terms Of Use, visit http://www.dynamicdrive.com
*/

//configure the below five variables to change the style of the scroller
var scrollerwidth=160
var scrollerheight=71
var scrollerbgcolor=''
//set below to '' if you don't wish to use a background image
var scrollerbackground=''
var stopslide = 0
var block=false
var blockpanel=false
imgind=0

///////Do not edit pass this line///////////////////////

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
//var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById

if (typeof messages == 'object'){	
	if (messages.length>2)
		i=2
	else
		i=0
}

function move1(whichlayer){
	tlayer=eval(whichlayer)
	if (stopslide == 0) {
		if (tlayer.top>0&&tlayer.top<=5){
			tlayer.top=0
			setTimeout("move1(tlayer)",3000)
			setTimeout("move2(document.main.document.second)",3000)
			return
		}
		if (tlayer.top>=tlayer.document.height*-1){
			tlayer.top-=5
			setTimeout("move1(tlayer)",50)
		}else{
			tlayer.top=scrollerheight
			tlayer.document.write(messages[i])
			tlayer.document.close()
			if (i==messages.length-1)
				i=0
			else
				i++
		}
	}else{
		setTimeout("move1(tlayer)",1000)
	}
}

function move2(whichlayer){
	tlayer2=eval(whichlayer)
	if (stopslide == 0) {
		if (tlayer2.top>0&&tlayer2.top<=5){
			tlayer2.top=0
			setTimeout("move2(tlayer2)",3000)
			setTimeout("move1(document.main.document.first)",3000)
			return
		}
		if (tlayer2.top>=tlayer2.document.height*-1){
			tlayer2.top-=5
			setTimeout("move2(tlayer2)",50)
		}else{
			tlayer2.top=scrollerheight
			tlayer2.document.write(messages[i])
			tlayer2.document.close()
			if (i==messages.length-1)
				i=0
			else
				i++
		}
	}else{
		setTimeout("move2(tlayer2)",1000)
	}
}

function move3(whichdiv){
	tdiv=eval(whichdiv)
	idiv=document.getElementById('ImageSubPanel')
	if (stopslide == 0) {
		if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){	
			tdiv.style.top=0
			setTimeout("move3(tdiv)",5000)
			setTimeout("move4(second2_obj)",5000)
			return
		}
		if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
			tdiv.style.top=parseInt(tdiv.style.top)-5
			setTimeout("move3(tdiv)",20)
		}else{
			tdiv.style.top=scrollerheight		
			tdiv.innerHTML=messages[i]				
			idiv.innerHTML="&nbsp;&nbsp;<img src=\""+ adimages[imgind].src +"\">"
			if (adimages[imgind].src.indexOf("white.gif")!=-1) 
				blockpanel=true
			else
				blockpanel=false
			imgind++
			if (i==messages.length-1)			
				i=0
			else
				i++
			if (imgind>=messages.length) imgind=0
		}
	}else{
		setTimeout("move3(tdiv)",500)
	}
}

function move4(whichdiv){
	tdiv2=eval(whichdiv)
	idiv=document.getElementById('ImageSubPanel')
	if (stopslide == 0) {
		if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
			tdiv2.style.top=0
			setTimeout("move4(tdiv2)",5000)
			setTimeout("move3(first2_obj)",5000)
			return
		}
		if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
			tdiv2.style.top=parseInt(tdiv2.style.top)-5
			setTimeout("move4(second2_obj)",20)
		}else{
			tdiv2.style.top=scrollerheight		
			tdiv2.innerHTML=messages[i]				
			idiv.innerHTML="&nbsp;&nbsp;<img src=\""+ adimages[imgind].src +"\">"					
			if (adimages[imgind].src.indexOf("white.gif")!=-1) 
				blockpanel=true
			else
				blockpanel=false
			imgind++
			if (i==messages.length-1)			
				i=0
			else
				i++			
			if (imgind>=messages.length) imgind=0			
		}
	}else{
		setTimeout("move4(tdiv2)",500)
	}
}

function startscroll(){
	if (messages.length>0) {
		idiv=document.getElementById('ImageSubPanel')
		if (ie||dom){
			first2_obj=ie? first2 : document.getElementById("first2")
			second2_obj=ie? second2 : document.getElementById("second2")
			move3(first2_obj)
			second2_obj.style.top=scrollerheight
			second2_obj.style.visibility='visible'
			if (adimages[1]!=null) { 
				idiv.innerHTML="&nbsp;&nbsp;<img src=\""+ adimages[imgind].src +"\">" 
				imgind++
			}
		}	
	}else{
		block=true
	}
}

function ShowImagePanel(){
if (!block && !blockpanel) document.getElementById("ImagePanel").style.visibility='visible'
}

function HideImagePanel(){
if (!block && !blockpanel) document.getElementById("ImagePanel").style.visibility='hidden'
}

function PopNews(nurl){	
	win=window.open(nurl,"win","menubar=no,toolbar=no,links=no,location=no,personalbar=no,resizable=no,scrollbars=yes,width=450,height=440");
	//win.moveTo(100,50);
	win.focus();	
}

function pop(url,name,wid,hgt,args){
var p = window.open(url,name,"width="+wid+",height="+hgt+args)
p.focus()
}

