/* swf»ðÀÔ */
function swfWrite(src,width,height,id, varTimestamp) {
	var str = '';
	str += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.115.00" width="'+width+'" height="'+height+'" id="'+id+'">';
    str += '<param name="wmode" value="window" />';
    str += '<param name="allowScriptAccess" value="always" />';
    str += '<param name="allowFullscreen" value="false" />';
    str += '<param name="flashvars" value="swfPath=http://nsf.nate.com/v20_images/&time=' + varTimestamp + '" />';
    str += '<param name="movie" value="' + src + '?' + varTimestamp + '" />';
    str += '<param name="quality" value="high" />';
    str += '<param name="scale" value="noborder" />';
    str += '<param name="bgcolor" value="#ffffff" />';
	str += '<embed ';
	str += '	src="' + src + '?' + varTimestamp + '" ';
	str += '	wmode="window" ';
	str += '	quality="high" ';
	str += '	bgcolor="#ffffff" ';
	str += '	width="'+width+'" ';
	str += '	height="'+height+'" ';
	str += '	name="' + id + '" ';
	str += '	align="middle" ';
	str += '	allowScriptAccess="always" ';
	str += '	allowFullScreen="false" ';
	str += '	type="application/x-shockwave-flash" ';
	str += '	pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	str += '	flashvars="swfPath=http://nsf.nate.com/v20_images/&time=' + varTimestamp + '"';
	str += '/>';
	str += '</object>';
	document.write(str);
}
/*
function swfWrite(src,width,height,id) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.115.00" width="'+width+'" height="'+height+'" id="'+id+'">');
		document.write('<param name="movie" value="'+src+'" />');
        document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="wmode" value="window" />');
		document.write('<embed src="'+src+'" quality="high" wmode="window" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}
*/
function goService(id)
{
	switch (id)
	{
		case "mail":
		openURL("http://mail.nate.com/");
		break;
		case "nateon_kdaq":
		openURL("http://ask.nate.com/");
		break;
		case "nateon_miniclub":
		openURL("http://nateonweb.nate.com/guide/messenger/windows/4.0/html/09_01.php");
		break;
		case "nateon_multi":
		openURL("http://nateonweb.nate.com/guide/messenger/windows/4.0/html/03_01.php");
		break;
		case "news":
		openURL("http://news.nate.com/");
		break;
		case "search_all":
		openURL("http://search.nate.com/search/all.html?z=A&q=%BC%D2%B3%E0%BD%C3%B4%EB&qn=&s=&f=&bd=&bw=&tq=");
		break;
		case "search_color":
		openURL("http://mm.search.nate.com/search/image.html?c=7&co=true&cp=-1&pn=1&q=%C0%CC%C8%BF%B8%AE&s=&tq=&z=F");
		break;
		case "search_lab":
		openURL("http://lab.nate.com");
		break;
		case "search_video":
		openURL("http://mm.search.nate.com/search/video.html?z=VD&s=&tq=&q=%B1%E8%BF%AC%BE%C6+%C7%F6%B4%EB%C0%DA%B5%BF%C2%F7&ofs=1");
		break;
		case "newnate_layout":
		openURL("http://www.nate.com/");
		break;
		case "newnate_function":
		openURL("http://www.nate.com/");
		break;
		default:
		break;
	}
}

function openURL(url)
{
	window.open(url,"_blank","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
}


/* IE6 SP1 ÀÌÈÄ background ±ôºý°Å¸²°ü·Ã */
try {
    document.execCommand("BackgroundImageCache", false, true);
} catch(ignored) {}
