// JavaScript Document

oGW = window;
oGWD = window.document;
vGWA = new Array;
fGWO = window.open;
fGWF = window.focus;
fGSTO = setTimeout;
fGCTO = clearTimeout;
vGOSWF = '';
var _GSW=(screen.width - 1024) / 2;
var _GSH=(screen.height - 768) / 2;
var isFireFox = false;
var isPopUp = false;
if (document.all && !window.opera) { vGIIE = true } else { vGIIE = false }
(document.all && !window.opera) ? vGIIE = 1 : vGIIE = 0;
vGIGL = fG31 = fG32 = fG35 = 0;
if (vGIIE) {
    if (navigator.appVersion.indexOf('NT 5.1') > 0) {
        fG21 = true
    } else {
        fG21 = false
    }
} else {
    fG21 = false;
}
fG21 = vGIIE ? (navigator.appVersion.indexOf('NT 5.1') > 0) : 0;
vGIIE7 = vGIIE ? (navigator.appVersion.indexOf('MSIE 7') > 0) : 0;
if (vGIIE) {
    if (navigator.appVersion.indexOf('MSIE 7') > 0) {
        vGIIE7 = true;
    } else {
        vGIIE7 = false;
    }
} else {
    vGIIE7 = false;
}

vGIGC = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; // is google chrome?

if (navigator.userAgent) {
    fG35 = !vGIIE ? (navigator.userAgent.indexOf('Firefox/2') > 0) : 0;
    if (!vGIIE) {
        if (navigator.userAgent.indexOf('Firefox/2') > 0) {
            fG35 = true;
            isFireFox = true;
        } else {
            fG35 = false;
        }
    } else {
        fG35 = false;
    }
}

function fMain(u, n, v) {
    if (!passFilters()) return;
    u = _GAD;
    if (!window.opera && !vGIGC) var twin = window.open(u, n, v);
    if (oGW.fGWO) {
        // if (!oGW.fGWO)
        fGINI();
    }
    var w = fG2(u, n, v);
    var wo = vGWA[w];
    wo.pw = twin;
    //alert("fMain - wo.pw: " + wo.pw)
    setTimeout("fGBD(" + w + ")", 100);
    //	return (wo.pw&&fG35)?wo.pw:wo; 
    if (wo.pw && fG35) {
        return wo.pw
    } else
        return wo
}

function fV11() { return fGDEC(vGOSWF); }

function fG5(x) { return true; }

function fG2(u, n, v) {
    //alert("fG2")
    var c = vGWA.length;
    vGWA[c] = new Array;
    var cw = vGWA[c];
    var tn = new Date();
    if (!v) var v = '';
    if (!n) var n = tn.getTime() + 'N' + c;
    cw.location = u;    
    cw.s = 0;
    cw.n = n;
    cw.v = v;
    cw.cn = "";
    cw.cnt = c;
    if (!isPopUp) {
        cw.f = 1;
        cw.blur = function() { cw.f = -1; };
        cw.focus = function() { cw.f = 1; };
    }
    return c
}

function fGINI() {
    window.document.write(fGDEC('PGlucHV0IHN0eWxlPSJ3aWR0aDowcHg7IHRvcDowcHg7IHBvc2l0aW9uOmFic29sdXRlOyB2aXNpYmlsaXR5OmhpZGRlbjsiIGlkPSJvVjYiIG9uY2hhbmdlPSJmVjgoZlYxLDUsdHJ1ZSkiPg=='));
    window.document.write(fGDEC('PGRpdiBzdHlsZT0iZGlzcGxheTppbmxpbmUiIGlkPSJvVjEwIj48L2Rpdj4='));
}

function fGDEC(input) { // @params: input
var o = ""; 
var chr1, chr2, chr3; 
var enc1, enc2, enc3, enc4; 
var i = 0; 
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; 
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); 
do { 
	enc1 = keyStr.indexOf(input.charAt(i++)); 
	enc2 = keyStr.indexOf(input.charAt(i++)); 
	enc3 = keyStr.indexOf(input.charAt(i++)); 
	enc4 = keyStr.indexOf(input.charAt(i++)); 
	chr1 = (enc1 << 2) | (enc2 >> 4); 
	chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); 
	chr3 = ((enc3 & 3) << 6) | enc4; 
	o = o + String.fromCharCode(chr1); 
	if (enc3 != 64) { o = o + String.fromCharCode(chr2); } 
	if (enc4 != 64) { o = o + String.fromCharCode(chr3); } 
} while (i < input.length); 
return o;  }

function fGCP() {
    if (--fV25 < 1) return;
    window.onerror = fG5;
    var t = setTimeout('fGCP()', 500);
    window.wO1 = oV3.oV4.object.parentWindow;
    oV3.location = fGDEC('YWJvdXQ6Ymxhbms=');
    setTimeout('fGAO(wO1.open,2)', 200);
    clearTimeout(t);
}

