//OAS MJX Ad 
function getOASquery() {
var docQuery = location.search;
if (docQuery.indexOf('?')>-1)
docQuery = docQuery.substring(1,docQuery.length);
return(docQuery);
}
//start  the following added by Anita L  Yellipeddi  on 8/6/2008
function getdirLevels(){
var docLoc = document.location;
docLoc = docLoc.toString();
if (docLoc.indexOf('.com')>-1)
{
docLoc =  docLoc.substring(docLoc.indexOf('.com')+4,docLoc.length);
}
var nameArray = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
var nLen =  nameArray.length;
var valueArray = docLoc.split("/");
var vLen = valueArray.length;
for(i=1;i<=vLen-1;i++){
namevalString += "&"+nameArray[i-1]+"="+valueArray[i];
}
return(namevalString);
}
//end  the following added by Anita L  Yellipeddi  on 8/6/2008

//OAS MJX Display Functions

function OAS_NORMAL(pos) {
document.write('<A HREF="' + OAS_url + 'click_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
document.write('<IMG SRC="' + OAS_url + 'adstream_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
}

function OAS_AD(pos) {
  if (OAS_version >= 11)
    OAS_RICH(pos);
  else
    OAS_NORMAL(pos);
}

//OAS MJX Configuration

var OAS_url = 'http://ads.al.com/RealMedia/ads/';
var OAS_target = '_top';

if (typeof(OAS_sitepage)=="undefined")
 var OAS_sitepage = 'www.al.com';

 var OAS_query = getOASquery()+"&"+OASappendquery+getdirLevels();

if (typeof(OAS_listpos)=="undefined")
var OAS_listpos = '';

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

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

if (OAS_version >= 11)
document.write('<SCRIPT LANGUAGE=JavaScript1.1 type="text/javascript" SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCR'+'IPT>');


