	/* advertisers.js
	** Modifications by Larry Sacherich http://dnl-Webs.com/
	** Original by http://www.hypergurl.com/
	*/

	// Set Cookie Expiration Date 12 Months Ahead
	var expiration = new Date();
	expiration.setTime(expiration.getTime() + 31104000000)

	// Cookie Value
	var ScrollerTop=0

	// Scrollers Width
	var scrollerwidth="120px";

	// Scroller Maximum Height
	var scrollerheight="255px"  // non-scrolling ads at 340px = about 4, at 255px = about 3

	// Scroller Speed (larger is faster 1-10)
	var scrollerspeed=1

	// Mouseover pause (1=yes 0=no)
	var pauseit=1

	// Pause Before Starting/Continuing Scroll (Seconds)
	var delayValue=2

// Change Nothing Below! ///////////////////////////////////////////////////////////////////////////////////

	function delayStart(){
		if (window.timer) clearInterval(timer)
		lefttime=setInterval("scrollscroller()",32);	// Speed (Bigger is Slower)
	}

	scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-1)	//slow speed down by 1 for NS
	var copyspeed=scrollerspeed
	var iedom=document.all||document.getElementById
	var actualheight=0
	var cross_scroller, ns_scroller
	var pausespeed=(pauseit==0)? copyspeed: 0

	//onload = function()
	function populate()
	{

	if (document.cookie.length > 0) ScrollerTop=getAdCookie("ScrollerTop");

	if (iedom){
	cross_scroller=document.getElementById? document.getElementById("scrollerDiv"): document.all.scrollerDiv
	//cross_scroller.style.top=parseInt(scrollerheight)+"px"
	cross_scroller.style.top=(ScrollerTop==null? parseInt(scrollerheight)+"px": parseInt(ScrollerTop)+"px")
	//cross_scroller.style.top=(ScrollerTop==null? parseInt(scrollerheight)+"px": ScrollerTop+"px")
	cross_scroller.innerHTML=scrollercontent
	actualheight=cross_scroller.offsetHeight

	// Make It Look Like Non-Stop Scrolling (DOES NOT CHANGE actualheight)
	if (actualheight > parseInt(scrollerheight))
		cross_scroller.innerHTML=scrollercontent+scrollercontent
	}
	else if (document.layers){
	ns_scroller=document.ns_scroller.document.ns_scroller2
	//ns_scroller.top=parseInt(scrollerheight)
	ns_scroller.top=(ScrollerTop==null? parseInt(scrollerheight): ScrollerTop)
	ns_scroller.document.write(scrollercontent)
	ns_scroller.document.close()
	actualheight=ns_scroller.document.height
	}

	// Determine If There Is Enough Content To Scroll
	if (actualheight > parseInt(scrollerheight)) {
		scrollerheight=1								// Forces It To Start At Top Of Div
		setTimeout("delayStart()", delayValue*1000)
//		setInterval("void()", 5000)
//		lefttime=setInterval("scrollscroller()",32);	// Speed (Bigger is Slower)
	}
	else {
		// Not Enough To Scroll
		outer_div=document.getElementById? document.getElementById("outerDiv"): document.all.outerDiv
		wastedspace=parseInt(scrollerheight)-actualheight+8
		outer_div.style.height=parseInt(scrollerheight)-wastedspace+"px"
		scrollerheight=1								// Forces It To Start At Top Of Div
		cross_scroller.style.top=parseInt(scrollerheight)+"px"
		scrollscroller()
	}
	}
// 		window.onload=populate; // DO NOT USE - CAUSES PROBLEMS WITH: window.onload = initScrollerObjs;


	function scrollscroller(){
	if (iedom) {
	if (parseInt(cross_scroller.style.top)>(actualheight*(-1))) {
		cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
	}else{
		cross_scroller.style.top=parseInt(scrollerheight)+"px"
	}
	ScrollerTop=cross_scroller.style.top
	}
	else if (document.layers){
	if (ns_scroller.top>(actualheight*(-1)))
	ns_scroller.top-=copyspeed
	else ns_scroller.top=parseInt(scrollerheight)
	ScrollerTop=ns_scroller.top
	}
	}

	onunload = function() { setAdCookie("ScrollerTop", ScrollerTop, expiration, "/"); }

	if (iedom||document.layers){
	with (document){
	if (iedom){
	// FOR DEBUGGING, REMOVE: overflow:hidden;  ADD: border:1px solid silver;
	// USE ONLY WITH TABLES: margin-top:10px;margin-bottom:-10px;
	write('<center><div id="outerDiv" style="text-align:center;position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed">')
	write('<div id="scrollerDiv" style="position:absolute;left:0px;top:0px;width:100%;">')
	write('</div></div></center>')
	}
	else if (document.layers){
	write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' name="ns_scroller">')
	write('<layer name="ns_scroller2" width='+scrollerwidth+' height='+scrollerheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"></layer>')
	write('</ilayer>')
	}
	}
	}