var browser_type=navigator.appName;
var browser_version=parseInt(navigator.appVersion);
if (browser_type=="Netscape"&&browser_version>=5) {
	document.write('<link href=scripts/MOZILLA.css rel=stylesheet type=text/css>');
}


function show(id) {
	document.getElementById(id).style.visibility = "visible";
}
function hide(id) {
	document.getElementById(id).style.visibility = "hidden";
}
function isinViewxx(xx,oObj) {
    var height = document.body.offsetHeight;
	var oParent = height;
    var iOffsetTop = document.getElementById(oObj).offsetTop;
	var iClientHeight = oParent.clientHeight;
    //alert(height);
	if (iOffsetTop > iClientHeight) {
        alert("Special Text not in view. Expand Window to put Text in View.");
		//document.getElementById(xx).style.bottom = '0px';
    }
    else{
 	    //alert("Special Text in View!");
		//document.getElementById(xx).style.bottom = '40px';
    }
}
function zeroOut(xx) {
	var me = ((parseInt(document.documentElement.scrollHeight) - parseInt(document.body.scrollHeight))+36);
	document.getElementById(xx).style.bottom = me;	
}

function isinView(xx,oObj) {
	var winheight = parseInt(document.documentElement.scrollHeight)
	var boheight = parseInt(document.body.scrollHeight)
	if (winheight >= boheight)
	{
	document.getElementById(xx).style.bottom = '0px';
	}
	else if (winheight < boheight)
	{
	document.getElementById(xx).style.bottom = '0px';
	}	
}

function CheckMax() {
var browser_type=navigator.appName;
var browser_version=parseInt(navigator.appVersion);
if (browser_type=="Netscape"&&browser_version>=5) {
	
}
else {
var xx = 'insideRod'
var width = parseInt(document.body.offsetWidth);
var height = parseInt(document.body.offsetHeight);
//alert(height);
  if (height < 600) {
	  hide(xx);
  }
  else {
	if (width < 800) {
	hide(xx);
	}
	else {
	show(xx);
	isinView(xx, 'warning');
	// if (parseInt(document.body.offsetWidth) < 1000 ) {
	//  document.getElementById(xx).style.bottom = '40';
	// }
	}
  }
}
}
function updateThumb(colorName) {
	//document.getElementById('mycolorName').innerHTML='Selected Color:<BR><B>'+colorName+'</B><BR>(not shown)';
	//alert(colorName);
}
