You are on page 1of 2

<!

--
// adserver used: Doubleclick Dart;
// site: STM_STM - RINCON;
// section: stm.rincon/apuntes.pdf;
// initialize page random number
var oan_rnd=Math.floor(Math.random()*10000000000);
var oan_dcopt=0;
// initialize targeting feature requests
var oan_tfkl="";
// initialize adunits array
var oan_ASL=[];
oan_ASL['54202']={dt:'0',szw:'120',szh:'600',pos:'',red:'1',ref:'stm.rincon/apun
tes.pdf'};
oan_ASL['54203']={dt:'0',szw:'160',szh:'600',pos:'',red:'1',ref:'stm.rincon/apun
tes.pdf'};
oan_ASL['54204']={dt:'0',szw:'300',szh:'250',pos:'',red:'1',ref:'stm.rincon/apun
tes.pdf'};
oan_ASL['54205']={dt:'0',szw:'728',szh:'90',pos:'',red:'1',ref:'stm.rincon/apunt
es.pdf'};
var oan_OSP_ASL=[];
oan_OSP_ASL['1']={aid:'54202'};
oan_OSP_ASL['2']={aid:'54203'};
oan_OSP_ASL['3']={aid:'54204'};
oan_OSP_ASL['4']={aid:'54205'};

// initialize checking on site open variables


if(typeof oan_ContentTopic=="undefined"){oan_ContentTopic=""};
if(typeof oan_siteKeywords=="undefined"){var oan_siteKeywords=""};
// Keyvalue pair normalisation function
function oan_formalizeKeyword(oan_sk,oan_sks,oan_ks,oan_kp){
var oan_kl='';
if(oan_sks!=''){
var oan_klt=oan_sk.split(oan_sks);
if(oan_klt.length>1){
for(oan_counter=0;oan_counter<oan_klt.length;oan_counter++){
oan_ik=oan_klt[oan_counter].split('=');
if(oan_ik[1]!="" && oan_klt[oan_counter]!=""){
oan_kl+=oan_kp+oan_klt[oan_counter]+oan_ks;
}
}
}
else{
oan_kl=oan_sk+oan_ks;
}
}
else{
oan_kl=oan_kp+oan_sk+oan_ks;
}
return oan_kl;
}
// Adservers functions needed for the requested page
function oan_1(ac_type,ac_width,ac_height,ac_param){
var ac_kl='';
oan_dcopt++;
if(oan_dcopt==1){ac_kl='dcopt=ist;';}
ac_kl+=oan_formalizeKeyword(oan_tfkl+oan_siteKeywords,';',';','');
if(ac_type==1){
document.write('<iframe src="http://ad.'+oan_country+'.doubleclick.net/adi
/'+ac_param+';sz='+ac_width+'x'+ac_height+';ord='+oan_rnd+'?" border="0" framebo
rder="0" width="'+ac_width+'" height="'+ac_height+'"></iframe>');
}
else{
document.write('<scr'+'ipt src="http://ad.'+oan_country+'.doubleclick.net/
adj/'+ac_param+';'+ac_kl+'sz='+ac_width+'x'+ac_height+';ord='+oan_rnd+'?"><\/scr
'+'ipt>');
}
}
// linking function between invocation tags and adserver tags

var oan_country="es";
function oan_osp_displayAd(oan_Width,oan_Height){
oan_aid=0;
asl_width=0;
asl_height=0;
oan_a=1;
for(oan_a=1;oan_a<oan_OSP_ASL.length;oan_a++){
oan_aid=oan_OSP_ASL[oan_a].aid;
asl_width=oan_ASL[oan_aid].szw;
asl_height=oan_ASL[oan_aid].szh;
if(asl_width==oan_Width && asl_height==oan_Height){
oan_displayAd(oan_aid);
return;
}
}
}
function oan_displayAd(oan_AS){
if(typeof banner_sm!="undefined"){oan_siteKeywords=banner_sm.getDesc({pl:'sup
'})}
if(typeof bannerWoo!="undefined"){oan_siteKeywords=bannerWoo.getDesc({pl:'sup
'})}
if(typeof oan_ASL[oan_AS]!="undefined"){
oan_ftc=eval('oan_'+oan_ASL[oan_AS].red);
oan_ftc(oan_ASL[oan_AS].dt,oan_ASL[oan_AS].szw,oan_ASL[oan_AS].szh,oan_ASL
[oan_AS].ref);
}
}
//-->

You might also like