/***********************************************
* Layer Rotate Script
* Created on 11-28-06 by Keira Johnson
* Last Updated: 4-24-08
***********************************************/
var timer = 0;
var layer_array = new Array();

layer_array[0]='<div id="layer_left">'+
					'<a href="bookstores.cfm"><img src="images/tis_logo.gif" width="50" height="81" border="0" alt="T.I.S. College Bookstore" /></a>'+
				'</div>'+
				'<div id="layer_center">'+
					'<div class="layer_title">T.I.S. College Bookstore</div>'+
					'Are you looking for inexpensive college textbooks? We have the largest collection '+
					'of used college textbooks at a discount price you can\'t beat anywhere else!'+
				'</div>'+
				'<div id="layer_right">'+
					'<div style="padding: 9px 4px 0px 0px; width: 200px; text-align: center;">'+
						'<a href="http://www.tisbookiu.com/" target="_blank"><img src="images/iu_logo.jpg" width="38" height="48" border="0" alt="T.I.S. College Bookstore Bloomington" /></a>'+
					'</div>'+
					'<div style="padding-left: 20px; width: 35px; height: 55px; float: left;"><a href="http://www.tisbookbsu.com/" target="_blank"><img src="images/bsu_logo.jpg" width="39" height="53" border="0" alt="T.I.S. College Bookstore Muncie" /></a></div>'+
					'<div style="padding-top: 3px; width: 86px; height: 54px; float: left; text-align: center;"><a href="http://www.tisbookiu.com/" target="_blank">tisbookiu.com</a></div>'+
					'<div style="padding-top: 8px; width: 35px; height: 47px; float: left;"><a href="http://www.tisbookui.com/" target="_blank"><img src="images/ui_logo.jpg" width="40" height="43" border="0" alt="T.I.S. College Bookstore Champaign" /></a></div>'+
					'<div style="clear: both;"></div>'+
					'<div style="width: 102px; height: 18px; float: left;"><a href="http://www.tisbookbsu.com/" target="_blank">tisbookbsu.com</a></div>'+
					'<div style="padding-right: 4px; width: 98px; height: 18px; text-align: right; float: left;"><a href="http://www.tisbookui.com/" target="_blank">tisbookui.com</a></div>'+
				'</div>';
/*layer_array[1]='<div id="layer_left">'+
					'<a href="music.cfm"><img src="images/tismusic_logo.gif" width="50" height="77" border="0" alt="T.I.S. College Bookstore" /></a>'+
				'</div>'+
				'<div id="layer_center">'+
					'<div class="layer_title">T.I.S. Music Catalog</div>'+
					'The best source for online Vocal and Piano printed music is T.I.S. Music Catalog. '+
					'We carry a comprehensive inventory of both vocal and piano reference books, including '+ 
					'texts on diction, pedagogy and music history.'+
				'</div>'+
				'<div id="layer_right">'+
					'<div style="padding-top: 12px; width: 204px; text-align: center; line-height: 16px;">'+
						'<a href="http://www.tismusic.com/" target="_blank"><img src="images/music_graphic.jpg" width="172" height="92" border="0" alt="T.I.S. Music Catalog" /></a><br />'+
						'<a href="http://www.tismusic.com/" target="_blank">tismusic.com</a>'+
					'</div>'+
				'</div>';*/
layer_array[1]='<div id="layer_left">'+
					'<div style="padding-top: 5px;">'+
						'<a href="sportswear.cfm"><img src="images/sportswear_logo.jpg" width="62" height="23" border="0" alt="Taylor Imprinted Sportswear" /></a>'+
					'</div>'+
				'</div>'+
				'<div id="layer_center">'+
					'<div class="layer_title">Taylor Imprinted Sportswear</div>'+
					'You have come to the right place for custom printed and embroidered sportswear for '+
					'your store, team, school, church, organization, fraternity or sorority.'+
				'</div>'+
				'<div id="layer_right">'+
					'<div style="padding-top: 12px; width: 204px; text-align: center; line-height: 16px;">'+
						'<a href="http://www.taylorimprints.com" target="_blank"><img src="images/sportswear_graphic.jpg" width="204" height="100" border="0" alt="Taylor Imprinted Sportswear" /></a><br />'+
						'<a href="http://www.taylorimprints.com" target="_blank">Taylor Imprinted Sportswear</a>'+
					'</div>'+
				'</div>';
/*layer_array[3]='<div id="layer_left">'+
					'<div style="padding-top: 5px;">'+
						'<a href="printing.cfm"><img src="images/publishing_logo.jpg" width="62" height="20" border="0" alt="Tichenor Publishing &amp; Printing" /></a>'+
					'</div>'+
				'</div>'+
				'<div id="layer_center">'+
					'<div class="layer_title">Tichenor Publishing &amp; Printing</div>'+
					'Do you need high-quality instructional materials and lab manuals for classroom use on '+
					'local, regional and national levels? Come to Tichenor Publishing &amp; Printing!'+
				'</div>'+
				'<div id="layer_right">'+
					'<div style="padding-top: 11px; width: 204px; text-align: center; line-height: 16px;">'+
						'<a href="http://www.tichenorpublishing.com/" target="_blank"><img src="images/publishing_graphic.jpg" width="204" height="102" border="0" alt="Tichenor Publishing &amp; Printing" /></a><br />'+
						'<a href="http://www.tichenorpublishing.com/" target="_blank">Tichenor Publishing &amp; Printing</a>'+
					'</div>'+
				'</div>';*/
layer_array[2]='<div id="layer_left">'+
					'<div style="padding-top: 5px;">'+
						'<a href="wholesale.cfm"><img src="images/tctc_logo.jpg" width="62" height="62" border="0" alt="Tichenor College Textbook Company" /></a>'+
					'</div>'+
				'</div>'+
				'<div id="layer_center">'+
					'<div class="layer_title" style="margin-bottom: 8px; line-height: 16px; font-size: 16px;">Tichenor College Textbook Company</div>'+
					'Our inventory of over 300,000 textbooks consists of tens of thousands '+
					'of titles, and we serve more than 1,200 private and Institutional college '+
					'bookstores across the U.S. and Canada.'+
				'</div>'+
				'<div id="layer_right">'+
					'<div style="padding-top: 11px; width: 204px; text-align: center; line-height: 16px;">'+
						'<a href="http://www.tctcbook.com/" target="_blank"><img src="images/tctc_graphic.jpg" width="115" height="94" border="0" alt="Tichenor College Textbook Company" /></a><br />'+
						'<a href="http://www.tctcbook.com/" target="_blank">tctcbook.com</a>'+
					'</div>'+
				'</div>';

function layer_rotate(layer) {
	window.clearTimeout(timer);
	
	for(i = 0; i < 3; i++){
		if (layer == i) {
			document.getElementById('layer_1').innerHTML = layer_array[i];
			document.getElementById('lyr'+i).src = 'images/layer_tab2.gif';
		} else {
			document.getElementById('lyr'+i).src = 'images/layer_tab1.gif';
		}
	}
	
	if (layer == 2) {
		var ctr = 0;
	} else {
		var ctr = layer+1;
	}
	
	timer = window.setTimeout('layer_rotate('+ctr+');', 10000);
}
