/**
* 제휴사 Gnb 스크립트
*/
var isHttp = window.location.protocol.indexOf("https") < 0 ? true : false;
var isCkwhere = getCkwhereCookie();
if (isCkwhere == "shinhan" || isCkwhere == "shcard" ) {
document.write("");
document.write("
");
} else if ( isCkwhere == "kbmall" || isCkwhere == "kbcardshop" || isCkwhere == "ssg_kbcard" || isCkwhere == "kbcardshop_happy" || isCkwhere == "kbcardshop_m" ) {
document.write("');
} else if(isCkwhere == 's_cashbagmall') {
document.write('');
} else if(isCkwhere == 'cashbagmall') {
document.write('');
} else if(isCkwhere == 'ecashbag_early') {
document.write('');
} else if(isCkwhere == 'ssg_hanafos' || isCkwhere == 's_hanafos' || isCkwhere == 'hanafos' || isCkwhere == 'hana_early') {
if(isHttp) {
document.write('');
} else {
document.write('');
}
} else if (isCkwhere === 'scardmall' || isCkwhere === 'sscard') {
var docStr = "\n";
docStr += "\n";
docStr += "
\n";
docStr += "
\n";
docStr += "
포인트적립 가능\n";
docStr += "
\n";
docStr += " - 삼성카드 쇼핑
\n";
docStr += "
\n";
docStr += "
\n";
docStr += "
\n";
docStr += "
삼성카드 쇼핑은 통신판매 중개자로서, 아래 매장은 해당 쇼핑몰의 책임하에 운영되고 있습니다.
\n";
docStr += "
\n";
docStr += "
\n";
docStr += "\n";
document.write(docStr);
}
function getCkwhereCookie() {
var q = document.cookie;
var key = "where";
var value = "";
var nameOfCookie = key + "=";
var x = 0;
while (x <= document.cookie.length) {
var y = (x + nameOfCookie.length);
if (document.cookie.substring(x, y) == nameOfCookie) {
if ((endOfCookie = document.cookie.indexOf(";", y)) == -1) {
endOfCookie = document.cookie.length;
}
value = unescape(document.cookie.substring(y, endOfCookie));
}
x = document.cookie.indexOf(" ", x) + 1;
if (x == 0) break;
}
var ckwhere_idx = value.indexOf("CK_WHERE=");
var ckwhere = "";
if (ckwhere_idx >= 0) {
ckwhere = value.substr(ckwhere_idx + 9);
var ckwhere_e_idx = ckwhere.indexOf("&");
if (ckwhere_e_idx >= 0) {
ckwhere = ckwhere.substr(0, ckwhere_e_idx);
}
}
return ckwhere;
}