!window.jQuery && document.write(unescape('%3Cscript src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"%3E%3C/script%3E'));
var outbanner_edge_datas = [];
var outbanner_edge_codes = [];
outbanner_edge_datas[0] = "
";
outbanner_edge_codes[0] = '392';
var rand_edge_num = Math.floor((Math.random()*outbanner_edge_datas.length));
var banner_HtmlTag = outbanner_edge_datas[rand_edge_num];
var scriptObjEdge;
var SiteUrl = window.location.host;
var szUrl = escape(window.location.pathname + window.location.search);
var killScroll = false;
var adURL = "";
function getScrollTop() {
var scrOfY = 0
if (typeof(window.pageYOffset) == 'number') {
scrOfY = window.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop) {
scrOfY = document.documentElement.scrollTop;
}
else if (document.body && document.body.scrollTop) {
scrOfY = document.body.scrollTop;
}
return scrOfY;
}
function scrollEnd() {
var scrollHeight = document.compatMode == "CSS1Compat" ? document.documentElement.scrollHeight : document.body.scrollHeight;
var clientHeight = document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight;
var scrollPos = scrollHeight - getScrollTop();
//document.getElementById("asdsadsad").innerHTML = scrollHeight+'½ºÅ©·Ñ³ôÀÌ/'+clientHeight+'´ÙÅ¥¸àƮȸéÅ©±â/'+getScrollTop()+'½ºÅ¬·Ñ»ó´Ü
'+scrollPos +'<= ('+clientHeight+' + 100)';
if (scrollPos <= (clientHeight + 100)){
if (!killScroll) {
killScroll = true;
viewAd();
}
}
}
function viewAd() {
if (adURL != "") {
document.getElementById("openmatch_ad").innerHTML = adURL;
}
}
function scrollBottom() {
var clientHeight = document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight;
var scrollHeight = document.compatMode == "CSS1Compat" ? document.documentElement.scrollHeight : document.body.scrollHeight;
var imgHeight = document.getElementById("openmatch_ad_img").height;
//alert(imgHeight);
if (imgHeight >= clientHeight) {
document.getElementById("openmatch_ad").style.paddingBottom = "0px";
//scrollTo(0, scrollHeight);
$("html, body").animate({ scrollTop: scrollHeight }, 1500);
}
else {
var paddingSize = parseInt((clientHeight - imgHeight) / 2, 10);
document.getElementById("openmatch_ad").style.paddingBottom = paddingSize + "px";
//scrollTo(0, scrollHeight);
$("html, body").animate({ scrollTop: scrollHeight }, 1500);
}
}
function addEvent(obj, type, listener) {
if (window.addEventListener) obj.addEventListener(type, listener, false);
else obj.attachEvent('on'+type, listener);
}
function execAdEdge(value) {
//Scroll Event Add
adURL = value;
addEvent(window, "scroll", scrollEnd);
//scriptObjEdge.removeScriptTag();
}
function execNoAdEdge() {
scriptObjEdge.removeScriptTag();
}
function sleep(msecs) {
var start = new Date().getTime();
var cur = start;
while (cur - start < msecs) {
cur = new Date().getTime()
}
}
function checkBrowserEdge() {
if (navigator.userAgent.indexOf("Chrome") > -1) {
return false;
}
else if (navigator.userAgent.indexOf("Safari") > -1) {
return false;
}
else
return false;
}
if (!checkBrowserEdge()) {
execAdEdge(banner_HtmlTag);
document.write("