//functions
function init_wbo_170754() {
this.wbo_w=300;
this.wbo_h=250;
this.wbo_exp_w=300;
this.wbo_exp_h=500;
this.wbo_clic='http://adnext.fr/click/63379753?http://castoramas.solution.weborama.fr/fcgi-bin/performance.fcgi?ID=421571&A=1&L=324557&C=12248&P=22573&CREA=170754&T=E&URL=http%3A%2F%2Fwww.castorama.fr%2Fstore%2FcastCatalog%2FwrapPageContent.jsp%3FpromoId%3D1002_s05_cestcastoche%26ecmp%3DCV_ADV300exp';
this.wbo_target='_blank';
this.wbo_url='http://elstatic.weborama.fr/adperf/421571/12248/201002/1265712406_300x250.swf';
this.wbo_pixel='';
this.wbo_format='Expand';
this.wbo_partner='22573';
this.wbo_clicktag='clicktag';
this.wbo_clicenc='http%3A%2F%2Fadnext.fr%2Fclick%2F63379753%3Fhttp%3A%2F%2Fcastoramas.solution.weborama.fr%2Ffcgi-bin%2Fperformance.fcgi%3FID%3D421571%26A%3D1%26L%3D324557%26C%3D12248%26P%3D22573%26CREA%3D170754%26T%3DE%26URL%3Dhttp%253A%252F%252Fwww.castorama.fr%252Fstore%252FcastCatalog%252FwrapPageContent.jsp%253FpromoId%253D1002_s05_cestcastoche%2526ecmp%253DCV_ADV300exp';
this.wbo_wmode='transparent';
this.wbo_url_param1='http://elstatic.weborama.fr/adperf/421571/12248/201002/1265712475_300x500.swf';
this.wbo_url_param2='http://elstatic.weborama.fr/adperf/421571/12248/201002/1265712499_300x600.gif';
this.wbo_url_exp_clic='http://adnext.fr/click/63379753?http://castoramas.solution.weborama.fr/fcgi-bin/performance.fcgi?ID=421571&A=1&L=324557&C=12248&P=22573&CREA=170754&T=E&URL=http%3A%2F%2Fwww.castorama.fr%2Fstore%2FcastCatalog%2FwrapPageContent.jsp%3FpromoId%3D1002_s05_cestcastoche%26ecmp%3DCV_ADV300exp';
this.wbo_exp_target='_blank';
this.wbo_exp_clicktag='clicktag';
this.wbo_exp_clicenc='http%3A%2F%2Fadnext.fr%2Fclick%2F63379753%3Fhttp%3A%2F%2Fcastoramas.solution.weborama.fr%2Ffcgi-bin%2Fperformance.fcgi%3FID%3D421571%26A%3D1%26L%3D324557%26C%3D12248%26P%3D22573%26CREA%3D170754%26T%3DE%26URL%3Dhttp%253A%252F%252Fwww.castorama.fr%252Fstore%252FcastCatalog%252FwrapPageContent.jsp%253FpromoId%253D1002_s05_cestcastoche%2526ecmp%253DCV_ADV300exp';
this.wbo_wmode='transparent';
this.wbo_exp_wmode='transparent';
this.wbo_url_backup='http://elstatic.weborama.fr/adperf/421571/12248/201002/1265712425_300x250.gif';
this.wbo_autoplay=false;
this.wbo_autoloop=false;
this.wbo_video_player='http://elstatic.weborama.fr/adperf/player/video.0.4.swf';
this.wbo_flash_min=6;
this.wbo_autohide=false;
this.wbo_menu_alpha=80;
this.wbo_bgcolor='F1F0E8';
this.wbo_button_color='F1F0E8';
this.wbo_border_thickness=1;
this.wbo_border_alpha=100;
this.wbo_border_color='D8D8C8';
this.wbo_muted=false;
this.wbo_automute=false;
this.wbo_pause_logo='http://elstatic.weborama.fr/adperf/421571/12248/201002/1265712499_300x600.gif';
this.wbo_media_logo='http://elstatic.weborama.fr/adperf/421571/12248/201002/1265712475_300x500.swf';
this.wbo_video_param='http://castoramas.solution.weborama.fr/fcgi-bin/performance.fcgi?ID=421571&A=5&L=324557&C=12248&P=22573&CREA=170754&VIDEO_PARAM=';
this.wbo_div_top=0;
this.wbo_div_left=0;
this.w_neg = this.h_neg = false;
if (this.wbo_exp_w<0) {
this.wbo_exp_w*=-1;
this.wbo_div_left=this.wbo_w-this.wbo_exp_w;
this.w_neg = true;
}
if (this.wbo_exp_h<0){
this.wbo_exp_h*=-1;
this.wbo_div_top=this.wbo_h-this.wbo_exp_h;
this.h_neg = true;
}
this.wbo_div_w=this.wbo_exp_w+4;
this.wbo_div_h=this.wbo_exp_h+4;
this.wbo_div_top-=2;
this.wbo_div_left-=4;
this.elt;
this.orig_w = this.orig_h = 0;
this.can_show = 1;
this.can_hide = 0;
this.wbo_flash_ok = 0;
this.plugin = 0;
this.wbo_crea1 = '';
this.wbo_crea2 = '';
this.wbo_domain = false;
this.set_domain = wbo_setDomain;
this.auto_open = 2;
this.auto_open_freq = 0;
this.separate_expand=false;
this.expand_next_to=false;
this.expand_position='B';
this.expand_cover=true;
this.expand_center=false;
this.close_auto=true;
this.open_on_load=false;
this.one_display =false;
this.number_display = 0;
this.expand_x = 0;
this.expand_y = 0;
this.wbo_format_crea1='';
this.wbo_format_crea2='';
//get expand format
if(this.wbo_format == 'Expand' && this.wbo_url.length > 0 && this.wbo_url_param1.length > 0){
if(this.wbo_url.match(new RegExp("\.(jpg|jpeg|png|bmp|gif)$", "i"))){this.wbo_format_crea1='Image';}
if(this.wbo_url.match(new RegExp("\.swf$", "i"))){this.wbo_format_crea1='Flash';}
if(this.wbo_url_param1.match(new RegExp("\.(jpg|jpeg|png|bmp|gif)$", "i"))){this.wbo_format_crea2='Image';}
if(this.wbo_url_param1.match(new RegExp("\.swf$", "i"))){this.wbo_format_crea2='Flash';}
}
}
function centerdiv(Xwidth,Yheight,divid) {
// First, determine how much the visitor has scrolled
if(wbo_crea_170754.expand_center==false){
return false;
}
var scrolledX, scrolledY;
if( self.pageYOffset ) {
scrolledX = self.pageXOffset;
scrolledY = self.pageYOffset;
} else if( document.documentElement && document.documentElement.scrollTop ) {
scrolledX = document.documentElement.scrollLeft;
scrolledY = document.documentElement.scrollTop;
} else if( document.body ) {
scrolledX = document.body.scrollLeft;
scrolledY = document.body.scrollTop;
}
// Next, determine the coordinates of the center of browser's window
var centerX, centerY;
if( self.innerHeight ) {
centerX = self.innerWidth;
centerY = self.innerHeight;
} else if( document.documentElement && document.documentElement.clientHeight ) {
centerX = document.documentElement.clientWidth;
centerY = document.documentElement.clientHeight;
} else if( document.body ) {
centerX = document.body.clientWidth;
centerY = document.body.clientHeight;
}
// Xwidth is the width of the div, Yheight is the height of the
// div passed as arguments to the function:
var leftOffset = scrolledX + (centerX - Xwidth) / 2;
var topOffset = scrolledY + (centerY - Yheight) / 2;
// The initial width and height of the div can be set in the
// style sheet with display:none; divid is passed as an argument to // the function
var o=document.getElementById(divid);
var r=o.style;
r.position='absolute';
wxx = getAbsX(document.getElementById('wbo_banner_170754'));
wyy = getAbsY(document.getElementById('wbo_banner_170754'));
topOffset -= wyy;
leftOffset -= wxx;
r.top = topOffset + 'px';
r.left = leftOffset + 'px';
r.display = "block"; }
function wbo_setDomain() {
var d = document.domain;
var dvalid = false;
while(d.split(".").length >= 2)
{
try{
dvalid=false;
document.domain = d;
var domainup = "parent.document.domain";
domainup = eval("try{"+domainup+";dvalid=true}catch(e){}");
if(dvalid)
return true;
} catch(e){}
d = d.substr(d.indexOf(".")+1,d.length);
}
return false;
}
function getAbsX(elt) { return (elt.x) ? elt.x : getAbsPos(elt,"Left"); }
function getAbsY(elt) { return (elt.y) ? elt.y : getAbsPos(elt,"Top"); }
function getAbsPos(elt,which) {
iPos = 0;
while (elt != null) {
iPos += elt["offset" + which];
elt = elt.offsetParent;
}
return iPos;
}
function setCookie(c_name, value, expiredays) { 
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
function getCookie(c_name) {
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=");
if (c_start!=-1)
{ 
c_start=c_start + c_name.length+1; 
c_end=document.cookie.indexOf(";",c_start);
if (c_end==-1) c_end=document.cookie.length;
return unescape(document.cookie.substring(c_start,c_end));
} 
}
return "";
}
function wbo_jsgetswfver_170754(i){
var flashVer=-1;if (navigator.plugins!=null && navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;descArray=flashDescription.split(" ");tempArrayMajor=descArray[2].split(".");versionMajor=tempArrayMajor[0];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r");}else{tempArrayMinor=descArray[4].split("r");}versionMinor=tempArrayMinor[1]>0?tempArrayMinor[1]:0;flashVer=parseFloat(versionMajor+"."+versionMinor);}}return flashVer;
}
function get_flash_ver(min_ver){
if(isIE_170754 && isWin_170754){
document.write('<SCRI'+'PT LANGUAGE="VBSc'+'ript">\n');
document.write('Function wbo_vbgetswfver_170754(i)\n');
document.write('on error resume next \n');
document.write('Dim swControl, swVersion\n');
document.write('swVersion = 0\n');
document.write('set swControl=CreateObject("ShockwaveFlash.ShockwaveFlash."+CStr(i))\n');
document.write('if (IsObject(swControl)) then\n');
document.write('swVersion=swControl.GetVariable("$version")\n');
document.write('end if\n');
document.write('wbo_vbgetswfver_170754=swVersion\n');
document.write('End Function\n');
document.write('</SCRI'+'PT>\n');}
var versionNum_170754=-1;
var versionStr_170754=-1;
var ver=0;
for (var i=10;i>4;i--) {
if (isIE_170754 && isWin_170754 && !isOpera_170754){versionStr_170754=wbo_vbgetswfver_170754(i);}
else{versionStr_170754=wbo_jsgetswfver_170754(i);}if(versionStr_170754==-1){continue;}
else if(versionStr_170754!=0){if(isIE_170754 && isWin_170754 && !isOpera_170754){
var tempArray=versionStr_170754.split(" ");
var tempString=tempArray[1];
var versionArray=tempString.split(",");versionNum_170754=parseFloat(versionArray[0]+"."+versionArray[2]);}
else{versionNum_170754=versionStr_170754;}}}if(versionNum_170754!=-1 && versionNum_170754>=min_ver)ver=1;
return ver;
}
function set_crea_flash_params(wbo_crea_170754, expand){
if(expand == false){
var params = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+wbo_crea_170754.wbo_w+'" height="'+wbo_crea_170754.wbo_h+'"><param name="movie" value="'+wbo_crea_170754.wbo_url+'?target='+wbo_crea_170754.wbo_target+'&'+wbo_crea_170754.wbo_clicktag+'='+wbo_crea_170754.wbo_clicenc+'" /><param name="wmode" value="'+wbo_crea_170754.wbo_wmode+'" /><param name="Autostart" value="true" /><param name="Quality" value="high" /><param name="allowScriptAccess" value="always" /><embed wmode="'+wbo_crea_170754.wbo_wmode+'" src="'+wbo_crea_170754.wbo_url+'?target='+wbo_crea_170754.wbo_target+'&'+wbo_crea_170754.wbo_clicktag+'='+wbo_crea_170754.wbo_clicenc+'" swLiveConnect="TRUE" width="'+wbo_crea_170754.wbo_w+'" height="'+wbo_crea_170754.wbo_h+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" allowScriptAccess="always"><\/embed><\/object>';
}
else{
var params = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+wbo_crea_170754.wbo_exp_w+'" height="'+wbo_crea_170754.wbo_exp_h+'"><param name="movie" value="'+wbo_crea_170754.wbo_url_param1+'?target='+wbo_crea_170754.wbo_exp_target+'&'+wbo_crea_170754.wbo_exp_clicktag+'='+wbo_crea_170754.wbo_exp_clicenc+'" /><param name="wmode" value="'+wbo_crea_170754.wbo_exp_wmode+'" /><param name="Autostart" value="true" /><param name="Quality" value="high" /><param name="allowScriptAccess" value="always" /><embed wmode="'+wbo_crea_170754.wbo_wmode+'" src="'+wbo_crea_170754.wbo_url_param1+'?target='+wbo_crea_170754.wbo_target+'&'+wbo_crea_170754.wbo_clicktag+'='+wbo_crea_170754.wbo_exp_clicenc+'" swLiveConnect="TRUE" width="'+wbo_crea_170754.wbo_exp_w+'" height="'+wbo_crea_170754.wbo_exp_h+'" TYPE="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" allowScriptAccess="always"><\/embed><\/object>';
}
return params;
}
function set_crea_img_params(wbo_crea_170754, expand){
if(expand==false){
src = wbo_crea_170754.wbo_url;
if(wbo_crea_170754.wbo_format_crea1 == 'Flash'){src = wbo_crea_170754.wbo_url_backup;}
var params = '<a href="'+wbo_crea_170754.wbo_clic+'" target="'+wbo_crea_170754.wbo_target+'"><img src="'+src+'" border="0" width="'+wbo_crea_170754.wbo_w+'" height="'+wbo_crea_170754.wbo_h+'" galleryimg="no" /><\/a>';
}
else{
src = wbo_crea_170754.wbo_url_param2;
if(wbo_crea_170754.wbo_format_crea2 == 'Image'){src = wbo_crea_170754.wbo_url_param1;}
var params = '<a href="'+wbo_crea_170754.wbo_url_exp_clic+'" target="'+wbo_crea_170754.wbo_exp_target+'"><img src="'+src+'" border="0" width="'+wbo_crea_170754.wbo_exp_w+'" height="'+wbo_crea_170754.wbo_exp_h+'" galleryimg="no" /><\/a>';
}
return params;
}
function set_crea_video_params(wbo_crea_170754){
/* Player parameters */
the_flashvars = '';
the_flashvars+='debugMode=false&';
the_flashvars+='autoPlay='+wbo_crea_170754.wbo_autoplay+'&';
the_flashvars+='autoSize=false&';
the_flashvars+='bufferSize=3&'; 
the_flashvars+='loop='+wbo_crea_170754.wbo_autoloop+'&';
the_flashvars+='menuAutoHide='+wbo_crea_170754.wbo_autohide+'&';
the_flashvars+='menuAlpha='+wbo_crea_170754.wbo_menu_alpha+'&';
the_flashvars+='bgColor='+wbo_crea_170754.wbo_bgcolor+'&';
the_flashvars+='buttonsColor='+wbo_crea_170754.wbo_button_color+'&';
the_flashvars+='borderColor='+wbo_crea_170754.wbo_border_color+'&';
the_flashvars+='borderThickness='+wbo_crea_170754.wbo_border_thickness+'&';
the_flashvars+='borderAlpha='+wbo_crea_170754.wbo_border_alpha+'&';
the_flashvars+='muted='+wbo_crea_170754.wbo_muted+'&';
the_flashvars+='autoMute='+wbo_crea_170754.wbo_automute+'&';
the_flashvars+='menuInitialVisibilityDuration=3000&';
the_flashvars+='tagPeriod=1000&';
the_flashvars+='hlinkTimeParam=wtc&';

/* Campaign parameters */
the_flashvars+='AdPictureUrl='+wbo_crea_170754.wbo_pause_logo+'&';
the_flashvars+='eventFunctionName=event_170754&';
the_flashvars+='mediaUrl='+wbo_crea_170754.wbo_url+'&'; // upload

the_flashvars+='relatedHlink='+wbo_crea_170754.wbo_clicenc;  
the_flashvars+='&logoUrl='+wbo_crea_170754.wbo_media_logo+'&';
the_flashvars+='mediaWidth='+wbo_crea_170754.wbo_w+'&';
the_flashvars+='mediaHeight='+wbo_crea_170754.wbo_h+'&';
return the_flashvars;
}
//END functions
var wbo_crea_170754 = new init_wbo_170754();
var a_sel_170754=new Array();
var isIE_170754=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;
var isIE6_170754=/msie|MSIE 6/.test(navigator.userAgent);
var isWin_170754=(navigator.appVersion.toLowerCase().indexOf("win") != -1)?true:false;
var isOpera_170754=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;
switch(wbo_crea_170754.wbo_format){
//IMAGE
case 'Image':
document.write('<A HREF="'+ wbo_crea_170754.wbo_clic +'" target="'+ wbo_crea_170754.wbo_target +'"><IMG SRC="'+ wbo_crea_170754.wbo_url +'" width="'+ wbo_crea_170754.wbo_w+'" height="'+ wbo_crea_170754.wbo_h +'" border="0" ALT=""></A>');var wbo_adperf_spix = new String(wbo_crea_170754.wbo_pixel);if (wbo_adperf_spix.length > 0){var wbo_adperf_ipix = new Image();wbo_adperf_ipix.src=wbo_adperf_spix;}
break;
//EXPAND
case 'Expand':
eval("try{wbo_crea_170754.wbo_domain = (document.domain == parent.document.domain);}catch(e){wbo_crea_170754.wbo_domain = false;}");
if(!wbo_crea_170754.wbo_domain) eval("try{document.domain = parent.document.domain;wbo_crea_170754.wbo_domain = true;}catch(e){wbo_crea_170754.wbo_domain = wbo_crea_170754.set_domain();}");
try { wbo_crea_170754.elt = parent.document.getElementById('wbo_pub_ifm');
if (wbo_crea_170754.elt) { 
if (wbo_crea_170754.w_neg == true) {
wbo_crea_170754.wbo_div_left = 0; }
if (wbo_crea_170754.h_neg == true) {
wbo_crea_170754.wbo_div_top = 0; }
wbo_crea_170754.elt.style.width=wbo_crea_170754.wbo_w+'px';
wbo_crea_170754.elt.style.height=wbo_crea_170754.wbo_h+'px';
}} catch (e) {}
function resize_ifrm(wbo_exp_w,wbo_exp_h,wbo_div_w,wbo_div_h,retour) {
try {
if (wbo_crea_170754.elt) {
var new_width = 0;
var new_height = 0;
if (!retour) {
if (wbo_crea_170754.w_neg) {
var re = new RegExp("(\\d+)px");
var old_w = 0;
if (m = re.exec(wbo_crea_170754.elt.style.left)) {
old_w += parseInt(m[1],10);
}
wbo_crea_170754.orig_w = old_w;
var new_w = 0 + old_w + wbo_crea_170754.wbo_w - wbo_exp_w;
new_width = new_w;
}
if (wbo_crea_170754.h_neg) {
var re = new RegExp("(\\d+)px");
var old_h = 0;
if (m = re.exec(wbo_crea_170754.elt.style.top)) {
old_h += parseInt(m[1],10);
}
wbo_crea_170754.orig_h = old_h;
var new_h = 0 + old_h + wbo_crea_170754.wbo_h - wbo_exp_h;
new_height = new_h;
}
} else {
new_width = wbo_crea_170754.orig_w;
new_height = wbo_crea_170754.orig_h;
}
if (retour) {
wbo_crea_170754.elt.style.width=wbo_crea_170754.wbo_w+'px';
wbo_crea_170754.elt.style.height=wbo_crea_170754.wbo_h+'px';
} else {
wbo_crea_170754.elt.style.width=wbo_exp_w+'px';
wbo_crea_170754.elt.style.height=wbo_exp_h+'px';
}
if (new_width)wbo_crea_170754.elt.style.left=new_width+'px';
if (new_height)wbo_crea_170754.elt.style.top=new_height+'px';
}
} catch (e) {return 2;}
return 1;
}
function whs_170754(){
if (!isIE6_170754)return;var e,i;try{e=document.getElementsByTagName('select');for (i=0;i<e.length;++i){if(e.item(i).style.display!='none'){a_sel_170754.push(e.item(i));e.item(i).style.display='none';}}}catch(e){}
}
function wss_170754(){
if (!isIE6_170754)return;var e,i;try{for (i=0;i<a_sel_170754.length;++i){a_sel_170754[i].style.display='';}}catch (e){}
}
function switch_item(item, value) {document.getElementById('wbo_'+item).style.visibility=value;return 1;}
function wbo_show_2_170754() {
if (wbo_crea_170754.can_show == 0||(wbo_crea_170754.one_display == true && wbo_crea_170754.number_display == 1)) return;wbo_crea_170754.can_show = 0;whs_170754();if(wbo_crea_170754.separate_expand==false&&wbo_crea_170754.expand_next_to==false){switch_item('banner_170754', 'hidden');} switch_item('expand_170754', 'visible');wbo_crea_170754.number_display++;resize_ifrm(wbo_crea_170754.wbo_exp_w,wbo_crea_170754.wbo_exp_h,wbo_crea_170754.wbo_exp_w,wbo_crea_170754.wbo_exp_h);wbo_crea_170754.can_hide = 1;
}
function wbo_hide_2_170754() {
if (wbo_crea_170754.can_hide == 0|| wbo_crea_170754.close_auto == false) return;wbo_crea_170754.can_show = 1;wbo_crea_170754.can_hide=0;resize_ifrm(wbo_crea_170754.wbo_exp_w,wbo_crea_170754.wbo_exp_h,wbo_crea_170754.wbo_w,wbo_crea_170754.wbo_h,1);wss_170754();if(wbo_crea_170754.separate_expand==true||wbo_crea_170754.expand_next_to==true||wbo_crea_170754.expand_cover==true){switch_item('banner_170754', 'visible');} switch_item('expand_170754', 'hidden');
}
function set_exp_position_next_to(wbo_crea_170754){
switch(wbo_crea_170754.expand_position){
case('R'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left + wbo_crea_170754.wbo_w;break;
case('L'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left - wbo_crea_170754.wbo_exp_w;break;
case('T'): wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top - wbo_crea_170754.wbo_exp_h;break;
case('B'): wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top + wbo_crea_170754.wbo_h;break;
case('LT'): wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top - wbo_crea_170754.wbo_exp_h;wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left - wbo_crea_170754.wbo_exp_w;break;
case('LB'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left - wbo_crea_170754.wbo_exp_w;wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top + wbo_crea_170754.wbo_h;break;
case('RT'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left + wbo_crea_170754.wbo_w;wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top - wbo_crea_170754.wbo_exp_h;break;
case('RB'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left + wbo_crea_170754.wbo_w;wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top + wbo_crea_170754.wbo_h;break;}
}
function set_exp_position_cover_up(wbo_crea_170754){
switch(wbo_crea_170754.expand_position){
case('L'): 
case('LB'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left - (wbo_crea_170754.wbo_exp_w - wbo_crea_170754.wbo_w);break;
case('LT'): wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left - (wbo_crea_170754.wbo_exp_w - wbo_crea_170754.wbo_w);
wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top - (wbo_crea_170754.wbo_exp_h - wbo_crea_170754.wbo_h);break;
case('T'): 
case('RT'): wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top - (wbo_crea_170754.wbo_exp_h - wbo_crea_170754.wbo_h);break;}
}
function set_exp_position_separate(wbo_crea_170754){
wbo_crea_170754.wbo_div_left = wbo_crea_170754.wbo_div_left + wbo_crea_170754.expand_x; wbo_crea_170754.wbo_div_top = wbo_crea_170754.wbo_div_top + wbo_crea_170754.expand_y;
}
if(wbo_crea_170754.separate_expand == true){set_exp_position_separate(wbo_crea_170754);}
else{if(wbo_crea_170754.expand_next_to == true){set_exp_position_next_to(wbo_crea_170754);}
else{if(wbo_crea_170754.expand_cover){set_exp_position_cover_up(wbo_crea_170754);}}}
wbo_crea_170754.wbo_flash_ok=get_flash_ver(wbo_crea_170754.wbo_flash_min);
var wbo_has_crea_flash = new String(wbo_crea_170754.wbo_url);
if (wbo_crea_170754.wbo_flash_ok && wbo_has_crea_flash.length > 0 && wbo_crea_170754.wbo_format_crea1 == 'Flash') {
wbo_crea_170754.wbo_crea1 = set_crea_flash_params(wbo_crea_170754, false);
} else {
wbo_crea_170754.wbo_crea1 = set_crea_img_params(wbo_crea_170754, false);
}
wbo_crea_170754.wbo_flash_ok=get_flash_ver(wbo_crea_170754.wbo_flash_min);
var wbo_has_crea_flash = new String(wbo_crea_170754.wbo_url_param1);
if (wbo_crea_170754.wbo_flash_ok && wbo_has_crea_flash.length > 0 && wbo_crea_170754.wbo_format_crea2 == 'Flash') {
wbo_crea_170754.wbo_crea2 = set_crea_flash_params(wbo_crea_170754, true);}
else{
wbo_crea_170754.wbo_crea2 = set_crea_img_params(wbo_crea_170754, true);
}
document.write('<div style="text-align:center;padding:0px;margin:0px auto 0px auto;position:relative; width:'+wbo_crea_170754.wbo_w+'px; height:'+wbo_crea_170754.wbo_h+'px;">');
document.write('<div id="wbo_banner_170754" style="margin:0px auto 0px auto;position:relative; top:0px; left:0px; width:'+wbo_crea_170754.wbo_w+'px; height:'+wbo_crea_170754.wbo_h+'px; visibility:visible; z-index:100;" onmouseover="centerdiv(wbo_crea_170754.wbo_exp_w,wbo_crea_170754.wbo_exp_h,\'wbo_expand_170754\');wbo_show_2_170754();">');
document.write(wbo_crea_170754.wbo_crea1);
document.write('<\/div>');
if(wbo_crea_170754.expand_center==true){
wbo_crea_170754.wbo_div_left = (screen.width / 2) - (wbo_crea_170754.wbo_exp_w / 2);
wbo_crea_170754.wbo_div_top = (screen.height / 2) - (wbo_crea_170754.wbo_exp_h / 2);
}
document.write('<div id="wbo_expand_170754" style="position:absolute; top:'+wbo_crea_170754.wbo_div_top+'px; left:'+wbo_crea_170754.wbo_div_left+'px; width:'+wbo_crea_170754.wbo_div_w+'px; height:'+wbo_crea_170754.wbo_div_h+'px; visibility:hidden;background-color:transparent;z-index:100000;padding-left:2px;padding-top:2px;" onMouseOut="wbo_hide_2_170754();">' + wbo_crea_170754.wbo_crea2);
document.write('<\/div>');
document.write('<\/div>');
var wbo_adperf_spix = new String(wbo_crea_170754.wbo_pixel);if (wbo_adperf_spix.length > 0){var wbo_adperf_ipix = new Image();wbo_adperf_ipix.src=wbo_adperf_spix;}
var cookie = getCookie("wbo_crea_170754") ;
if (wbo_crea_170754.auto_open>0) 
{
if (cookie != 1 || wbo_crea_170754.auto_open_freq == 1) {
wbo_show_2_170754();
setTimeout("wbo_hide_2_170754()",wbo_crea_170754.auto_open*1000);
setCookie("wbo_crea_170754", "1", 1);
 }
} 
if (wbo_crea_170754.open_on_load && (wbo_crea_170754.one_display != 1 || (wbo_crea_170754.one_display == 1 && cookie != 1))){wbo_show_2_170754();}
break;
//FLASH
case 'Flash':
wbo_crea_170754.wbo_flash_ok=get_flash_ver(wbo_crea_170754.wbo_flash_min);
if(wbo_crea_170754.wbo_flash_ok){wbo_pub_contenu=set_crea_flash_params(wbo_crea_170754, false);}
else{wbo_pub_contenu=set_crea_img_params(wbo_crea_170754, false);}
document.write(wbo_pub_contenu);
var wbo_adperf_spix=new String(wbo_crea_170754.wbo_pixel);
if(wbo_adperf_spix.length>0){var wbo_adperf_ipix=new Image();wbo_adperf_ipix.src=wbo_adperf_spix;}
break;
//VIDEO
case 'Video':
/* Initialisation */
var myadplayer = '';
var flashplayerId = 'Player_170754';
/* Building */
myadplayer+='<OBJECT id="'+flashplayerId+'" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="'+wbo_crea_170754.wbo_w+'" HEIGHT="'+wbo_crea_170754.wbo_h+'">';
myadplayer+='<PARAM NAME="movie" VALUE="'+wbo_crea_170754.wbo_video_player+'" />';
myadplayer+='<PARAM NAME="quality" VALUE="best" />';
myadplayer+='<PARAM NAME="AllowScriptAccess" VALUE="always" />';
var the_flashvars=set_crea_video_params(wbo_crea_170754);
myadplayer+='<PARAM NAME="FlashVars" VALUE="'+the_flashvars+'" />';
/* Embed tag */
myadplayer+='<EMBED SWLIVECONNECT="true" LOOP="'+wbo_crea_170754.wbo_autoloop+'" NAME="Player_170754" SRC="'+wbo_crea_170754.wbo_video_player+'" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" WIDTH="'+wbo_crea_170754.wbo_w+'" HEIGHT="'+wbo_crea_170754.wbo_h+'" WMODE="transparent" QUALITY="best" allowScriptAccess="always" FLASHVARS="'+the_flashvars+'"></EMBED>';
myadplayer+='</OBJECT>';
/* Linked functions */
var start_time_170754 = 0;
var read_time_170754 = 0;
var has_reach_the_end_170754 = 0;
function event_170754($time,$action_type) {
if (start_time_170754 == 0 && $action_type == 'Start') {
start_time_170754 = $time;
wbo_start_v_170754();
}
if ($action_type == 'End') {
has_reach_the_end_170754 = 1;
wbo_end_v_170754();
}
if (start_time_170754 > 0) {
var delta = $time;
read_time_170754 = (delta > read_time_170754) ? delta : read_time_170754;
}
}
function wbo_dnthng_170754(){return;}
var src_img_170754 = wbo_crea_170754.wbo_video_param;
var image_oul_170754 = new Image(1,1);
function wbo_snd_rqt_170754() {
var $params = 'V1:'+start_time_170754+';V2:'+read_time_170754+'&tt='+(new Date()).getTime();
image_oul_170754.src=src_img_170754+$params;
image_oul_170754.onload=function() {wbo_dnthng_170754();}
}
var image_inl_170754 = new Image(1,1);
function wbo_start_v_170754() {
// On affiche une image de comptage
var $params = 'S1;'+'&tt='+(new Date()).getTime();
image_inl_170754.src=src_img_170754+$params;
image_inl_170754.onload=function() {wbo_dnthng_170754();}
}
var image_oe_170754 = new Image(1,1);
function wbo_end_v_170754() {
var $params = 'V3:1'+'&tt='+(new Date()).getTime();
image_oe_170754.src=src_img_170754+$params;
image_oe_170754.onload=function() {wbo_dnthng_170754();}
}
if (window.addEventListener){window.addEventListener('unload',wbo_snd_rqt_170754,false);}
else if (window.attachEvent){window.attachEvent('onunload',wbo_snd_rqt_170754);}
else {window.onunload = wbo_snd_rqt_170754;}
/* Writing player */
wbo_crea_170754.wbo_flash_ok=get_flash_ver(wbo_crea_170754.wbo_flash_min);
if(wbo_crea_170754.wbo_flash_ok) {
document.write(myadplayer);
if (document.forms) {for (var wbo_tnof=0;wbo_tnof<document.forms.length;++wbo_tnof){
if(typeof document.forms[wbo_tnof].Player_170754 != 'undefined'){
window.Player_170754=document.forms[wbo_tnof].Player_170754;}}}
} else {
var wbo_pub_contenu='<A HREF="'+wbo_crea_170754.wbo_clic+'" target="'+wbo_crea_170754.wbo_target+'"><IMG SRC="'+wbo_crea_170754.wbo_url_backup+'" border="0" alt="" width="'+wbo_crea_170754.wbo_w+'" height="'+wbo_crea_170754.wbo_h+'"></A>';
document.write(wbo_pub_contenu);
}
var wbo_adperf_spix_170754 = new String(wbo_crea_170754.wbo_pixel);
if (wbo_adperf_spix_170754.length > 0){var wbo_adperf_ipix_170754 = new Image();wbo_adperf_ipix_170754.src=wbo_adperf_spix_170754;}
break;
}


