/*var dartCatStamp = "beauty_hair_remedyfinder_tool";
Tacoda_AMS_DDC_addPair("dartCatStamp", dartCatStamp);

function getQueryParamValue(param) { 
	var q = document.location.search; 
	var detectIndex = q.indexOf(param); 
	var endIndex = (q.indexOf("&", detectIndex) != -1) ? q.indexOf("&", detectIndex) : q.length; 
	if(q.length > 1 && detectIndex != -1) { 
			return unescape(q.substring(q.indexOf("=", detectIndex)+1, endIndex)); 
		} else { 
			return ""; 
		} 
}

function init()
{
	initAd();
	writeAd();
}

function writeAd()
{
	var ord = Math.floor(Math.random() * 100000);
	var suppArrLyr = getQueryParamValue('suppArrLyr');
	if (!suppArrLyr) {
		document.write('<scr'+'ipt language="javascript" type="text/javascript" id="ad7" src="http://iv.doubleclick.net/adj/web5.ivillage/beauty_hair_remedyfinder_tool;chan=beauty;sect=hair;sub=remedyfinder;cont=tool;!category=beauty;!category=noexpand;!category=tools;'+document.iv_arrival_pba+'tandomad='+eTandomAd+';'+document.dartFTT+document.dartTData+document.catid+document.dartTid+document.ivrtt+document.iv_commonDARTJS+'sz=300x250;pos=7;tile=7;ord=' + ord + '?"><\/scr'+'ipt>');
		//end - this comment is for parsing in standard article
	} else {
		 document.write('<scr'+'ipt language="javascript" type="text/javascript" id="ad7" src="http://iv.doubleclick.net/adj/web5.ivillage/beauty_hair_remedyfinder_tool;chan=beauty;sect=hair;sub=remedyfinder;cont=tool;!category=beauty;!category=noexpand;!category=tools;'+document.iv_arrival_pba+'tandomad='+eTandomAd+';'+document.dartFTT+document.dartTData+document.catid+document.dartTid+document.ivrtt+document.iv_commonDARTJS+'sz=300x250;pos=7;tile=7;ord=' + ord + '?"><\/scr'+'ipt>');
	}
}*/

function updateAd7()
{
	var ord = Math.floor(Math.random() * 100000);
	$temp = document.getElementById("ad7frame").src;
	$temp2 = '';
	//document.getElementById("ad1frame").src = "";
	//alert($temp.indexOf('&cb'));
	if ($temp.indexOf('&cb') >= 0)
	{
		$temp2 = $temp.substring(0, $temp.indexOf('&cb'));
		$temp2 += '&cb=' + ord;
		//alert("after first pass");
	}
	else
	{
		$temp2 = $temp + '&cb=' + ord;
		//alert("first pass");
	}
	//alert($temp2);
	document.getElementById("ad7frame").src = $temp2;
}


/*function initAd()
  {
  document.checkedPBA = (location.search == '')? true:false
                  if (!document.iv_arrival_pba) document.iv_arrival_pba = '';
                  if (!document.dartFTT) document.dartFTT = '';
                  if (!document.dartTData) document.dartTData = '';
                  if (!document.dartTid) document.dartTid = '';
                  if (!document.catid) document.catid = '';
                  if (!document.ivrtt) document.ivrtt = '';
                  if (typeof eTandomAd == "undefined") eTandomAd = "none";

                  document.iv_commonDARTJS = '';

                  if (typeof iv_showCobrand == 'string') {
	                if (iv_showCobrand == 'msnwomen' || iv_showCobrand == 'msndiet') {
                      document.iv_commonDARTJS = '!category=msn;'
                    }
                  }

                  if (!document.ivNPA) {
                    qs = location.search.substring(1).split('&');
                    document.ivNPA = '';
                    for (i = 0; i < qs.length; i++) {
                      valSplit = qs[i].split('=');
                      if (valSplit[0] == 'ivNPA') {
                        if (valSplit[1] == 1) {
                          document.iv_arrival_pba = '!category=nopopup;!category=nopopunder;';
                          break;
                        }
                      }
                    }
                  }

                  if (!document.checkedPBA) {
                    for (i = 0; i < qs.length; i++) {
                      pos = qs[i].indexOf('=');
                      if (qs[i].substring(0, pos) == 'pba') {
                        document.iv_arrival_pba = unescape(qs[i].substring(pos+1)+';!category=nopopup;!category=nopopunder;');
                        document.checkedPBA = 1;
                        break;
                      }
                    }
                  }

}*/