/*
This code is from Dynamic Web Coding
at http://www.dyn-web.com/
Copyright 2001-3 by Sharon Paine
See Terms of Use at http://www.dyn-web.com/bus/terms.html
Permission granted to use this code
as long as this entire notice is included.
*/

// resize fix for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

function initScrollerObjs(content) {
// Note: be sure to set width/height large enough to accommodate your items
  // arguments: left, top, width, height, alignment of content ("left" or "center"),	
    setScroller();

    int_left   = 0;
    int_top    = 0;
    //int_width  = 180;
    int_width  = 480;
    int_height = 270;

	scroller1 = new scrollerObj(int_left,int_top,int_width,int_height,"left","news");

	// set font specs (family, size, color)
  // other options - font-weight, line-height, etc. can be included with styles
	scroller1.setFont('verdana,helvetica,arial,sans-serif','11px','#333366');

	scroller1.setTiming(1000,80,2);	// arg's: pause,frequency,inc

	// messages for scroller (content, optional url)
	//scroller1.addItem(content);

       for(i=0;i<content.length;i++)
       {
	 scroller1.addItem(content[i]);

       }
       scroller1.create();

       setMouseEvents(); // set up pause/restart onmouseover/out
}

function setScroller()
{     	   	        
 if(document.layers)
   {	
	 document.layers["newsdiv"].position = 'relative';
	 document.layers["newsdiv"].visibility = 'visible';	
	 document.layers["newsdiv"].top = 10;
   }
  else if((document.getElementById) && (navigator.appName == "Netscape"))
   {	                
	document.getElementById("newsdiv").style.position  = 'relative';
	document.getElementById("newsdiv").style.visibility = 'visible';
	document.getElementById("newsdiv").style.top = 10;
   }
    else
   {    
	newsdiv.style.position = 'relative';
	newsdiv.style.visibility = 'visible';
	newsdiv.style.top = 10;
   }

 
}

