// (c)Arthur Brock 1995-2005 rev 02.10.2005

var b_Timer = null;
var b_Counter = 5;
var b_numSlides = 5;

var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);

wy = new Array ();
wy[0] = "aa";
wy[1] = "bb";
wy[2] = "cc";
wy[3] = "dd";
wy[4] = "ee";
wy[5] = "ff";

function stv(id) {
  if (!document.images) return
  for (x = 0; x < wy.length; x++) {
  	if (id == wy[x]) {	
  		if (!document.all && document.getElementById) { 
			//NS6,NS7 only
			document.getElementById(id).style.visibility = "visible";
			document.getElementById(id).style.top = "154px";
		} 
		if (document.getElementById) { 
			//IE5,NS6,NS7
			document.getElementById(id).style.visibility = "visible";
		} 
		else if (document.layers) { 
			//NS4
			document[id].visibility = 'show';
		} 
		else if (document.all) { 
			//IE4
			document.all[id].style.visibility = 'visible';
		} 
	
	} else {
	
		if (document.getElementById) { 
			//IE5,NS6,NS7
			document.getElementById(wy[x]).style.visibility= "hidden";
		} 
		else if (document.layers) { 
			//NS4
			document[wy[x]].visibility = 'hide';
		} 
		else if (document.all) { 
			//IE4
			document.all[wy[x]].style.visibility = 'hidden';
		} 
	}
	}		
}

var ploadFlag = false;
function pImages() {
	if(document.images) {
	ccover = new Array();
	ccout = new Array();
	sshow = new Array();
	for(var z=1;z<=10;z++) {
		ccover[z]=new Image;
		ccout[z]=new Image;
		sshow[z]=new Image;
	}
	

	sshow[1].src="../images/mag.jpg";
	sshow[2].src="../images/mag_family1.jpg";
	sshow[3].src="../images/mag_cellman.jpg";
	sshow[4].src="../images/mag_woman2.jpg";
	sshow[5].src="../images/mag_woman1.jpg";
	sshow[6].src="../images/mag_couple1.jpg";
			
	ploadFlag = true;
	}	                          
}
	
function ccOn(w) {
	if(document.images && (ploadFlag == true)) document.images["cc" + w].src=ccover[w].src;
}

function ccOff(w) {
	if(document.images && (ploadFlag == true)) document.images["cc" + w].src=ccout[w].src;   
}

function rollon() {
	if (window.event.srcElement.className == "yitem") {
	window.event.srcElement.className = "yhighlight";
	}
}

function rolloff() {
	if (window.event.srcElement.className == "yhighlight") {
	window.event.srcElement.className = "yitem"
	}
}

function ssshow() {
      b_Timer=setTimeout("ssshow()", 4000);
      b_Counter++;
      if (b_Counter > b_numSlides)
            b_Counter = 1;
      document.images["ss99"].src=sshow[b_Counter].src;
}

//document.onmouseover = rollon;
//document.onmouseout = rolloff;