<!-- Version 1.1 -->

var browser_name = navigator.appName;
var browser_version = parseFloat(navigator.appVersion);
var plugin = 0;
//var path = "/portsamp/25/"; // Path to Flash files
var path = ""; // Path to Flash files
//var WQADLargeName = "flash/ban_preview_intramet.swf"; // Name of large Flash file
//var WQADLargeName2 = "flash/banner_grande.swf"; // Name of large Flash file
var WQADLargeWidth = 450; // Width of WQAD
var WQADLargeHeight =677; // Height of WQAD
var WQADLayerLeft = 465; // WQAD number of pixels from left of screen
var WQADLayerTop = 90; // WQAD number of pixels from top of screen
var WQADLayerWidth = WQADLargeWidth; 
var WQADLayerHeight = WQADLargeHeight;
no = Math.round(Math.random()*1)
no = 0;
//document.write(no);
if (no === 0){
	var WQADLargeName = "b07.swf"
	}
var WQADDelay = 153; // Specify number of frames to wait before large file can be replayed

if ((browser_name == 'Microsoft Internet Explorer') && (browser_version >= 4)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
	document.write('</SCRIPT\> \n');
	if ( plugin ) {
		// Main Ad
		document.write('<DIV id="container" style="position:absolute; left:' + WQADLayerLeft + 'px; top:' + WQADLayerTop + 'px; width:' + WQADLayerWidth + 'px; height:' + WQADLayerHeight + 'px; z-index:99; visibility: visible;"> \n');
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=PopUpLarge width=' + WQADLargeWidth + ' height=' + WQADLargeHeight + '> \n');
		document.write('<PARAM NAME=movie VALUE="' + path + WQADLargeName + '"> \n');
		document.write('<PARAM name=quality value=high> \n');
		document.write('<PARAM name=wmode value="transparent"> \n');
		document.write('<PARAM name=menu value="false"> \n');
		document.write('<PARAM name=bgcolor value=#FFFFFF> \n');
		document.write('</OBJECT> \n');
		document.write('</DIV> \n');
		// Sub Ad
		/*document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH=120 HEIGHT=60 id="PopUpSmall"> \n');
		document.write('<PARAM NAME=movie VALUE="' + path + WQADSmallName + '"> \n');
		document.write('<PARAM NAME=quality VALUE=high> \n');
		document.write('<PARAM NAME=wmode VALUE=opaque> \n');
		document.write('<PARAM name=menu value="false"> \n');
		document.write('<PARAM NAME=bgcolor VALUE=#000000> \n');
		document.write('</OBJECT> \n');*/
	}
}
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function DoFSCommand(command, args) {
	// alert(command);
	if(command=="Hide"){
  		Container.style.visibility = 'hidden';
	}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub PopUpLarge_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('Sub PopUpSmall_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}