//pre-load images
var img1 = new Image();
img1.src = 'http://www.quikstage.com/images/features/features1.jpg';
var img2 = new Image();
img2.src = 'http://www.quikstage.com/images/features/features2.jpg';
var img3 = new Image();
img3.src = 'http://www.quikstage.com/images/features/features3.jpg';
var img4 = new Image();
img4.src = 'http://www.quikstage.com/images/features/features4.jpg';
var img5 = new Image();
img5.src = 'http://www.quikstage.com/images/features/features5.jpg';
var img6 = new Image();
img6.src = 'http://www.quikstage.com/images/features/features6.jpg';
var img7 = new Image();
img7.src = 'http://www.quikstage.com/images/features/features7.gif';
var img8 = new Image();
img8.src = 'http://www.quikstage.com/images/features/features8.jpg';
var img9 = new Image();
img9.src = 'http://www.quikstage.com/images/features/features9.jpg';
//END:::pre-load images

function makeNews(c,l,f,i){
	this.copy = c;
	this.link = l;
	this.follow = f;
	this.img = i;
	this.write = writeNews;
}

function writeNews(){
	var str = '';
	str += '<div class="fR"><a class="border_fx" href="' + this.link + '">';
	str += '<img border="0" src="' + this.img.src + '" /></a></div>';
	str += this.copy + '<br>';
	str +=  '<a class="red_link_med" href="' + this.link + '">' + this.follow + '</a>';
	return str;
}

//NEWS array
// ITEM 1 PORTABLE STAGING AND ACCESSORIES
var newsArray = new Array();
newsArray[0] = new makeNews("<div style=\"width:305px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"qs_pstg.php\">BUY FACTORY DIRECT AND SAVE<br />\n" +
		"PORTABLE STAGING AND ACCESSORIES</a><br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"4 x 8 stage decks in-stock ready<br />\n" +
		"for immediate shipping.<br />\n" +
		"Call today for a price quote<br />\n" +
		"4 X 8 Decks Starting at $435.00 w/polyvinyl Plus Legs</b><br />\n" +
		"<a class=\"red_link_med\" href=\"qs_pstg.php\">More details</a> ...</div>\n" +
		"<div style=\"float:right;width:200px;height:auto;\">",'qs_pstg.php',' ',img1).write();

// ITEM 2 QUIK STAGE THROW COVERS
newsArray[1] = new makeNews("<div style=\"width:410px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"throw_covers.php\">QUIK STAGE THROW COVERS - STANDARD AND ECONOMY</a><br />\n" +
		"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"Economical and easy to use, Quik Stage Throw Covers are the perfect solution for reception tables, churches, trade shows or any special event. Available in standard 4 sided or the 3 sided economy version. 36 color choice options.</b><br />\n" +
		"<a class=\"red_link_med\" href=\"throw_covers.php\">More details</a> ...\n" +
"</div>",'throw_covers.php',' ',img2).write();

// ITEM 3 QUIK STAGE CONTOUR COVERS
newsArray[2] = new makeNews("<div style=\"width:510px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"contour.php\">QUIK STAGE CONTOUR COVERS</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"An exciting new contemporary design option for skirting your tables that requires no pinning or clips. Available in 13 colors plus a two tone option. A very affordable option to add a touch of class to your next event.</b><br />\n" +
		"<a class=\"red_link_med\" href=\"contour.php\">More details</a> ...\n" +
"</div>",'contour.php',' ',img3).write();

// ITEM 4 QUIK STAGE DRUM RISERS
newsArray[3] = new makeNews("<div style=\"width:565px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"drum_rise_plat.php\">QUIK STAGE DRUM RISERS</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">Quik Stage Drum Risers are a quick and affordable option for giving your band the professional look you need. Lightweight, easy to set up and very strong, no band should be with out one. Available in many heights and sizes.</b><br />\n" +
	"<br />\n" +
	"<a class=\"red_link_med\" href=\"drum_rise_plat.php\">More details</a> ...\n" +
"</div>",'drum_rise_plat.php',' ',img4).write();

