function altImage1(imageControl) {	imageControl.src="/images/list_noimages1.jpg";}
function altImage2(imageControl) {	imageControl.src="/images/list_noimages2.jpg";}
function altImage3(imageControl) {	imageControl.src="/images/list_noimages3.jpg";}
function altImage4(imageControl) {	imageControl.src="/images/list_noimages4.jpg";}
function altImage5(imageControl) {	imageControl.src="/images/list_noimages5.jpg";}
function altImage6(imageControl) {	imageControl.src="/images/list_noimages6.jpg";}

function clickBanner(no) 
{
	Wopen.location.href="/include/input_visit_site_db3.asp?bannerNo=" + no;
}

function MM_showHideLayers() 
{
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) 
  {
	v=args[i+2];
    if (obj.style) 
    {
		obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; 
	}
    obj.visibility=v; 
   }
} 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/////////////////////////////////////// 2008-01-25 add
function getStyleObject(objectId) {
	if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId).style;
	} else if (document.all && document.all(objectId)) {
	return document.all(objectId).style;
	} else if (document.layers && document.layers[objectId]) {
	return document.layers[objectId];
	} else {
	return false;
	}
}

function changeObjectVisibility(objectId, newVisibility) {
	var styleObject = getStyleObject(objectId);
	if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
	} else {
	return false;
	}
}
function setContent(id,content){
	if (document.all){
		document.all[id].innerHTML = content;
	} else if (document.layers){
		document.layers[id].innerHTML = content;
	} else if (document.getElementById){
		document.getElementById(id).innerHTML = content;
	}
}
/////////////////////////////////////// 


//////////////////////////////////////// 2008-05-27 ADD by Hyunjin WHY? Renewal ShoppingMall
function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
}

function menuResize(args) {
	leftHeight= args;
	document.menuMc.style.height=leftHeight+"px";
	document.getElementById("menuMc").height = leftHeight;
}

//SCROLL
//
// o File : nvscroll.js
// o Author : Kukjin Kang
// o Date : 2004. 7. 6
// o Cont. : scroll object
//

function NvScroll() {

this.version = "0.2";
this.name = "NvScroll";
this.item = new Array();
this.itemcount = 0;
this.currentspeed = 0;
this.scrollspeed = 50;
this.pausedelay = 1000;
this.pausemouseover = false;
this.stop = false;
this.type = 1;
this.height = 100;
this.width = 100;
this.stopHeight=0;
this.i=0;

this.add = function () {
var text = arguments[0];
this.item[this.itemcount] = text;
this.itemcount = this.itemcount + 1;
};

this.start = function () {
if ( this.itemcount == 1 ) {
this.add(this.item[0]);
}
this.display();
this.currentspeed = this.scrollspeed;
this.stop = true;
setTimeout(this.name+'.scroll()',this.currentspeed );
window.setTimeout(this.name+".stop = false", this.pausedelay);
};

this.display = function () {
document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');
for(var i = 0; i < this.itemcount; i++) {
if ( this.type == 1) {
document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">');
document.write(this.item[i]);
document.write('</div>');
} else if ( this.type == 2 ) {
document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');
document.write(this.item[i]);
document.write('</div>');
}
}
document.write('</div>');
};

this.scroll = function () {

if ( this.pause == true ) {
window.setTimeout(this.name+".scroll()",this.pausedelay);
this.pause = false;
} else {

this.currentspeed = this.scrollspeed;
if ( !this.stop ) {
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style; 
if ( this.type == 1 ) {
obj.top = parseInt(obj.top) - 1;
if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
if ( parseInt(obj.top) == 0 ) this.currentspeed = this.pausedelay;
} else if ( this.type == 2 ) {

obj.left = parseInt(obj.left) - this.width;
/*
obj.left = parseInt(obj.left) - 1;  //this use water current

obj.left = this.width * (this.itemcount-1);
obj.left = parseInt(obj.left) - this.width; //this use change soon
width = parseInt(obj.left) * (-1);
obj.left = parseInt(obj.left) - width;
*/

if ( parseInt(obj.left) <= this.width * (-1) ) obj.left = this.width * (this.itemcount-1);
if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
}
}
}

window.setTimeout(this.name+".scroll()",this.currentspeed);
}
};

this.onmouseover = function () {
if ( this.pausemouseover ) {
this.stop = true;
}
};

this.onmouseout = function () {
if ( this.pausemouseover ) {
this.stop = false;
}
};

this.next = function() {
this.stop = true;
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style; 
if ( parseInt(obj.left) < 1 ) { 
width = this.width + parseInt(obj.left);
break;
}
}
/*
obj.left = parseInt(obj.left) - 1;  //this use water current

obj.left = this.width * (this.itemcount-1);
obj.left = parseInt(obj.left) - this.width; //this use change soon
width = parseInt(obj.left) * (-1);
obj.left = parseInt(obj.left) - width;
*/
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style; 
if ( parseInt(obj.left) < 1 ) { 
obj.left = this.width * (this.itemcount-1);
} else {
obj.left = parseInt(obj.left) - width;
}
}
this.sleft = false;
this.pause = true;
}

this.prev = function() {
this.sleft = true;
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style; 
if ( parseInt(obj.left) < 1 ) { 
width = parseInt(obj.left) * (-1);
break;
}
}
if ( width == 0 ) {
total_width= this.width * (this.itemcount-1);
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style; 
if ( parseInt(obj.left) + 1 > total_width ) { 
obj.left = 0;
} else {
obj.left = parseInt(obj.left) + this.width;
}
}
} else {
for (i = 0; i < this.itemcount; i++) {
obj = document.getElementById(this.name+'item'+i).style; 
if ( parseInt(obj.left) < 1 ) { 
obj.left = 0;
} else {
obj.left = parseInt(obj.left) + width;
}
}
}
this.stop = false;
this.pause = true;
}


}
////////////////////////////////////////////////