/*********************************************
 ************* Different StyleSheet ********** 
 *********************************************/
var IE4 =	(document.all && !document.getElementById) ? true : false;	// IE 4 only
var NS4 =	(document.layers) ? true : false;							// Netscape 4 only
var IE5 =	(document.all && document.getElementById) ? true : false;	// IE 5+ only
var N6	=	(document.getElementById && !document.all) ? true : false; 	// FireFox/Mozilla/NE6+

/**
if (IE4 || IE5 || N6){
	document.write("<link" + " rel='stylesheet' href='mcws_ie.css'" + ">");
}
else{
	document.write("<link" + " rel='stylesheet' href='mcws_ns.css'" + ">");
}
**/


/*********************************************
 ************* SlideShow Script ************** 
 *********************************************/
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue adding to the array

Pic[0] = 'images/sample_theme_2.jpg'
Pic[1] = 'images/sample_theme_3.jpg'
Pic[2] = 'images/sample_theme_4.jpg'
Pic[3] = 'images/sample_theme.jpg'

var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlides() {
var IE4 =	(document.all && !document.getElementById) ? true : false;	// IE 4 only
var IE5 =	(document.all && document.getElementById) ? true : false;	// IE 5+ only
var NS4 =	(document.layers) ? true : false;							// Netscape 4 only
var N6	=	(document.getElementById && !document.all) ? true : false; 	// FireFox/Mozilla/NE6+

if (IE4 || IE5 || NS4 ) {
	document.images.SlideShow.filters.revealTrans.Transition=Math.floor(Math.random()*23);
	document.images.SlideShow.filters.revealTrans.apply();
	document.images.SlideShow.src = preLoad[j].src;
	document.images.SlideShow.style.visibility = 'visible';
	document.images.SlideShow.filters.revealTrans.Play();
}
else if (N6) {
	document.getElementById("slide1").src = preLoad[j].src;
	document.getElementById("slide1").style.visibility='visible';
}

j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlides()', slideShowSpeed);
}

/*********************************************
 ************* Flashing Text Script ********* 
 *********************************************/
function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}

function neon(){

//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
//eval("document.all.neonlight"+m).style.color=neonbasecolor
crossref(m).style.color=neonbasecolor
}

//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor

if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}

function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}

/*********************************************
 ************* Embedded Music Script ********* 
 *********************************************/

/**** adding Backgroud Music - Testing ***
<embed src="bgsound.mid" hidden="true" autostart="true" loop="1" width="2" height="0">
<noembed>Your browser doesn't support EMBED, but you can still listen to the background sound of this page by<a href="bgsound.mid"> clicking here.</a>
	<BGSOUND SRC=your_file.mid LOOP="infinite">
</noembed>
**/