// ITEM 5 QUIK STAGE PERSONAL LOGO TABLE SKIRTING
newsArray[4] = new makeNews("<div style=\"width:435px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"throw_covers.php\">QUIK STAGE PERSONAL LOGO TABLE SKIRTING</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"Give your company, church or school a personal and professional appearance by having your logo imprinted on a table skirt. Surprisingly affordable, you can order only one or for an even better value, order a larger quantity. Available in many sizes and colors. Call Quik Stage for more information on how to get started.</b> <a class=\"red_link_med\" href=\"throw_covers.php\">More details</a> ...\n" +
"</div>",'throw_covers.php',' ',img5).write();

// ITEM 6 QUIK STAGE CONTEMPORARY TRUSS LECTERNS
newsArray[5] = new makeNews("<div style=\"width:630px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"lect_count.php\">QUIK STAGE CONTEMPORARY TRUSS LECTERNS</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"Quik Stage contemporary truss lecterns will add a whole new look to your church, school or corporate event at a very affordable price. Available in 3 designs, black or silver and available for immediate shipping factory direct.</b><br />\n" +
		"<br />\n" +
		"<a class=\"red_link_med\" href=\"lect_count.php\">More details</a> ...\n" +
"</div>",'lect_count.php',' ',img6).write();

// ITEM 7 QUIK STAGE TRUSSING
newsArray[6] = new makeNews("<div style=\"width:560px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"about_milo.php\">QUIK STAGE TRUSSING</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"Quik Stage Trussing with Quick Connect is the perfect way to give your stage or special event a professional look at an affordable price. Available in many sizes and designs, our trussing requires no tools for set up and is in-stock for immediate shipping. Let us help you design your system with our CAD service.</b><br />\n" +
		"<a class=\"red_link_med\" href=\"about_milo.php\">More details</a> ...\n" +
"</div>",'about_milo.php',' ',img7).write();

// ITEM 8 QUIK STAGE PIPE &amp; DRAPE
newsArray[7] = new makeNews("<div style=\"width:560px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"pipe_drape.php\">QUIK STAGE PIPE &amp; DRAPE</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"Quik Stage Pipe & Drape is the perfect solution for creating walls, booths or back drops at a price everyone can afford. Perfect for churches, schools, trade shows or any special event that needs temporary walls. In-stock and ready for immediate shipping. Let a Quik Stage sales professional help with your layout design.</b><br />\n" +
		"<a class=\"red_link_med\" href=\"pipe_drape.php\">More details</a> ...\n" +
"</div>",'pipe_drape.php',' ',img8).write();

// ITEM 9 QUIK STAGE SKIRTING CLIPS
newsArray[8] = new makeNews("<div style=\"width:535px;height:auto;\" class=\"fL\">\n" +
	"<a class=\"header_title3 hand_pointer\" href=\"tble_clips.php\">QUIK STAGE SKIRTING CLIPS</a><br />\n" +
	"<br />\n" +
	"<b class=\"bFs11Black\">\n" +
		"Attach your table skirts with ease with Quik Stage Skirting Clips. Available with Velcro or Snap Clips, we stock a large quantity in many sizes to fit most tables including Life Time Tables. If you don’t know exactly what clip you need, just call us and we can help.</b><br />\n" +
		"<br />\n" +
		"<a class=\"red_link_med\" href=\"tble_clips.php\">More details</a> ...\n" +
"</div>",'tble_clips.php',' ',img9).write();
//END:::NEWS array

var nIndex = 0;
var timerID = null;

function rotateNews(){
	var len = newsArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('stories').innerHTML = newsArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateNews()',5000); //10000 -- length of time that featured items will rotate
}

function pauseNews() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playNews() {
	if (timerID == null) {
		timerID = setTimeout('rotateNews()', 1000);
	}
}
