/*
	Mike's DHTML scroller (By Mike Hall @ Brainjar.com)
	Permission granted to Dynamicdrive.com to include script in archive
	For this and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

/*
	Scroller(x, y, width, height, border, padding)	Creates a new Scroller object positioned at (x,y) with the 
													given width and height. The border and padding values define 
													the size of the border around the scroller and margin 
													between the border and the item text.  
	setColors(fgcolor, bgcolor, bdcolor)  			Sets the default text, background and border colors, respectively, 
													for the scroller. Note that you can insert HTML tags in the item 
													text to mix text colors. The defaults are black, white and 
													black respectively.  
	setFont(face, size)  							Sets the default font face and size for item text. Any values 
													allowed in a <FONT> tag can be used. Note that you can insert 
													HTML tags in the item text to mix fonts. The defaults are 
													"Arial,Helvetica" and 2 respectively.  
	setSpeed(pps) 									Sets the scroll speed in pixels per second. The default is 50.  
	setPause(ms) 									Sets the amount of time the scroller will pause whenever a new 
													item scrolls into view. This pause gives the user time to read 
													the text before it starts moving again. The time is given in 
													milliseconds (1000ms = 1 second). The default is 2000.  
	addItem(str) 									Use this method to create the items for a scroller. The string can 
													contain text and HTML tags so you can use images, links, etc. You 
													can add as many items as you want. Text is wrapped automatically to 
													fit within the scroller but note that if an item exceeds the 
													defined width or height of the scroller, it will be clipped.  
*/
	
var myScroller1 = new Scroller(0, 0, 600, 28, 0, 4);
myScroller1.setColors("#FFFF00", "#0000FF", "#0000FF");
myScroller1.setFont("Arial, Tahoma", 2);
myScroller1.addItem("<b>Thank you for visiting the Aquanorth Diving Centre website!</b>");
myScroller1.addItem("<b>We have some great deals on offer! - check out the <A HREF='specialoffers.html'>save £££'s</a> page</b>");
myScroller1.addItem("<b>Interested in diving holidays in the sun? - have a look at our <A HREF='holidays.html'>holiday</a> page");
myScroller1.addItem("<b>Why not have a look round our shop and classrooms <A HREF='shop.html'>click here.</a>");
myScroller1.addItem("<b>Need a special item of kit <A HREF='pricelist.html'>servicing</a>? - Call us on 0191 266 6626");
myScroller1.addItem("<b>Considering taking up a diving course then  <A HREF='courses.html'>click here</a> to find out more!!!");
myScroller1.addItem("<b>Sign up for our <A HREF='current.html'>newsletter</a> to find out about diving activities in the North East");

function runmikescroll()
{
	var layer;
	var mikex, mikey;
		
	// Locate placeholder layer so we can use it to position the scrollers.
		
	layer = getLayer("placeholder");
	mikex = getPageLeft(layer);
	mikey = getPageTop(layer);
		
	// Create the first scroller and position it.
	myScroller1.create();
	myScroller1.hide();
	myScroller1.moveTo(mikex, mikey);
	myScroller1.setzIndex(100);
	myScroller1.show();
}

