/*
	www.gohackers.com - °øÅë ÇÔ¼ö
*/

// ville »õÃ¢ ¿­±â
var v_left = (window.screen.width - 934) / 2;
var v_top = (window.screen.height - 577) / 2;

function ville_open(idx){
	window.open("http://www.gohackers.com/ville/ville.php?skin_sel=" + idx, "ville", "status=no, menubar=no, resizable=yes, scrollbars=yes, directories=no, top=" + v_top + ", left=" + v_left + ", width=950, height=580");
}

function clickcr(no){
    location.href="http://222.122.229.26/tracker_ad.tsp?u=120&mode=C&adCode="+no;
}

// ¿µ¾îÇÐ½À¹æ ¿­±â
function eng_edu_open(idx){
	window.open("/html/eng_edu/eng_edu.htm?idx=" + idx, "eng_edu", "status=no, menubar=no, resizable=yes, scrollbar=no directories=no, top=" + v_top + ", left=" + v_left + ", width=900, height=680");
}

// ¾Æ¿ô¸µÅ© ·¹ÀÌ¾î ¹öÆ° º¸ÀÌ±â
function showOutlinkLayer(idx)
{
	for (var i=1; i<=4; i++)
	{
		if (i != idx)
		{
			hideOutlinkLayer(i);
		}
	}
	document.getElementById("outlink" + idx).style.display = "block";
}

// ¼û±â±â
function hideOutlinkLayer(idx)
{
	document.getElementById("outlink" + idx).style.display = "none";
}

// swf Ãâ·Â
function swfPrint(f_url, f_id, f_w, f_h)
{
	document.write('<object id="' + f_id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + f_w + '" height="' + f_h +'" align="middle">');
	document.write('<param name="movie" value="' + f_url + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="swLiveConnect" value="true" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('</object>');

	//document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]>-->');
	document.write('<object id="' + f_id + '" type="application/x-shockwave-flash" data="' + f_url + '" width="' + f_w + '" height="' + f_h + '" >');
	document.write('<param name="movie" value="' + f_url + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="swLiveConnect" value="true" />');
	document.write('<param name="scale" value="noscale" />');
    document.write('</object>');
	document.write('<!--> <![endif]-->');
}

function swfPrint2(f_url, f_id, f_w, f_h)
{
	document.write('<object id="' + f_id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + f_w + '" height="' + f_h +'" align="middle">');
	document.write('<param name="movie" value="' + f_url + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="swLiveConnect" value="true" />');
	document.write('<param name="scale" value="noscale" />');
	document.write("<embed src='"+f_url+"' FlashVars='no' quality='high' wmode='transparent' width='"+f_w+"' height='"+f_h+"' name='"+f_w+"' align='middle'  type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write('</object>');
}

function flash_movie(src, ids, width, height, wmode)
{
    var wh = "";
    if (parseInt(width) && parseInt(height)) 
        wh = " width='"+width+"' height='"+height+"' ";
    return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
}

function obj_movie(src, ids, width, height, autostart)
{
    var wh = "";
    if (parseInt(width) && parseInt(height)) 
        wh = " width='"+width+"' height='"+height+"' ";
    if (!autostart) autostart = false;
    return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>";
}


function show_swfv(swfName, swfWidth, swfHeight, swfVars)
{
 var hout = "";
  hout += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+swfWidth+"' height='"+swfHeight+"' id='"+swfName+"' align='middle'>";
  hout += "<param name='allowScriptAccess' value='always' />";
  hout += "<param name='movie' value='"+swfName+"' />";
  hout += "<param name='quality' value='high' />";
  hout += "<param name='FlashVars' value='"+swfVars+"'>";
  //hout += "<param name='wmode' value='transparent' />";
  hout += "<embed src='"+swfName+"' FlashVars='"+swfVars+"' quality='high' wmode='transparent' width='"+swfWidth+"' height='"+swfHeight+"' name='"+swfWidth+"' align='middle'  type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
  hout += "</object>";
 document.write(hout);
}

function doc_write(cont)
{
    document.write(cont);
}

function FnMainPop(url, width, height){
	window.open(url, "mainPop", "status=no, menubar=no, resizable=no, scrollbars=no, directories=no, top=0, left=0, width="+width+", height="+height);
}

function f_setCookie(name, value){ 
 var todayDate = new Date(); 
 todayDate.setDate( todayDate.getDate() + 1 ); 
 document.cookie = name + "=" + escape(value) + "; expires=" + todayDate.toGMTString()+"; path=/"; 
} 


