if(cookie_enabled()){
var swfFLAdHeight=320;
var swfFLAdWidth=320;
var swfRandom='473458782';
var swfFLClickTag='/go.php?bID=10&target=_self';
//swfFLClickTag = escape (swfFLClickTag);
var swfFLLocation='/img/uptrend_2_320x320.swf';


var myWidth = 0, myHeight = 0;
if(window.self != window.parent){
if( typeof( parent.window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = parent.window.innerWidth;
myHeight = parent.window.innerHeight;
} else if( parent.document.documentElement && ( parent.document.documentElement.clientWidth || parent.document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = parent.document.documentElement.clientWidth;
myHeight = parent.document.documentElement.clientHeight;
} else if( parent.document.body && ( parent.document.body.clientWidth || parent.document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = parent.document.body.clientWidth;
myHeight = parent.document.body.clientHeight;
}
} else {
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
}
var FLflashOffsetLeft=myWidth/2-swfFLAdWidth/2;
var FLflashOffsetTop=myHeight/2-swfFLAdHeight/2;

if(FLflashOffsetLeft < 0){
  FLflashOffsetLeft = 350;
}
if(FLflashOffsetTop < 0){
  FLflashOffsetTop = 150;
}

var creativeFlashVersion = 6;
var IE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var Win = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
var FlashVersion = 0;
var flash2 = false;
var flash3 = false;
var flash4 = false;
var flash5 = false;
var flash6 = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
FlashVersion = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin.description.charAt(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin.description.indexOf(".") - 1);
}
if (IE && Win) {
document.writeln('<SCR' + 'IPT LANGUAGE=VBScript>');
document.writeln('on error resume next');
document.writeln('flash2 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2")))');
document.writeln('flash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))');
document.writeln('flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))');
document.writeln('flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))');
document.writeln('flash6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))');
document.writeln('</SCR' + 'IPT>');
} if(navigator.userAgent.indexOf("WebTV") >= 0) FlashVersion = 2;
for (x=2; x<=6; x++) {
if (eval('flash' + x)) FlashVersion = x;
}
if (FlashVersion >= creativeFlashVersion) {
  document.write('<div id="FlashDiv" style="position:absolute; left:' + FLflashOffsetLeft + 'px; top:' + FLflashOffsetTop + 'px; width:' + swfFLAdWidth + 'px; height:' + swfFLAdHeight + 'px; z-index:65535">');
  document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH=' + swfFLAdWidth + ' HEIGHT=' + swfFLAdHeight + ' id=tile ALIGN="">');
  document.write('<PARAM NAME=movie VALUE=' + swfFLLocation + '?link1=' + swfFLClickTag + '>');
  document.write('<PARAM NAME=loop VALUE=true>');
  document.write('<PARAM NAME=quality VALUE=high>');
  document.write('<PARAM NAME=wmode VALUE=transparent>');
  document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
  document.write('<EMBED src=' + swfFLLocation +  '?link1=' + swfFLClickTag + ' loop=true quality=high wmode=transparent bgcolor=#FFFFFF WIDTH=' + swfFLAdWidth + ' HEIGHT=' + swfFLAdHeight + ' ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
  document.write('</EMBED>');
  document.write('</OBJECT>');
  document.write('</div>');
  eval('function hide(){var mydiv=document.getElementById("FlashDiv");mydiv.style.visibility="hidden";}function scrollevent(){document.getElementById("FlashDiv").style.top = document.body.scrollTop + '+FLflashOffsetTop+';};window.hide=hide;window.onscroll=scrollevent;function init(){}');

}
}
function cookie_enabled() {
var is_enabled = false;
if (!window.opera && !navigator.cookieEnabled)
return is_enabled;
 if (typeof document.cookie == 'string')
    if (document.cookie.length==0) {
       document.cookie = "test";
       is_enabled = document.cookie == 'test';
       document.cookie = '';
    } else {
       is_enabled = true;
    }
 return is_enabled;
}

function HideBanner (){
	document.getElementById('flashpopup').style.display='none';
}