function OnloadFunction() {
if ( navigator.appName == 'Microsoft Internet Explorer') GetReplaceSelects();
//FitAdminFooter();
}
function OnresizeFunction() {
//FitAdminFooter();
}
/* Ç÷¡½¬ */
function view_flash(url,width,height,t)
{
document.write("");
}
function view_flash2(Lo,W,H){
document.write('');
}
// ·¹ÀÌ¾î º¸±â
function OverLayer(name) {
if(!document.getElementById(name)) return false;
var Layer = document.getElementById(name);
Layer.style.display = "block";
if(name == 'GmaeInfo') {
GameInfoShadow();
}
getDefault();
}
function OutLayer(name) {
loadDefault();
if(!document.getElementById(name)) return false;
var Layer = document.getElementById(name);
Layer.style.display = "none";
}
/* ¾îµå¹Î Footer */
/*function FitAdminFooter() {
var footer = document.getElementById('AdminFooter');
var CHeight = document.getElementsByTagName('body')[0].clientHeight;
if(document.getElementById('AdminFooter')) {
footer.style.top = CHeight-63+'px';
}
}*/
function FitAdminFooter() {
var footer = document.getElementById('AdminFooter');
var CHeight = document.getElementsByTagName('body')[0].clientHeight;
var SHeight = document.getElementsByTagName('body')[0].scrollHeight;
if(footer && (CHeight > footer.offsetTop+70)) { footer.style.position = 'relative'; }
else { footer.style.position = 'absolute'; }
}
//FAQµ¿ÀÛ
function faqDown(num) {
var FirstFaqList = new Array();
var FirstFaqNum = 1;
while(eval("document.getElementById('A"+FirstFaqNum+"')")) {
FirstFaqList[FirstFaqNum] = eval("document.getElementById('A"+FirstFaqNum+"')");
FirstFaqNum++;
}
if (FirstFaqList[num].style.display == "block") {
FirstFaqList[num].style.display = 'none'
}
else {
for(i=1; i=5) ? OptionScroll : 'auto';
optionsDiv.style.top = findPosY(REPLACE_SELECTS[i]) + 'px';
optionsDiv.style.left = findPosX(REPLACE_SELECTS[i]) + 'px';
//option ³»¿ë ÀçÇö
for(var j=0; j < REPLACE_SELECTS[i].options.length; j++) {
var optionLink = document.createElement('a');
var optionTxt = document.createTextNode(REPLACE_SELECTS[i].options[j].text);
optionLink.href = "javascript:showOptions("+i+"); selectMe('"+REPLACE_SELECTS[i].id+"',"+j+","+i+");";
optionLink.appendChild(optionTxt);
optionHolder.appendChild(optionLink);
optionsDiv.appendChild(optionHolder);
}
//slect Div »ðÀÔ
document.getElementsByTagName("body")[0].insertBefore(selectArea,document.getElementsByTagName("body")[0].firstChild);
//Option Div »ðÀÔ
document.getElementsByTagName("body")[0].appendChild(optionsDiv);
//³ôÀÌ(ÀÓ½Ã;)
var OptionScroll = 83;
document.getElementById('optionsDiv'+i).style.height= (REPLACE_SELECTS[i].options.length>=5) ? OptionScroll : 'auto';
}
}
// ¿É¼Ç DIV¸¦ º¸¿©ÁÜ
function showOptions(g) {
var Element = document.getElementById("optionsDiv"+g);
if(Element.style.display == 'none') {Element.style.display = 'block';}
else if(Element.style.display == 'block') {Element.style.display = 'none';}
}
function selectMe(selectFieldId,OptionNo,selectNo) {
//¼¿·ºÆ® ¹Ú½º µ¿ÀÛ Çǵå¹é
selectField = document.getElementById(selectFieldId);
selectField.selectedIndex = OptionNo;
selectField.fireEvent('onchange');
//selectField.onchange();
//ġȯµÈ DIV¼¿·ºÆ®¿¡ ¼±ÅÃÇÑ ¿É¼Ç Àû¿ë
textVar = document.getElementById("mySelectText"+selectNo);
var newText = document.createTextNode(selectField.options[OptionNo].innerHTML);
textVar.replaceChild(newText, textVar.childNodes[0]);
}
//ÁÂÇ¥±¸ÇÔ
function findPosY(obj) {
var posTop = 0;
while (obj.offsetParent) {
posTop += obj.offsetTop;
obj = obj.offsetParent;
}
return posTop;
}
function findPosX(obj) {
var posLeft = 0;
while (obj.offsetParent) {
posLeft += obj.offsetLeft;
obj = obj.offsetParent;
}
return posLeft;
}
//Å©±â±¸ÇÔ
function findObjWidth(obj) {
if(obj.style.width) return obj.style.width;
return obj.offsetWidth;
}
function findObjHeight(obj) {
if(obj.style.height) return obj.style.height;
else return obj.offsetHeight;
}
window.onload = OnloadFunction;