// JavaScript Document
// JavaScript Document
function goSlide(whichSlide){
	clearTimeout(slideShow);					
	if (whichSlide!=currentSlide) {
		toggleSlide (whichSlide);						
	}
	slideShow = window.setTimeout("goNextSlide()", 20000); 
	return false;
}				
function goNextSlide() {				
	nextSlide = currentSlide + 1;
	if (nextSlide>4) {
		nextSlide=1;
	}
	toggleSlide (nextSlide);
	slideShow = window.setTimeout("goNextSlide()", 8000);
}			
function toggleSlide(whichSlide){	
	currentSlide = whichSlide;	
	for (f=1;f<=4;f++) {
		if (f==whichSlide) {
			document.getElementById("slide_"+f).style.display="block";
			document.getElementById("slide_"+f+"_button").className="over";	
		} else { 
			document.getElementById("slide_"+f).style.display="none";
			document.getElementById("slide_"+f+"_button").className="";
		}		
	}
	return false;
}
function mailpage(){
	mail_str = "mailto:?subject=Check out the " + document.title;
	mail_str += "&body=I thought you might be interested in the " + document.title;
	mail_str += ". You can view it at, " + location.href; 
	location.href = mail_str;
}
var clearedFields = new Array();
function clearDefault(ID){
	var found = false;
	for (f=0;f<clearedFields.length;f++) {
		if (clearedFields[f]==ID){
			found = true;
		}
	}
	if (found==false) {
		document.getElementById(ID).value="";
		clearedFields.push (ID);
	}
}
function showQtySelect(ID){
	document.getElementById("qtyStatic_"+ID).style.display = "none";
	document.getElementById("qtySelect_"+ID).style.display = "inline";								
	return false;
}
