//¹®ÀÚ ºô´õ
function StringBuilder(value)
{
    this.strings = new Array("");
    this.append(value);
}

// Appends the given value to the end of this instance.
StringBuilder.prototype.append = function (value)
{
    if (value)
    {
        this.strings.push(value);
    }
}

// Clears the string buffer
StringBuilder.prototype.clear = function ()
{
    this.strings.length = 1;
}

// Converts this instance to a String.
StringBuilder.prototype.toString = function ()
{
    return this.strings.join("");
}




/*------------------------------------

			¸Þ´º ÇÔ¼ö

--------------------------------------*/
onLayerCateOver.hasEverOvered = false;
onLayerCateOver.timeout = null;
function onLayerCateOver(index,lname){
	onLayerCateOver.timeout = setTimeout("onLayerCateOverNow(" + index + ",'"+lname+"')", 200);
}

function onLayerCateOverNow(index,lname){
offLayerCateHideTimeout(index);

for(var layerIndex = 1 ;  ; layerIndex++){
	var curLayerObj = document.getElementById(lname + layerIndex);
	if(curLayerObj == null || curLayerObj == 'undefined'){
		break;
	}
	
	if(layerIndex != index){
		curLayerObj.style.display = 'none';
	} else {
		curLayerObj.style.display = 'block';
	}
}
}

onLayerCateOut.timeout = new Array();
function onLayerCateOut(index,lname){
if(onLayerCateOver.timeout != null){
	clearTimeout(onLayerCateOver.timeout);
}

onLayerCateOut.timeout[index] = setTimeout("hideLayerCate(" + index + ",'"+lname+"')", 100);
}

function offLayerCateHideTimeout(index) {
if(onLayerCateOut.timeout[index] != null){
	clearTimeout(onLayerCateOut.timeout[index]);
}
}

function hideLayerCate(index,lname){
var layerObj = document.getElementById(lname + index);
layerObj.style.display = 'none';
}