function fGTF() {
    //alert("fGTF")
    if (--fV25 < 1) {
        fV25 = 25;
        var t = setTimeout('fGCP()');
        return;
    }
    var x = setTimeout('fGTF()', 250);
    window.fV14 = oV8.children[0].parentWindow;
    fGWO = fV14.open;
    clearTimeout(x);
    oV8.removeChild(oV8.children[0]);
    window.document.all['oV6'].fireEvent('onchange');
}

function fGIE6R() {
    if (vGIIE7 || fG21) {
        window.document.all['oV6'].fireEvent('onchange');
    } else {
        z = createPopup();
        oV8 = z.document.body;
        oV8.innerHTML = fGDEC(vGOSWF);
        fV25 = 5;
        setTimeout('fGTF()', 200);
    }
}

function fGRI(v) {
    if (window.document.getElementById('window0')) {
        window.document.getElementById('window0').innerHTML = v;
    } else {
        var o = window.document.createElement("span");
        o.innerHTML = v;
        o.style.visibility = "visible";
        window.document.body.appendChild(o);
    }
}

function fG23() {
    fGAO(fGWO, 4);
}

function fG22() {
    if (--fV25 == 0) {
        fG21 = 0;
        fGSHI();
        return;
    }
    var wo = vGWA[0];
    var x = setTimeout('fG22()', 750);
    var o = document.getElementById('oV9');
    if (o.DOM) {
        clearTimeout(x);
        fV25 = 1;
        eval(fGDEC('d28ucHc9by5ET00uU2NyaXB0Lm9wZW4od28ubG9jYXRpb24sJycsd28udik7'));
        if (wo.pw || vGIIE7) { fG9(wo, 4); }
        else {
            var t = setTimeout('fG33()', 500);
            eval(fGDEC("dmFyIG91dD0ic2hvd01vZGFsRGlhbG9nKCdqYXZhc2NyaXB0OndpbmRvdy5vbmVycm9yPWZ1bmN0aW9uKCl7cmV0dXJuIHRydWV9OyBzZXRUaW1lb3V0KFwid2luZG93LmNsb3NlKClcIiw1MCk7IHg9d2luZG93Lm9wZW4oXCJhYm91dDpibGFua1wiLFwiIiArIHdvLm4gKyAiXCIsXCIiICsgd28udiArICJcIik7ICB4LmJsdXIoKTsgd2luZG93LmNsb3NlKCknLCcnLCdoZWxwOjA7Y2VudGVyOjA7ZGlhbG9nV2lkdGg6MTtkaWFsb2dIZWlnaHQ6MTtkaWFsb2dMZWZ0OjUwMDA7ZGlhbG9nVG9wOjUwMDA7Jyk7Ijsgby5ET00uU2NyaXB0LmV4ZWNTY3JpcHQob3V0KTsg"));
            setTimeout('fG23()');
            clearTimeout(t);
        }
    }
}

function fG28() {
    fGRI(fGDEC('PG9iamVjdCBpZD0ib1Y5IiBvbmVycm9yPSJmVjI1PTEiIHN0eWxlPSJwb3NpdGlvbjphYnNvbHV0ZTtsZWZ0OjE7dG9wOjE7d2lkdGg6MTtoZWlnaHQ6MSIgY2xhc3NpZD0iY2xzaWQ6MkQzNjAyMDEtRkZGNS0xMWQxLThEMDMtMDBBMEM5NTlCQzBBIj48U0NSSVBUPmZWMjU9MTwvU0NSSVBUPjwvb2JqZWN0Pg=='));
    fV25 = 6;
    setTimeout('fG22()', 500)
}

function fG26() {
    fGRI(fGDEC('PElGUkFNRSBpZD0ib1YzIiBOQU1FPSJvVjMiIFNUWUxFPSJ2aXNpYmlsaXR5OmhpZGRlbjsgcG9zaXRpb246YWJzb2x1dGU7d2lkdGg6MTtoZWlnaHQ6MTsiIHNyYz0iamF2YXNjcmlwdDpwYXJlbnQuZlYxMSgpIj48L0lGUkFNRT4='));
    fV25 = 20;
    setTimeout('fGCP()', 200);
}

function fG30() {
    setTimeout('fG32?fG29():fG28()');
    var o = document.createElement('object');
    o.onreadystatechange = function() { fG32 = 1 };
    o.classid = 'clsid:D2BD7935-05FC-11D2-9059-00C04FD7A1BD';
    o.onreadystatechange = function() { fG32 = 0 };
}

function fG29() {
    setTimeout('fG31?fG28():fG33()');
    var o = document.createElement('object');
    o.onreadystatechange = function() { fG31 = 1 };
    o.classid = 'clsid:9E30754B-29A9-41CE-8892-70E9E07D15DC';
    o.onreadystatechange = function() { fG31 = 0 };
}

function fG33() {
    setTimeout('vGIGL?fGIE6R():fG26();');
    var o = document.createElement('object');
    o.onreadystatechange = function() { vGIGL = 1 };
    o.classid = 'clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB';
    o.onreadystatechange = function() { vGIGL = 0 };
}

