// JavaScript Document
function FlashObject (flname,flsource,flwidth,flheight) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+flwidth+'" height="'+flheight+'">');
document.write('<param name="'+flname+'" value="'+flsource+'">');
document.write('<param name="width" value="'+flwidth+'">');
document.write('<param name="height" value="'+flheight+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
if (document.all) {
document.write('<param name="flashvars" value="browser=explorer">');

}
document.write('<embed src="'+flsource+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+flwidth+'" height="'+flheight+'"></embed>');
document.write('</object>');
};

// VB init
function Init() {
myWidth=520;
windowW = document.body.clientWidth;
mychangeLayer = document.getElementById('bannerDiv').style;
reScale();
}

// VB functions

window.onresize = function () {
windowW = document.body.clientWidth;

if (myStatus == 1) {
reScale();
}else {
scaleBack();
};
}

function scaleBack(){
myStatus = 0;
myLeft = (windowW-myWidth)/2;
mychangeLayer.width= myWidth+'px';
mychangeLayer.left= myLeft+'px';

}

function reScale(){
	
myStatus = 1;

mychangeLayer.width = windowW+'px';
mychangeLayer.left= '0px';
};