marqueeLayer_top=281;
marqueeLayer_left=577;
visible_marqueeheight=98;
marqueeLayer_width=160;
scrollerspeed=80;
function preLoad() {
	
	marqueeLyr= eval(doc + '["marqueeLayer"]' + sty);
	marqueeLyr.left = marqueeLayer_left;
	marqueeLyr.top = marqueeLayer_top;
	marqueeLyr.visibility = 'visible';
	marqueeLayer_height=clipper('marqueeLayer');
	
	scroller(1, 'marqueeLayer');
}
	
var scroll_direction;
var text_height;

var top_clip = 0;
var bottom_clip = visible_marqueeheight;
var layer_upperlimit = marqueeLayer_top;

var maxHeightofText;

var layer_to_scroll;
//This function resets the clip values so that when the option is rolled over, 
//the text always starts at the top.  
function init_scroller(layer_to_scroll) {
   top_clip = 0;
   bottom_clip = visible_marqueeheight;
   layer_upperlimit = marqueeLayer_top;
}
function scroller(speeder,layerName){
scrollspeed=speeder;
if (!scrollspeed) {
	scrollspeed =1;
	}
	scroll_direction = 'down';
	down_scroll = setInterval('scroll_down()', scrollerspeed);
if (!layerName){
	layer_to_scroll = 'marqueeLayer';
	}
	else{
	layer_to_scroll = layerName;
	}
	marqueeLyr.visibility = 'visible';
}

function scroll_down(){
if (bottom_clip <= marqueeLayer_height+visible_marqueeheight){
	top_clip = top_clip + scrollspeed;
	bottom_clip= bottom_clip + scrollspeed;
	layer_upperlimit= layer_upperlimit - scrollspeed;
   if (is.ie4){
		document.all[layer_to_scroll].style.clip = 'rect(' + top_clip + ',' + marqueeLayer_width + ',' + bottom_clip + ',0)';
		document.all[layer_to_scroll].style.top = layer_upperlimit + 'px';
		}
	if (is.ns4){
		document.layers[layer_to_scroll].clip.top = top_clip;
		document.layers[layer_to_scroll].clip.right = marqueeLayer_width;
		document.layers[layer_to_scroll].clip.bottom = bottom_clip;
		document.layers[layer_to_scroll].clip.left = 0;
		document.layers[layer_to_scroll].top = layer_upperlimit;
		}
	}
	else{
	init_scroller('marqueeLayer');
	}
}

function clipper(which_section) {
	if (is.ie4){
		text_height = eval(doc + '.' + which_section + '.offsetHeight');
		document.all[which_section].style.clip = 'rect(' + top_clip + ',' + marqueeLayer_width + ',' + bottom_clip + ',0)';
		document.all[which_section].style.top = layer_upperlimit + 'px';}
		if (is.ns4){
			text_height = eval(doc + '.' + which_section +'.clip.height');
			document.layers[which_section].clip.top = top_clip;
			document.layers[which_section].clip.right = marqueeLayer_width;
			document.layers[which_section].clip.bottom = bottom_clip;
			document.layers[which_section].clip.left = 0;
			document.layers[which_section].top = layer_upperlimit;
  			}
	
		return text_height;
		
}

