﻿var repsdf = false;

function moveElm(elmId, newParentId) {
    var ad = document.getElementById(elmId);
    var con = document.getElementById(newParentId);
    if (con != null && ad != null) {
        con.appendChild(ad);
        ad.style.display = 'inline';
    }
}

function repDateParsing() {
    if (repsdf) return;
    Date.__std_parse = Date.parse;
    Date.parse = function(s){
        try {					
            return Date.__std_parse(s);
        } 
        catch (e){
            return(s);
            var d = Date._jsParse(s);
            if (d) {
                return d;
            } 
            else {
                throw e;
            }
        }			
     }	
     repsdf = true;
  }

var backColors = new Array ('ffe7e7', 'ddfcd6', 'fffecc');
var ads = new Array('250x250_as');
var selAd = ads[Math.floor(Math.random() * ads.length)];
var selBackColor = backColors[Math.floor(Math.random() * backColors.length)];



function setBackColor() {
    if (google_ad_format == selAd) {
        google_color_bg = selBackColor;
    }
}


google_ad_client = '';
google_ad_width = 0;
google_ad_height = 0;
google_ad_format = '';
google_ad_type = '';
google_ad_channel = '';
google_color_border = '';
google_color_bg = '';
google_color_link = '';
google_color_text = '';
google_color_url = '';
google_ui_features = '';
google_cpa_choice = '';
google_ad_slot = '';


function adselector() {
    var n = Math.floor(Math.random()*2) + 1;
    if (n == 1)
        General_top_LBi_728x90();
    else
        General_top_LBt_728x90();
}

/* ES_B_Root_T_336x280 */
function Root_T_336x280() {
repDateParsing();
google_ad_client = "pub-4545597397921775";
google_ad_slot = "2344496449";
google_ad_width = 336;
google_ad_height = 280;
}

/* ES_B_Root_T_468x60 */
function Root_T_468x60() {
repDateParsing();
google_ad_client = "pub-4545597397921775";
google_ad_slot = "1567529006";
google_ad_width = 468;
google_ad_height = 60;
}

/*ES_B_Root_IL_468x15*/
function Root_IL_468x15() {
repDateParsing();
google_ad_client = "pub-4545597397921775";
google_ad_slot = "6736419057";
google_ad_width = 468;
google_ad_height = 15;
}

/*ES_B_Root_T_728x90*/
function Root_T_728x90() {
repDateParsing();
google_ad_client = "pub-4545597397921775";
google_ad_slot = "2360459215";
google_ad_width = 728;
google_ad_height = 90;
}

/*ES_B_SST_160x600*/
function SST_160x600() {
repDateParsing();
google_ad_client = "pub-4545597397921775";
google_ad_slot = "0931277008";
google_ad_width = 160;
google_ad_height = 600;
}

/*ES_B_Viewtop_IL4_468x15*/
function Viewtop_IL4_468x15() {
repDateParsing();
google_ad_client = "pub-4545597397921775";
google_ad_slot = "0364425621";
google_ad_width = 468;
google_ad_height = 15;
}
