/*
Ç÷¡½Ã °ÔÀÓ
wmode : window , opaque, transparent
*/
function gameFlash(divid, flash_src,swf_width,swf_height,param_wmode,param_acess,param_network)
{
if(param_wmode == null) param_wmode = "transparent";
if(param_acess == null) param_acess = "always"; // always Çã¿ë, never ºÒ°¡, samedomain ÇØ´çµµ¸ÞÀθ¸
if(param_network == null) param_network = "all"; // all Çã¿ë internal ºÒ°¡
HtmlTag = "";
/*document.getElementById(divid).innerHTML = HtmlTag;*/
var aHTML = [];
aHTML.push(HtmlTag);
document.getElementById(divid).innerHTML = aHTML.join("");
}
/*Ç÷¡½Ã*/
function PrintFlash(flash_src,swf_width,swf_height,param_wmode,param_acess)
{
if(param_wmode == null) param_wmode = "transparent";
if(param_acess == null) param_acess = "always";
HtmlTag = "";
document.write(HtmlTag);
}
function inner_html_tag(divid, tag, op)
{
var aHTML = [];
aHTML.push(tag);
if(op){
document.getElementById(divid).innerHTML += aHTML.join("");
}else{
document.getElementById(divid).innerHTML = aHTML.join("");
}
}
/* ÄíÅ°»ý¼ºÇÔ¼ö */
function setCookie(name,value,expiredays)
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
//ÄíÅ°°ª°¡Á®¿À±â
function getCookie (cookieName)
{
var cookieValue = null;
var posName = document.cookie.indexOf(escape(cookieName) + '=');
if (posName != -1) {
var posValue = posName + (escape(cookieName) + '=').length;
var endPos = document.cookie.indexOf(';', posValue);
if (endPos != -1)
cookieValue = unescape(document.cookie.substring(posValue, endPos));
else
cookieValue = unescape(document.cookie.substring(posValue));
}
return cookieValue;
}
function win_resize(){
/*alert('°¡·Î:'+document.getElementById('width_id').style.width);*/
/*alert('width: ' + document.body.currentStyle.width);*/
/*alert(screen.width);*/
var client_width_val;
if(window.screen.availWidth > 0){
client_width_val = window.screen.availWidth;
}else{
client_width_val = document.body.clientWidth;
}
/*alert(this_browser_mode+'//'+client_width_val);*/
/*¸ð¹ÙÀÏ ±âÁ¾ÀÌ ÀÖ±¸ ºê¶óÀÌÁÖ »çÀÌÁî°¡ 1024¸é ¿þºä¾î·Î ÀνÄÇÏ°í 800¿¡ ¸ÂÃß¾îÁØ´Ù*/
if(this_browser_mode!="" && client_width_val >= 1024){
client_width_val = 800;
/*ÀϺη¯ º¯È¯ÇÑ°ÍÀÓÀ» ¾Ë¸®´Â ÄíÅ°°ª*/
setCookie('web_view','ok',3650);
}
var cookie_client_width = getCookie('client_width');
if(!cookie_client_width || cookie_client_width!=client_width_val){
setCookie('client_width',client_width_val,3650);
document.location.href = document.location.href;
}
}
var tid = setInterval(win_resize,1000);
var aaa = getCookie('client_width');
window.onload = win_resize;