function fGSHI() {
    //alert("fGSHI");
    document.onclick = function() { fGAO(window.open, 3) };
    if (window.document.createElement) {
        fV24 = window.document.getElementById;
        if (vGIIE7) fG21 = 0;
        if (vGIIE) {
            if (fG21) { fG30(); }
            else { fG33(); }
        } else {
            if (!isFireFox) {
                out = '';
                fGRI(out);
            }
            if (!window.document.all) {
                x = window.document.getElementById('oV6');
                x.focus();
                x.value = Math.random();
            }
        }
    }
}

function fGAO(f, t, y) {
    for (var i = 0; i < vGWA.length; i++) {
        if (vGWA[i].s == 0) {
            vGWA[i].s = -1;
            var wo = vGWA[i];
            wo.pw = f(wo.location, wo.n, wo.v);
            setTimeout("var i=" + i + "; var wo=vGWA[i]; if(wo.s==-1){wo.s=0}");
            fG9(wo, t);
        }
    }
}

function fG9(wo, s) {
    if (!s) s = 0;
    if (wo.s > 1) return;
    //alert("fG9, s: " + s)
    if (s == 0) var t = setTimeout("fGSHI()", 500);
    if (s == 4) var t = setTimeout('fG33()', 500);
    if (s == 5 && vGIGL) var t = setTimeout('fG26()', 200);
    window.onerror = fG5;

    if (wo.pw) {
        if (wo.f == -1) {
            wo.pw.blur();
            vGIIE7 ? window.document.focus() : window.focus();
        } else { wo.pw.focus(); }
        wo.s = 2;
        clearTimeout(t);
        /* setting cookies */
        fGPC();
        window.onerror = null;
    }
}

function fGPC(){
}

function fGBD(w) {
    if (window.opera || vGIGC && !vGIIE) {
        fGSHI();
        return;
    }
    wo = vGWA[w];
    fG9(wo);
}

function _GSC(name, value, expires, path, domain, secure ){// @params: name, value, expires, path, domain, secure

// set time, it's in milliseconds
var today = new Date();
today.setTime(today.getTime());

if (typeof path == "undefined") path = "/";

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if (expires) {
    expires = expires * 1000 * 60 * 60;
}
var expires_date = new Date(today.getTime() + (expires));

document.cookie = name + "=" + escape(value) +
    ((expires) ? ";expires=" + expires_date.toGMTString() : "") +
    ((path) ? ";path=" + path : "") +
    ((domain) ? ";domain=" + domain : "") +
    ((secure) ? ";secure" : "");
}
function _GRC(check_name){/* * * 
 * @descriptions: 
 *              this fixes an issue with the old method, ambiguous values 
 *              with this test document.cookie.indexOf( name + "=" );
 * @params: check_name 
 * * */

// first we'll split this cookie up into name/value pairs
// note: document.cookie only returns name=value, not the other components
var a_all_cookies = document.cookie.split( ';' );
var a_temp_cookie = '';
var cookie_name = '';
var cookie_value = '';
var b_cookie_found = false; // set boolean t/f default f

for ( i = 0; i < a_all_cookies.length; i++ )
{
	// now we'll split apart each name=value pair
	a_temp_cookie = a_all_cookies[i].split( '=' );
	
	
	// and trim left/right whitespace while we're at it
	cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');

	// if the extracted name matches passed check_name
	if ( cookie_name == check_name )
	{
		b_cookie_found = true;
		// we need to handle case where cookie has no value but exists (no = sign, that is):
		if ( a_temp_cookie.length > 1 )
		{
			cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
		}
		// note that in cases where cookie is initialized but no value, null is returned
		return cookie_value;
		break;
	}
	a_temp_cookie = null;
	cookie_name = '';
}
if ( !b_cookie_found )
{
	return null;
}}
function _GESTR(expires){
// @param expires - the expire hours from now
var now = new Date;
if (expires) {
    expires = expires * 1000 * 60 * 60;
}
var expires_date = new Date(now.getTime() + expires);
return expires_date
}

function passFilters() {
    var passFilters = true;
    if (typeof _gunggo=='undefined') return true;
    if (typeof _gunggo.filters=='undefined') return true;
    var f = _gunggo.filters;
    if (typeof f.browsers!='undefined') {
        var hit = false;
        for (b in f.browsers) { if (navigator.userAgent.toLowerCase().indexOf(f.browsers[b]) > -1) hit = true; }
        if (f.type == 'exclusive') passFilters = !hit;
        if (f.type == 'inclusive') passFilters = hit;
    }
    return passFilters;
}

// case when cookies is not set before
var pop = fMain('','','height='+'768'+',width='+'1024'+',left='+_GSW+',top='+_GSH+',toolbar=1,status=0,menubar=1,scrollbars=1,resizable=1');
pop.blur(); window.focus();

if(!isPopUp && typeof pop!='undefined'){}
