91365, 'Generic_Blue_No_URL' => 95503);
$rias['300x250'][18] = array('Generic_Blue' => 91368, 'Generic_Blue_No_URL' => 95506);
$rias['300x250'][20] = array('Generic_Blue' => 91369, 'Generic_Blue_No_URL' => 95507);
$rias['300x250'][23] = array('Generic_Blue' => 91371, 'Generic_Blue_No_URL' => 95509);
$rias['160x600'] = array();
$rias['160x600'][2] = array('Generic_Blue' => 91376, 'Generic_Blue_No_URL' => 95514);
$rias['160x600'][18] = array('Generic_Blue' => 91379, 'Generic_Blue_No_URL' => 95517);
$rias['160x600'][20] = array('Generic_Blue' => 91380, 'Generic_Blue_No_URL' => 95518);
$rias['160x600'][23] = array('Generic_Blue' => 91382, 'Generic_Blue_No_URL' => 95520);
$rias['728x90'] = array();
$rias['728x90'][2] = array('Generic_Blue' => 91387, 'Generic_Blue_No_URL' => 95525);
$rias['728x90'][18] = array('Generic_Blue' => 91390, 'Generic_Blue_No_URL' => 95528);
$rias['728x90'][20] = array('Generic_Blue' => 91391, 'Generic_Blue_No_URL' => 95529);
$rias['728x90'][23] = array('Generic_Blue' => 91393, 'Generic_Blue_No_URL' => 95531);
$rias['300x600'] = array();
$rias['300x600'][2] = array('Generic_Blue' => 91694, 'Generic_Blue_No_URL' => 95536);
$rias['300x600'][18] = array('Generic_Blue' => 91697, 'Generic_Blue_No_URL' => 95539);
$rias['300x600'][20] = array('Generic_Blue' => 91698, 'Generic_Blue_No_URL' => 95540);
$rias['300x600'][23] = array('Generic_Blue' => 91700, 'Generic_Blue_No_URL' => 95542);
$size = $width . 'x' . $height;
$riaID = $rias[$size][$nID][$catID];
$parent_ad_id = $rias[$size][2][$catID];
$instance_id = $networks[$nID].'_'.$size;
$click_macro1 = $click_macro2 = '';
if($click) {
$click_macro1 = "var mf_clickurl = encodeURIComponent(\"$click\");";
$click_macro2 = "&redirecturl=\"+ mf_clickurl + \"";
}
$objectTag =<<
var mf_locationURL = escape(window.location.href.substring(0,1048));
$click_macro1
var mf_params = "riaID=$riaID&merchantID=$mID&networkID=$nID&embedid=1&instanceid=$instance_id&locationurl=LOCATIONURL$click_macro2".replace("LOCATIONURL", mf_locationURL);
var mf_code = "";
document.write(mf_code);
EndTag;
echo $objectTag;
?>