// JavaScript Document
function showSlidingScale(yPos){
	//make sure the sliding scale div exists...
	if(!document.getElementById("divSlidingScale")){
		return;	
	}
	//get height and width of browser window...
	/*
	var wHeight;
	var wWidth;
	if(window.innerWidth){
		//for all browsers except IE
		wHeight = window.innerHeight;
		wWidth = window.innerWidth;	
	}else{
		if(document.documentElement && document.documentElement.clientWidth){
			//alert("There is a DOCTYPE");
			//for IE 6 when there is a DOCTYPE
			wHeight = document.documentElement.clientHeight;
			wWidth = document.documentElement.clientWidth;
		}else if(document.body.clientWidth){
			//for IE 4,5,6 without a DOCTYPE
			//alert("No DOCTYPE");
			wHeight = document.body.clientHeight;
			wWidth = document.body.clientWidth;
		}	
	}
	//alert("wHeight: " + wHeight + "\nwWdith: " + wWidth);
	
	//get a handle on our alert div...
	div = document.getElementById("divSlidingScale");
	
	//determine the position of the div based on window size and size of div...
	var posX = wWidth/2 - parseInt(div.style.width)/2;
	var posY = wHeight/2 - parseInt(div.style.height)/2;
	
	//set the position style properties of div...
	div.style.left = posX + "px";
	div.style.top = posY + "px";
	*/
	
	div = document.getElementById("divSlidingScale");
	//div.style.left = "1px";
	if(yPos){
		div.style.top = yPos + "px";
	}
	//show the div...
	div.style.display = "block";
	 
}
function hideSlidingScale(){
	//make sure the sliding scale div exists...
	if(!document.getElementById("divSlidingScale")){
		return;	
	}
	document.getElementById("divSlidingScale").style.display = "none";	
}
