﻿/* Text and/or Image Crawler Script ©2009 John Davenport Scheuer
   as first seen in http://www.dynamicdrive.com/forums/
   username: jscheuer1 - This Notice Must Remain for Legal Use
   */
   
// Additional Functions
function sleep(ms){
	var zeit 	  = (new Date()).getTime();
	var stoppZeit = zeit+ms;
	while((new Date()).getTime() < stoppZeit){};
} 

function BtScroll(Index, Direction) {
	marquee = marqueeInit.ar[Index];
	marquee.direction 	= Direction;
	marquee.inc 		= 1;
	marquee.sinc 		= 1;
	marquee.moveatleast = 1;
	marquee.stopped 	= false;
}

function BtStopScroll(Index) {
	marquee = marqueeInit.ar[Index];
	marquee.stopped 		= true;
	marquee.moveatleast 	= 0;
}

function LoadMarquees() {
	marqueeInit({
				uniqueid: 'squads',
				style: {
					'width': '223px',
					'height': '117px'
				},
				inc: 10, //speed - pixel increment for each iteration of this marquee's movement
				mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
				moveatleast: 1,
				neutral: 150,
				stopped: true
				});
	marqueeInit.ar[0].moveatleast = 0;	
	marqueeInit({
				uniqueid: 'advertmarq',
				style: {
					'width': '649px',
					'height': '85px'
				},
				inc: 10, //speed - pixel increment for each iteration of this marquee's movement
				mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
				moveatleast: 1,
				neutral: 150,
				noAddedSpace: true
				});	
	marqueeInit({
				uniqueid: 'galleries',
				style: {
					'width': '582px',
					'height': '150px'
				},
				inc: 10, //speed - pixel increment for each iteration of this marquee's movement
				mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
				moveatleast: 1,
				neutral: 150,
				noAddedSpace: true,
				stopped: true
				});
	marqueeInit.ar[2].moveatleast = 0;	
}
