function productEnter(idx) {
	if ( confirm('ÇØ´ç °ÔÀÓÀ» ÁøÇà ÇÏ½Ã°Ú½À´Ï±î?') ) {
		document.location.href = Default_URI + "/Game/p_no=" + idx;
	}
}

function signUpGame(idx) {
	if ( confirm('ÇØ´ç °ÔÀÓÀ» ½ÅÃ» ÇÏ½Ã°Ú½À´Ï±î?') ) {
		document.location.href = Default_URI + "/Game/signUp/?p_no=" + idx;
	}
}

function goLogin() {
	if ( typeof(isMobile) == "boolean" && isMobile ) {
		alert("·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù.");
		document.location.href = Default_URI + "/Member/mLogin";
	} else {
		$('#showLayer_login').click();
	}
}

function viewFlash(width, height, src, opt) {
	str = '<object id="single1" name="single1" width="'+width+'" height="'+height+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" onmousedown="flashTimeCheck();//this.onmousedown=function(){return false;}">';
	str+= '<param name="allowScriptAccess" value="never" />';
	str+= '<param name="allowNetworking" value="internal" />';
	str+= '<param name="windowless" value="true" />';
	str+= '<param name="WMode" value="Transparent" />';
	str+= '<param name="movie" value="'+src+'" />';
	str+= '<param name="allowfullscreen" value="true" />';
	if ( opt.flashvars ) {
		str+= '<param name="flashvars" value="'+opt.flashvars+'" />';
	}
	str+= '<embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="888" height="433" src="'+src+'" allowScriptAccess="never" allowNetworking="internal" windowless="true" WMode="Transparent" allowfullscreen="true"';
	if ( opt.flashvars ) {
		str+= ' flashvars="'+opt.flashvars+'"';
	}
	str+= '></embed>';
	str+= '</object>';
	document.write(str);
}

var old_products_tab_idx = 0;
function ch_main_products_tab(idx) {
	if ( Products_max == 0 ) {
		return;
	}
	var now_products_tab_idx = ( Products_max + (old_products_tab_idx+idx) ) % Products_max;
	document.getElementById('div_products_tab_'+old_products_tab_idx).style.display = "none";
	document.getElementById('div_products_tab_'+now_products_tab_idx).style.display = "block";

	old_products_tab_idx = now_products_tab_idx;
}

var old_solution_tab_idx = 0;
function ch_main_solution_tab(idx) {
	if ( Solution_max == 0 ) {
		return;
	}
	var now_solution_tab_idx = ( Solution_max + (old_solution_tab_idx+idx) ) % Solution_max;
	document.getElementById('div_solution_tab_'+old_solution_tab_idx).style.display = "none";
	document.getElementById('div_solution_tab_'+now_solution_tab_idx).style.display = "block";

	old_solution_tab_idx = now_solution_tab_idx;
}
