function URLEncode (clearString) { var output = ''; var x = 0; clearString = clearString.toString(); var regex = /(^[a-zA-Z0-9_.]*)/; while (x < clearString.length) { var match = regex.exec(clearString.substr(x)); if (match != null && match.length > 1 && match[1] != '') { output += match[1]; x += match[1].length; } else { if (clearString[x] == ' ') output += '+'; else { var charCode = clearString.charCodeAt(x); var hexVal = charCode.toString(16); output += '%' + hexVal.toUpperCase(); } x++; } } return output; } function getBoundsObject(tag){ var techbug = new Object(); if(tag !=null && tag != undefined ){ if(tag.getBoundingClientRect){ //IE, FF3 var rect = tag.getBoundingClientRect(); techbug.left = rect.left + (document.documentElement.scrollLeft || document.body.scrollLeft); techbug.top = rect.top + (document.documentElement.scrollTop || document.body.scrollTop); techbug.width = rect.right - rect.left; techbug.height = rect.bottom - rect.top +1; // +1 = Moz¿Í ¸ÂÃã } else if (document.getBoxObjectFor) { // gecko ¿£Áø ±â¹Ý FF3Á¦¿Ü var box = document.getBoxObjectFor(tag); techbug.left = box.x; techbug.top = box.y; techbug.width = box.width; techbug.height = box.height; }else { techbug.left = tag.offsetLeft; techbug.top = tag.offsetTop; techbug.width = tag.offsetWidth; techbug.height = tag.offsetHeight + 3; // +1 = Moz¿Í ¸ÂÃã var parent = tag.offsetParent; if (parent != tag) { while (parent) { techbug.left += parent.offsetLeft; techbug.top += parent.offsetTop; parent = parent.offsetParent; } } // ¿ÀÆä¶ó¿Í »çÆĸ®ÀÇ 'absolute' postionÀÇ °æ¿ì bodyÀÇ offsetTopÀ» À߸ø °è»ê º¸Á¤ var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf('opera') != -1 || ( ua.indexOf('safari') != -1 && getStyle(tag, 'position') == 'absolute' )) { techbug.top -= document.body.offsetTop; } } return techbug; } } function sub_menu_view(no, mode){ if(mode=='on'){ var tag = document.getElementById('gameangelmenu'+no); var btn_posiction = getBoundsObject(tag); document.getElementById('gameangel_submenu'+no).style.top = (btn_posiction.top+12)+'px'; document.getElementById('gameangel_submenu'+no).style.left = btn_posiction.left+'px'; document.getElementById('gameangel_submenu'+no).style.display = ''; }else{ document.getElementById('gameangel_submenu'+no).style.display = 'none'; } } function getCookie_top(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i·Î±×¾Æ¿ô'; // ºñȸ¿ø } else { HTML_in += ''; } HTML_in += ''; document.write(HTML_in); function angel_event_setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); //todayDate.setHours(0,0,0,0); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + "; domain=fg.gameangel.com" } function closedWin(cookie_key,layer_id) { if(cookie_key)angel_event_setCookie( cookie_key, "done" , 7 ); document.getElementById(layer_id).style.display = 'none'; } function location_go(url){ //location.href = url; window.open(url,'_blank'); } if(location.href == "http://fg.gameangel.com/") { cookiedata = document.cookie; }