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];
		}
	}
}

function OpenWin01(url){
	win=window.open(url,"popup","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes,width=200,height=220");
        win.moveTo(10,10);
}

function OpenWin02(url){
	win=window.open(url,"popup","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes,width=380,height=380");
        win.moveTo(10,10);
}

function OpenWin03(url){
	win=window.open(url,"popup","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes,width=600,height=500");
        win.moveTo(10,10);
}

function OpenWin04(url){
	win=window.open(url,"popup","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes,width=400,height=400");
        win.moveTo(10,10);
}

function OpenWin05(url){
	win=window.open(url,"popup2","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes,width=380,height=380");
        win.moveTo(10,10);
}


var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		home_on = newImage("common/h_home_on.gif");
		newproducts_on = newImage("common/h_newproducts_on.gif");
		products_on = newImage("common/h_products_on.gif");
		lunachan_on = newImage("common/h_lunachan_on.gif");
		company_on = newImage("common/h_company_on.gif");
		customer_on = newImage("common/h_customer_on.gif");
		spec_on = newImage("common/b_spec_on.gif");
		
		h_home_on = newImage("img/h_b_home_on.gif");
		h_newproducts_on = newImage("img/h_b_newproducts_on.gif");
		h_products_on = newImage("img/h_b_products_on.gif");
		h_lunachan_on = newImage("img/h_b_lunachan_on.gif");
		h_company_on = newImage("img/h_b_company_on.gif");
		h_customer_on = newImage("img/h_b_customer_on.gif");


		preloadFlag = true;
	}
}
preloadImages();
