OAS_url = 'http://ads.thedeal.com/RealMedia/ads/';
OAS_sitepage = 'www.thedeal.com/home';
OAS_listpos = 'Bottom,BottomLeft,Middle,Middle1,Right,Top,Right1,Right2,Right';
OAS_query = '';
OAS_target = '_top';

//end of configuration

OAS_version = 10;
OAS_rn = '001234567890';
OAS_rns = '1234567890';
OAS_rn = new String (Math.random());
OAS_rns = OAS_rn.substring (2, 11);


function OAS_NORMAL(pos)
{
var tempNormal_1 = '<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>';
document.write(tempNormal_1);

var tempNormal_2='<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>';
document.write(tempNormal_2);

// alert(tempNormal_1+tempNormal_2);

// document.write('<br/>not rich format<br/>');
}
/*
function OAS_NORMAL_BACKGROUND(pos, height, width, style)
{
document.write('<td width=' + width + ' height=' + height + ' style=' + style + ' background=' + OAS_url + 'adstream_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + ' >');
}

function OAS_NORMAL_PLAIN(pos)
{
document.write('<IMG SRC="' + OAS_url + 'adstream_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0>');

}
*/
function OAS_RICH(pos)
{
//alert();
var tempRich = '<SCRIPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>';
//alert(tempRich);
document.write(tempRich);
//document.write('<br/>Rich format<br/>');
}


// *****If this line is set then rich format will be displayed*******
OAS_version = 11;
//*******************************************************************


if (navigator.userAgent.indexOf('Mozilla/3') != -1|| navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1)
{
//alert("1");
OAS_version = 10;
}

if (OAS_version >= 11 && OAS_listpos != '')
{
//alert("2");
document.write('<SCRIPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '"><\/SCRIPT>');
}

function OAS_AD(pos)
{
if (OAS_version >= 11)
{
//alert("3");
OAS_RICH(pos);
}
else
{
//alert("4");
OAS_NORMAL(pos);
}
}
 