var _w_l = window.location.toString().split("/").slice(2);
_w_l = _w_l[0].replace("www.","");
document.write('<SCR'+'IPT SRC="http://www.orange.es/js/wl/'+_w_l+'.js?"></SCR'+'IPT>');
function bannerWoo(){};
bannerWoo.banners={};
bannerWoo.init=function( objs )
{
document.write('<SCR'+'IPT SRC="http://www.orange.es/js/wl/w_comun.js?"></SCR'+'IPT>');
document.write('<SCR'+'IPT SRC="http://rc.portal.orange.es/Get/orangees/JS/GetRcmd.js?"></SCR'+'IPT>');
if (document.location.href.indexOf("utm_source=gad") > 0){objs.nd=true;}
var obj=(objs.constructor==Array)?objs[new Date().getTime()%objs.length]:objs;
this.random=(obj.random?obj.random:(''+new Date().getTime()).substring(4)+(''+Math.random(1)).substring(2,6));
this.svr='http://ad.doubleclick.net';
this.site=(obj.site?obj.site:'eresmas');
this.area=(obj.area?obj.area:'home');
this.place=this.site+'/'+this.area;
this.nd=obj&&obj.nd?obj.nd:false;
this.nl=obj&&obj.nl?obj.nl:false;
this.kw=obj.kw;
this.kyw=obj.kyw;
this.tile=0;
}
bannerWoo.getDesc=function(obj)
{	
	var wunder = typeof wlrcmd!='undefined'?wlrcmd:'';		
	var _str_pl = obj.pl?';place='+obj.pl:'';
	var _str_kw = ';kw='+(this.kw?this.kw:'');
	var _kw = wunder.split(",");
	if (_kw.length>1 || _kw[0]!='') {
		for (var i=0;i<_kw.length;i++) {		
			_str_kw+=";kw="+_kw[i];
		}
	}
	this.tile++;  
  return this.place+_str_pl+_str_kw+';'+(this.kyw?this.kyw:'')+((obj.pos=='1')&&!this.nd?'dcopt=ist':'')+';sz='+obj.wid+'x'+obj.hei+(!this.nl?';layer=yes':'')+';tile='+this.tile+';ord='+this.random;
}
bannerWoo.begin=function(obj)
{
var pos=obj&&obj.pos?obj.pos:'';
//var pos=obj&&obj.pos?obj.pos:'1';
var wid=obj&&obj.wid?obj.wid:(pos=='2'?'120':'468');
var hei=obj&&obj.hei?obj.hei:(pos=='2'?'600':'60');
var pl=obj&&obj.place?obj.place:null;
var w=obj&&obj.win?obj.win:window;
var d=w.document;
var desc=this.getDesc({wid:wid,hei:hei,pos:pos,pl:pl});
var r='<SCR'+'IPT SRC="'+this.svr+'/adj/'+desc+'?">'+
'document.write(\'<A HREF="'+this.svr+'/jump/'+desc+';abr=!ie4;abr=!ie5;abr=!nn2;abr=!nn3;abr=!nn4?">\');'+
'document.write(\'<IMG SRC="'+this.svr+'/ad/'+desc+';abr=!ie4;abr=!ie5;abr=!nn2;abr=!nn3;abr=!nn4?" border=0 width="'+wid+'" height="'+hei+'"></A>\');</SCR'+'IPT>';
if (obj&&obj.nw) return r;
d.write(r);
}
bannerWoo.end=function(obj)
{
return '';
}
bannerWoo.finish=function(w)
{
}
bannerWoo.reload=function(obj)
{
}
bannerWoo.init(
{
site:(typeof bannerDomain!='undefined'?bannerDomain:'www.wanadoo.es'),
area:(typeof bannerSeg!='undefined')?((bannerSeg==1)?(typeof logChannel!='undefined'?logChannel:'otros'):((bannerSeg==2)?(typeof logChannel!='undefined'?logChannel:'otros')+(typeof logPath!='undefined'?'.'+logPath:''):((bannerSeg==3)?(typeof logPath!='undefined'?logPath:'otros'):((bannerSeg==4)?(typeof logPath!='undefined'?logPath:'otros')+(typeof logPage!='undefined'?'.'+logPage:''):((typeof logChannel!='undefined'?logChannel:'otros')))))):(typeof logChannel!='undefined'?logChannel:'otros'),
nd:(typeof noPopUp!='undefined'?noPopUp:false),
nl:(typeof noLayer!='undefined'?noLayer:false),
kw:(typeof kw!='undefined'?kw:''),kyw:(typeof kyw!='undefined'?kyw:'')});
