// JavaScript Document
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		home_over = newImage("images/home-over.gif");
		product_over = newImage("images/product-over.gif");
		price_over = newImage("images/price-over.gif");
		order_over = newImage("images/order-over.gif");
		contact_over = newImage("images/contact-over.gif");
		preloadFlag = true;
	}
}

function showImage(fName,titlename,width,height)
{ 	
  WinOpen =open("","w01","toolbar=no,status=no,menubar=no,resizeable=no,width="+ (width+2) +",height=" + (height+2) +",left=60,top=0");
  WinOpen.document.write(
  	"<html><head><title>" + titlename + "</title>\n" +
	"<meta http-equiv=Content-Type content=text/html; charset=iso-8859-1>\n" +
	"<style type=text/css>\n " +

	"body {" +
	"margin-left: 0px;" +
	"margin-top: 0px;" +
	"}" +

	"</style>\n" +
	"</head>\n" +
	"<body>\n" +
	"<img src=" + fName + " width="+ (width) +" height=" + (height) +" border=1>\n" +
	"</body>\n" +
	"</html>");
}