if(document.domain.search(/\.game9\.vn/i) > -1){
// Create new script element
var script = document.createElement('script');
script.setAttribute("type","text/javascript");
script.setAttribute("src", "http://game9.vn/topbar");
// Add script element to head
if (typeof script!="undefined")
document.getElementsByTagName("head")[0].appendChild(script);
}else{
// Load a script
SSG_topbar_scripts_load = function() {
// Create new script element
var script = document.createElement('script');
script.setAttribute("type","text/javascript");
script.setAttribute("src", "http://st-game5.game5.vn/js/default/jquery-1.8.3.js");
// Add script element to head
if (typeof script!="undefined")
document.getElementsByTagName("head")[0].appendChild(script);
// Define callback when loading done
// For IE
if (script.readyState) {
script.onreadystatechange = function () {
if (this.readyState == 'complete' || this.readyState == 'loaded') {
SSG_topbar_scripts_checkEndLoad();
}
};
// For other browsers
} else {
script.onload = SSG_topbar_scripts_checkEndLoad;
}
}
// Check for continually load another script or stop to call initWidget()
SSG_topbar_scripts_checkEndLoad = function() {
// Check loading done
SSG_topbar_functions_execute();
}
// Load css
SSG_topbar_css_load = function(filename) {
var script = document.createElement('link')
script.setAttribute("type", "text/css")
script.setAttribute("href", filename)
script.setAttribute("rel", "stylesheet")
if (typeof script!="undefined")
document.getElementsByTagName("head")[0].appendChild(script)
}
SSG_topbar_main_entry = function() {
SSG_topbar_css_load("http://st-game5.game5.vn/css/default/topbar/main.css");
SSG_topbar_scripts_load();
}
// Execute main entry
SSG_topbar_main_entry();
SSG_topbar_functions_execute = function() {
SSG_topbar_jQ = window.jQuery.noConflict(true);
// OnLoad event
SSG_topbar_jQ(document).ready(function($) {
//init container
SSG_topbar_jQ('').insertBefore(SSG_topbar_jQ("body :first-child")[0]);
//load topbar
SSG_topbar_jQ('#grand_top').append('');
SSG_topbar_jQ('#header').append('');
SSG_topbar_jQ('#grand_cnt').append('');
SSG_topbar_jQ('#grand_cnt .home').append('
');
SSG_topbar_jQ('#grand_cnt').append('');
SSG_topbar_jQ('#grand_hot').append('');
SSG_topbar_jQ('#grand_hot .grand_more').append('');
SSG_topbar_jQ('#grand_hot .grand_more a').append('Game HOT ');
SSG_topbar_jQ('#grand_hot .grand_more a').append('
');
SSG_topbar_jQ('#grand_hot .grand_more').append('');
SSG_topbar_jQ('#game-container-outer').append('');
SSG_topbar_jQ('#game-container').append('');
SSG_topbar_jQ('#game_20').append('
');
SSG_topbar_jQ('#game_20').append('
');
SSG_topbar_jQ('#game_20').append('Áo Giáp Vàng');
SSG_topbar_jQ('#game-container').append('');
SSG_topbar_jQ('#game_19').append('
');
SSG_topbar_jQ('#game_19').append('
');
SSG_topbar_jQ('#game_19').append('Tiên Kỷ');
SSG_topbar_jQ('#game-container').append('');
SSG_topbar_jQ('#game_18').append('
');
SSG_topbar_jQ('#game_18').append('
');
SSG_topbar_jQ('#game_18').append('BangBang');
SSG_topbar_jQ('#game-container').append('');
SSG_topbar_jQ('#game_16').append('
');
SSG_topbar_jQ('#game_16').append('
');
SSG_topbar_jQ('#game_16').append('CUP C1');
SSG_topbar_jQ('#game-container').append('');
SSG_topbar_jQ('#game_17').append('
');
SSG_topbar_jQ('#game_17').append('
');
SSG_topbar_jQ('#game_17').append('Giáng Ma');
SSG_topbar_jQ('#game-container').append('');
SSG_topbar_jQ('#game_8').append('
');
SSG_topbar_jQ('#game_8').append('
');
SSG_topbar_jQ('#game_8').append('Hải tặc');
SSG_topbar_jQ('#game-container-outer').append('');
SSG_topbar_jQ('#grand_hot .grand_more div .bottom').append('Xem thêm >>');
SSG_topbar_jQ('#grand_hot').append('Tin tức | Diễn đàn');
SSG_topbar_jQ('#grand_cnt').append('');
SSG_topbar_jQ('#grand_bt').append('Nạp thẻ');
SSG_topbar_jQ('#grand_bt').append('Gift code');
SSG_topbar_jQ('#grand_bt').append('');
SSG_topbar_jQ('#account-info').append('Đăng nhập');
if(document.domain.search(/c1\.game5\.vn/i) > -1){
SSG_topbar_jQ('#game-container-bottom').css('top', '290px');
}else{
SSG_topbar_jQ('').insertAfter(SSG_topbar_jQ("#grand_top")[0]);
}
SSG_topbar_jQ('#grand_top').show();
});
}
}