<!-- Hide
window.onload=function(){
//Nifty("div#content","top, large, fixed-height")
//Nifty("ul#nav_top a", "top,transparent,same-height");
Nifty("div#nav", "large");
Nifty("div#footer", "bottom,large");
Nifty("div#header", "top,large");
Nifty("ul#intro li","same-height");
Nifty("div#headergraphic", "small");
}

window.onunload=function() {
PhotoFull.close();
}

function resetCorners()
{
	Nifty("div#container");
	Nifty("div#content,div#nav","same-height small");
	Nifty("div#header,div#footer","small");
}

function dollarFormat(valuein) {
	var formatStr="";
	var Outdollars="";
	var myMoney = valuein;
	myMoney = myMoney.replace("$", "");
	var decipos=myMoney.indexOf(".");
	
	if (decipos==-1) {
		decipos = myMoney.length;
	}
	
	var dollars=myMoney.substring(0,decipos);
	var dollen=dollars.length;
	
	if (dollars > 0) {
		while (dollen>0) {
			tDollars=dollars.substring(dollen-3,dollen);
			
			if (tDollars.length==3) {
				Outdollars=","+tDollars+Outdollars;
				dollen=dollen-3;
			} else {
				Outdollars=tDollars+Outdollars;
				dollen=0;
			}
		}
		if (Outdollars.substring(0,1)==",") {
			dollars=Outdollars.substring(1,Outdollars.length);
		} else {
			dollars=Outdollars;
		}
		var cents=myMoney.substring(decipos+1,decipos+3);
		if (cents=="") {
			cents="00";
		}
		if (cents.length < 2) {
			var centsc = cents.length;
			while (cents.length < 2) {
				cents = cents+"0";
			}
		}
		if (cents.length == 1) {
			cents = cents + "0";
		}
		if (cents.length == 1) {
			cents=cents+"0";
		}
		if (cents > 0) {
			cents = cents;
		} else {
			cents="00";
		}
		var formatStr="$"+dollars+"."+cents;
		return formatStr;
	} else {
		dollars = 0;
		cents=0;
		var cents=myMoney.substring(decipos+1,decipos+3);
		if (cents=="") {
			cents="00";
		}
		if (cents.length == 1) {
			cents = cents + "0";
		}
		if (cents > 0) {
			cents = cents;
		} else {
			cents = "00";
		}
		var formatStr="$"+dollars+"."+cents;
		return formatStr;
	}
}

function toggleProductsDisplay(i)
{
 var e=document.getElementById("productsdesc" + i);
 if(!e)return true;
 if(e.style.display=="none") {
 	e.style.display="block";
 } else {
 	e.style.display="none";
 }
 e=document.getElementById("productsbutton" + i);
 if(!e)return true;
 if(e.value=='+') {
 	e.value='-';
 } else {
 	e.value='+';
 }
}

function open_PhotoFull(strURL)
{
PhotoFull = window.open(strURL,"PhotoFull","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=700, height=700");
}

function loadjscssfile(filename, filetype){
 if (filetype=="js"){ //if filename is a external JavaScript file
  var fileref=document.createElement('script')
  fileref.setAttribute("type","text/javascript")
  fileref.setAttribute("src", filename)
 }
 else if (filetype=="css"){ //if filename is an external CSS file
  var fileref=document.createElement("link")
  fileref.setAttribute("rel", "stylesheet")
  fileref.setAttribute("type", "text/css")
  fileref.setAttribute("href", filename)
 }
 if (typeof fileref!="undefined")
  document.getElementsByTagName("head")[0].appendChild(fileref)
}

loadjscssfile("/inc/dropdown.js", "js") //dynamically load and add this .js file
//loadjscssfile("javascript.php", "js") //dynamically load "javascript.php" as a JavaScript file, this is just a sample of how it is done.
//loadjscssfile("mystyle.css", "css") //dynamically load and add this .css file, this is just a sample of how it is done.

//Stop hiding-->