function sizeAd(source,target)
{
    try
    {
        sdiv = document.getElementById(source);
        tdiv = document.getElementById(target);
        w = 0;
        h = 0;
        if (document.defaultView)
        {
		    w = document.defaultView.getComputedStyle(sdiv, "").width;
		    h = document.defaultView.getComputedStyle(sdiv, "").height;
	    } else {
		    w = sdiv.offsetWidth;
		    h = sdiv.offsetHeight;
	    }
	    tdiv.style.width = w;
	    tdiv.style.height = h;
    }
    catch (e) {}
}

function placeAd(source,target)
{
    try
    {
        sdiv = document.getElementById(source);
        tdiv = document.getElementById(target);

        x = getX(tdiv);
        y = getY(tdiv);

        if (document.defaultView)
        {
		    sdiv.style.left = x + "px";
		    sdiv.style.top = y + "px";
	    }
	    else
	    {
		    sdiv.style.left = x;
		    sdiv.style.top = y;
        }
        sdiv.style.visibility = "visible";
    }
    catch (e) {}
}

function getX(oElement)
{
	var iReturnValue = 0;
	try
	{
	    while (oElement != null) 
	    {
		    iReturnValue += oElement.offsetLeft;
		    oElement = oElement.offsetParent;
	    }
	}
	catch (e) {}
	return iReturnValue;
}

function getY(oElement)
{
	var iReturnValue = 0;
	try
	{
	    while (oElement != null) 
	    {
		    iReturnValue += oElement.offsetTop;
		    oElement = oElement.offsetParent;		    
	    }
	} 
	catch (e) {}
	return iReturnValue;
}

wxOAS_query1 = '?RM_Exclude=Airlines,Alcohol,Automobiles,Banking,BizDev,Careers';
wxOAS_query1 = wxOAS_query1 + wxOAS_targetparams;
wxOAS_query = 'RM_Exclude=Airlines,Alcohol,Automobiles,Banking,BizDev,Careers';
wxOAS_query = 'dummy=1' + wxOAS_targetparams + wxOAS_creativeparams + '&' + wxOAS_query;
wxOAS_target = '_blank';
wxOAS_version = 10;
wxOAS_rn = '001234567890'; 
wxOAS_rns = '1234567890';
wxOAS_rn = new String(Math.random()); wxOAS_rns = wxOAS_rn.substring (2, 11);
function wxOAS_NORMAL(pos) 
{
	try
	{
		document.write('<A HREF="' + wxOAS_url + 'click_nx.ads/' + wxOAS_sitepage + '/1' + wxOAS_rns + '@' + wxOAS_listpos + '!' + pos + '?' + wxOAS_query + '" TARGET=' + wxOAS_target + '>');
		document.write('<IMG SRC="' + wxOAS_url + 'adstream_nx.ads/' + wxOAS_sitepage + '/1' + wxOAS_rns + '@' + wxOAS_listpos + '!' + pos + '?' + wxOAS_query + '" BORDER=0></A>');
	}
	catch (e) {}
}
//2
wxOAS_version = 11;
try
{
	if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1)) wxOAS_version = 10;
}
catch (e) {}
if (wxOAS_version >= 11)
{
	try 
	{
		document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + wxOAS_url + 'adstream_mjx.ads/' + wxOAS_sitepage + '/1' + wxOAS_rns + '@' + wxOAS_listpos + '?' + wxOAS_query + '"><\/SCRIPT>');
	}
	catch (e) 
	{
		wxOAS_version = 10;
	}
}
//3
document.write('');
function wxOAS_AD(pos) 
{
	try
	{
		if (wxOAS_version >= 11)
		{
			if (window.OAS_url)
			{
				wxOAS_NORMAL(pos);
			}
			else
			{
				OAS_RICH(pos);
			}
		}
		else
		{
			wxOAS_NORMAL(pos);
		}
	}
	catch (e) 
	{
		wxOAS_NORMAL(pos);
	}
}
