// Remote, Flash, V2.0
var strFlashUrl = 'http://banner.beweb.com/images/falk/2653.ING/2653.468x60_coffre_fr.swf',
strFlashVars = 'clicktag=' + escape(Ads_ClickUrl),
intSwfMinimum = '3',
BannerWidth = 468,
BannerHeight = 60,
strAltUrl   = 'http://banner.beweb.com/images/falk/2653.ING/2653.468x60_coffre_fr.gif',
strAltText  = '',
strAltFile = '',
strFlash;
//check alt img
if (strAltFile == '')
//not specified
{
strAltFile = 'http://a.as-eu.falkag.net/dat/bgf/trpix.gif';
intImgW = intImgH = 1;
}
else
{
intImgW = BannerWidth;
intImgH = BannerHeight;
}
//check alt url
if(strAltUrl == '')
//not present, set default
strAltUrl = Ads_ClickUrl;
else
//present, add counter
strAltUrl = Ads_CountUrl + escape(strAltUrl);
//build html string
var strFlash = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="' + BannerWidth
+ '" HEIGHT="' + BannerHeight + '" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '
+ 'ID=adsshapedobj>\n'
+ '<PARAM NAME="MOVIE" VALUE="' + strFlashUrl + '">\n'
+ '<PARAM NAME="PLAY" VALUE="true">\n'
+ '<PARAM NAME="LOOP" VALUE="true">\n'
+ '<PARAM NAME="WMODE" value="opaque">\n'
+ '<PARAM NAME="QUALITY" VALUE="high">\n'
+ '<PARAM NAME="SCALE" VALUE="exactscale">\n'
+ '<PARAM NAME="MENU" VALUE="TRUE">\n'
+ '<PARAM NAME="FLASHVARS" VALUE="' + strFlashVars + '">'
+ '<EMBED SRC="' + strFlashUrl
+ '" quality=high width="' + BannerWidth + '" height="' + BannerHeight
+ '" type="application/x-shockwave-flash"'
+ ' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"'
+ ' wmode="opaque" play="true" loop="true" scale="exactscale" menu="false" name="adsshapedobj" FLASHVARS="' + strFlashVars + '">\n'
+ '</EMBED>\n'
+ '</OBJECT>';
//check environment
if(fnTestFlash(intSwfMinimum))
//ok
document.write(strFlash);
else
//not ok
document.write('<a href="' + strAltUrl + '" target="_blank"><img src="' + strAltFile + '" alt="'
+ strAltText + '" name="Ads_Image" id="Ads_Image" width="' + intImgW + '" height="'
+ intImgH + '" border="0"></a>\n');
//****************** func definiton
function fnTestFlash(intSwfMin)
{
var gbolFlash = false;
var strPlugin, bolFlash;
var intFlash = 0;
if((navigator.userAgent.indexOf("Opera") != -1) || ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mozilla") != -1) && (parseFloat(navigator.appVersion) >= 4)))
{
if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
// Netscape-Test
strPlugin = navigator.plugins['Shockwave Flash'].description;
strPlugin = strPlugin.substring(strPlugin.indexOf("."), -1);
intFlash  = strPlugin.substr(-1);
}
}
else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE")!=-1 && ((navigator.userAgent.indexOf("Windows")!=-1 && navigator.userAgent.indexOf("Windows 3")==-1) || navigator.userAgent.indexOf("Mac")!=-1)
&& document.all)
{
// IExplorer-Test
document.write('<scr'+'ipt language=VBScript>\n Ads_gintCurVersion = 10\nintMinVersion = 1\nDo\nOn Error Resume Next\n');
document.write('bolFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & Ads_gintCurVersion)))\n');
document.write('If bolFlash = true Then Exit Do\nAds_gintCurVersion = Ads_gintCurVersion - 1\nLoop While Ads_gintCurVersion >= intMinVersion\n </scr'+'ipt>');
intFlash = Ads_gintCurVersion;
}
if(intSwfMin <= intFlash) gbolFlash = true;
return gbolFlash;
}
document.write('' + Ads_ViewCode + '');
