
var path_img="http://img.yahoo.co.kr/kids/hompy/";
var path_storage="";
var path_h2="/";

//ÀÌ¹ÌÁö·Ñ¿À¹ö _ ¸ÞÀÎ
if (document.images)
{
	//¸Þ´º·Ñ¿À¹ö
	img1on = new Image();
	img1on.src = path_img +"common/menu/menu01_on.gif";
	img2on = new Image();
	img2on.src = path_img +"common/menu/menu02_on.gif";
	img3on = new Image();
	img3on.src = path_img +"common/menu/menu03_on.gif";
	img4on = new Image();
	img4on.src = path_img +"common/menu/menu04_on.gif";
	img5on = new Image();
	img5on.src = path_img +"common/menu/menu05_on.gif";

	img1off = new Image();
	img1off.src = path_img +"common/menu/menu01_off.gif";
	img2off = new Image();
	img2off.src = path_img +"common/menu/menu02_off.gif";
	img3off = new Image();
	img3off.src = path_img +"common/menu/menu03_off.gif";
	img4off = new Image();
	img4off.src = path_img +"common/menu/menu04_off.gif";
	img5off = new Image();
	img5off.src = path_img +"common/menu/menu05_off.gif";
}


function imgOn(imgName)
{
        if (document.images)
	{
            document[imgName].src = eval(imgName + "on.src");
        }
}

function imgOff(imgName)
{
        if (document.images)
	{
            document[imgName].src = eval(imgName + "off.src");
	}
}

function copyContest(datauid, datacid){
	var dest = "../COMMON/popup/detail.html";
	dest += "?UID="+datauid+"&CID="+datacid;
	var win = window.open(dest,'_copy','width=460, height=533, top=50, left=100');
	win.focus();
}

function copyMyhompy(datauid, hid)
{
	if (!hid)
	{
		var dest = "/COMMON/popup/detail.html";
		dest += "?UID="+datauid;
	} else {
		var dest = "/COMMON/popup/mydetail.html";
		dest += "?UID="+datauid;
		dest += "&hid="+hid;
	}

	var win = window.open(dest,'_copy','width=460, height=533, top=50, left=100');
	win.focus();
}


//ÅØ½ºÆ® »ç¶óÁü
function clearText(thefield)
{
	if (thefield.defaultValue==thefield.value)
		thefield.value = "";
}


