
function adserve(url,f_ie_slot,p_ie_slot,f_ns_slot,p_ns_slot,wdth,ht,mpv){

 var ie_slot=(mpv>0)?p_ie_slot:f_ie_slot;
 var ns_slot=(mpv>0)?p_ns_slot:f_ns_slot;

 var firstLayer='ttt'+ns_slot;
 var secondLayer='uuu'+ns_slot;

 var adhtml1='<IFRAME hspace="0" marginheight="0" height="'+ht+'" marginwidth="0" noresize="noresize" src="'+url+ie_slot+'" width="'+wdth+'" frameborder="0" vspace="0" scrolling="NO"></IFRAME>';
 document.write(adhtml1);

 var adhtml2='<ILAYER visibility="visible" height="'+ht+'" id='+firstLayer+' width="'+wdth+'" left="0" top="0"></ILAYER>';
 document.write(adhtml2);

}

function layerserve(url,f_ie_slot,p_ie_slot,f_ns_slot,p_ns_slot,wdth,ht,mpv){

 var ie_slot=(mpv>0)?p_ie_slot:f_ie_slot;
 var ns_slot=(mpv>0)?p_ns_slot:f_ns_slot;

 var firstLayer='ttt'+ns_slot;
 var secondLayer='uuu'+ns_slot;

 var layerhtml='<LAYER onload="moveToAbsolute('+firstLayer+'.pageX,'+firstLayer+'.pageY);'+secondLayer+'.visibility=\'show\';" visibility="visible" top="125" src="'+url+ns_slot+'" left="500" id="'+secondLayer+'" width="'+wdth+'" height="'+ht+'"></LAYER>';
 document.write(layerhtml);

}

