Меню сайта
  • Основное
  • Наш опрос
    Вы читер?
    Всего ответов: 114
    Мини-чат
    200
    if (!window.VK) window.VK = {};if (!VK.Merchant) { VK.Merchant = { _popups: [], _gens: [], _base_domain: '', _ge: function(id) { return document.getElementById(id); }, button: function(gen, but, index) { if (!but) but = {type: 'round'}; if (but === but.toString()) but = {type: 'round', text: but}; if (!but.text) but.text = 'Оплатить'; if (!but.text_right) but.text_right = 'Контакте'; return VK.Merchant.btn(gen, but, 'VK.Merchant.click', index); }, wishbutton: function(gen, but, index) { if (!but) but = {type: 'round'}; if (but === but.toString()) but = {type: 'round', text: but}; if (!but.text) but.text = 'Хочу'; if (!but.text_right) but.text_right = 'Подарок'; return VK.Merchant.btn(gen, but, 'VK.Merchant.wishclick', index); }, btn: function(gen, but, onclick, index) { if (index === undefined) { this._gens.push(gen); this._popups.push(false); index = this._popups.length - 1; } else { this._gens[index] = gen; } if (but.type == 'button') { return '' + '' + '' + '' + '
    ' + but.text + '
    ' + but.text_right + '
    '; } else if (but.type == 'round') { return '' + '' + '' + '' + '' + '' + '
    ' + but.text + '
    ' + but.text_right + '
    '; } else { return '' + but.text + ''; } }, change: function(state, index) { var row = this._ge('vkpay' + index).rows[0]; var elems = [row.cells[1].firstChild.firstChild, row.cells[3].firstChild.firstChild]; for (var i = 0; i < 2; ++i) { var elem = elems[i]; if (state == 0) { elem.style.backgroundColor = '#6d8fb3'; elem.style.borderTopColor = '#7e9cbc'; elem.style.borderLeftColor = elem.style.borderRightColor = elem.style.borderBottomColor = '#5c82ab'; } else if (state == 1) { elem.style.backgroundColor = '#84a1bf'; elem.style.borderTopColor = '#92acc7'; elem.style.borderLeftColor = elem.style.borderRightColor = elem.style.borderBottomColor = '#7293b7'; } else if (state == 2) { elem.style.backgroundColor = '#6688ad'; elem.style.borderBottomColor = '#7495b8'; elem.style.borderLeftColor = elem.style.borderRightColor = elem.style.borderTopColor = '#51779f'; } } var elems = [row.cells[0].firstChild, row.cells[4].firstChild]; for (var i = 0; i < 2; ++i) { var elem = elems[i]; if (elem) { if (state == 0) { elem.style.backgroundPosition = '-21px -' + (42 + i * 21) + 'px'; } else if (state == 1) { elem.style.backgroundPosition = '-23px -' + (42 + i * 21) + 'px'; } else if (state == 2) { elem.style.backgroundPosition = '-25px -' + (42 + i * 21) + 'px'; } } } if (state == 0 || state == 2) { row.cells[2].firstChild.style.backgroundPosition = '0px -42px'; } else if (state == 1) { row.cells[2].firstChild.style.backgroundPosition = '0px -63px'; } }, click: function(index) { var details = (this._gens[index].prototype.toString.call(this._gens[index]) === '[object Function]') ? this._gens[index]() : this._gens[index]; if (!details || !details.items || !details.items.length) return; var params = {act: 'auth'}; var fields = ['merchant_id', 'fail_url', 'success_url', 'required_fields']; for (var i = 0; i < fields.length; ++i) { if (details[fields[i]]) { params[fields[i]] = details[fields[i]]; } } for (var i = 0; i < details.items.length; ++i) { for (var j in details.items[i]) { params['item_' + j + '_' + i] = details.items[i][j]; } } for (var i in details.custom) { i = parseInt(i) || 0; if (i >= 0 && i < 10) { params['custom_' + i] = details.custom[i]; } } if (!params.merchant_id || !params.fail_url || !params.success_url) return; var url = details.testmode ? 'paytest.php' : 'pay.php'; VK.Merchant.popup(index, url, params, {width: 554, height: 349}); }, wishclick: function(index) { var details = (this._gens[index].prototype.toString.call(this._gens[index]) === '[object Function]') ? this._gens[index]() : this._gens[index]; if (!details || !details.item_id || !details.merchant_id) return; var params = {act: 'auth'}; var fields = ['merchant_id', 'item_id', 'item_name', 'item_description', 'item_currency', 'item_price', 'shipping_price', 'item_photo_url', 'item_category', 'item_tags', 'item_digital', 'sig']; for (var i in fields) { if (details[fields[i]] !== window.undefined) { params[fields[i]] = details[fields[i]]; } } var url = details.testmode ? 'wishlisttest.php' : 'wishlist.php'; VK.Merchant.popup(index, url, params, {width: 554, height: 349}); }, popup: function(index, url, params, options) { var popupName = 'vkpay' + params.merchant_id + '_' + index; var width = options.width || 554; var height = options.height || 349; var left = (screen.width - width) / 2; var top = (screen.height - height) / 2; var popupParams = 'scrollbars=0, resizable=1, menubar=0, left=' + left + ', top=' + top + ', width=' + width + ', height=' + height + ', toolbar=0, status=0'; var popup = this._popups[index] = window.open('', popupName, popupParams); try { if (!this._base_domain) { for (var elem = document.getElementsByTagName('head')[0].firstChild; elem; elem = elem.nextSibling) { var m; if (elem.tagName && elem.tagName.toLowerCase() == 'script' && (m = elem.src.match(/(http:\/\/(?:[a-z0-9_\-\.]*\.)?(?:vk\.com|vkontakte\.ru)\/)js\/api\/merchant\.js(?:\?|$)/))) { this._base_domain = m[1]; } } } if (!this._base_domain) { this._base_domain = 'http://vkontakte.ru/'; } var text = '
    '; for (var i in params) { text += ''; } text += '
    '; text += ''; text = '' + '' + '' + '' + text + ''; popup.document.write(text); } catch (e) { } popup.blur(); popup.focus(); } }}
    Аккаунт
    Поиск
    Друзья сайта
    Наш Банер
     
     
     cs-portal  
    Counter-Strike
    Team**x5 Counter-Strike
    Сайт клана TuborG
    http://rgc-cs.clan.su
    Cайт клана [M.F.G]
    Cайт клана X.Team 
    Статистика
    Онлайн всего: 1
    Шпионов 1
    Наших 0