﻿var ops_r = new Pco.Page.XR();
function GoShop(xx) {
    Pco.Page.RegisterJsTag('http://sb.pcocdn.net/js/detthe/prod.js');
    Pco.Page.XRFire(ops_r, '../../Ajax', 'kzo=UserBuy&get=content&pid=' + xx + '&spid=' + site.thm.pID, ops_r_de2);
}
function ops_r_de2() {
    if (ops_r.readyState == 1) { site.p._in(550, 300, sb.lang.mstr.Lodng[site.thm.lang], sb.lang.mstr.prod.tit[site.thm.lang]); }
    if (ops_r.readyState == 4) { $(p_cs3[4]).innerHTML = ops_r.responseText; if (site.ab.OnSh[0] == 'esr') { $('ord_div').innerHTML = '' } }
}
function rsspopup() { site.p._in(370, 190, sb.ic.rssHtm(sb.ic.rss[parseInt(site.thm.rss) - 1]), sb.lang.mstr.rss.tit[site.thm.lang]); }
Pco.UI.Event.ObjectAttach('b_Rss', 'click', rsspopup);
if (site.thm.tID == '2') { if (Pco.Browser.isIE && String(Pco.Browser.Version()).split('.')[0] == '9' && $('col2') != null) { s('col2').marginRight = '0px'; } s('b_Rss').top = '10px'; }
sb.com.fiximg();
function fds() {
    var srchw = sb.lang.mstr.srch[site.thm.lang] + ' ...';
    $('TextBox_Search').style.textAlign = (site.thm.lang == '1' ? 'left' : 'right');
    var vl = $('TextBox_Search').value;
    if (vl == srchw) $('TextBox_Search').value = '';
}
function ofb() { var srchw = sb.lang.mstr.srch[site.thm.lang] + ' ...'; var vl = $('TextBox_Search').value; if (vl == '' || vl == ' ') { $('TextBox_Search').value = srchw; $('TextBox_Search').style.textAlign = (site.thm.lang == '1' ? 'left' : 'right'); } }
function doitmoreSh(e) { var keyCode = e.keyCode ? e.keyCode : e.charCode; if (keyCode == 13) DoFilSearch(); }
function DoFilSearch() { var t = document.getElementById('TextBox_Search').value; if (t.lenght != 0 && t != '') { window.location = window.location.protocol + '//' + window.location.hostname + '/__page?gSerch=Gog&q=' + decodeURIComponent(t); } }
function GoGo() { var ga = document.getElementById('TextBox_Search').value; window.location = window.location.protocol + '//' + window.location.hostname + '/__page?gSerch=Gog&q=' + decodeURIComponent(ga); }
switch (site.thm.tID) {
    case '10':
        Pco.Page.RegisterJsTag("http://sb.pcocdn.net/js/thm/th10.js");
        break;
    case '2':
        Pco.Page.RegisterJsTag("http://sb.pcocdn.net/js/thm/th2.js");
        break;
    case '12':
        //$('m_f').innerHTML += '<div id="load_div" style="display: block; z-index: 2000; position: fixed; top: 0px; right: 0px; height: 800px; width: 100%; opacity: 1; background-color:black;"><div  style="display: block; z-index: 2001; position: fixed; top: 120px; right: 500px; width: 370px; height: 90px; left: 455px;padding-top:100px;"><div style="width:100%; text-align:center; line-height:30px; height:30px;direction:rtl;color:White;">' + sb.lang.mstr.Lodng[site.thm.lang] + ' ...</div><div style="width:100%; text-align:center;height:80px; background-position:center center; background-repeat:no-repeat;background-image: url(http://pcocdn.net/club/img/u/LoadingProgressBar.gif)"></div></div></div>';
        $('m_f').innerHTML += '<div id="load_div" style="display: block; z-index: 2000; position: fixed; top: 0px; right: 0px; height: 800px; width: 100%; opacity: 1; background-color:black;"><div  style="display: block; z-index: 2001; position: fixed; top: 120px; right: 500px; width: 370px; height: 90px; left: 455px;padding-top:100px;"></div></div>';
        break;
    case '13':
        s('mn_f').width = '100%';
        $('TextBox_Search').value = sb.lang.mstr.srch[site.thm.lang] + ' ...';
        s('TextBox_Search').textAlign = (site.thm.lang == '1' ? 'left' : 'right');
        s('TextBox_Search').direction = (site.thm.lang == '1' ? 'ltr' : 'rtl');
        var mnu_cun = $('D2').childNodes[0].childNodes.length;
        for (var i = 0; i < mnu_cun; i++) {
            $('D2').childNodes[0].childNodes[i].className += ' txt_al_r';
        }
        s('Support_Div').top = p('2');
        s('Support_Div').left = p('200');
        break;
    case '16':
        Pco.Page.RegisterJsTag("http://sb.pcocdn.net/js/thm/th16.js");
        break;
    default:
        break;
}
try {
    var c_cart = checkCount();
    $('cart_div').innerHTML = (c_cart != '0' ? '<a style="color:white;text-decoration:none" href="http://' + window.location.host + '/__page?shc=1">' + sb.lang.mstr.shopping.viewcart[site.thm.lang] + ' (' + c_cart + ')</a>' : sb.lang.mstr.shopping.viewcart[site.thm.lang] + ' (' + c_cart + ')')
}
catch (Error) { }
