iv_site = 'iVillage';
var mtfullUrl =String(window.location);
var mtpath = mtfullUrl.split("?");
var mtpaths = mtpath[0].split("/");

//.........set the content-type
iv_contenttype = "Slideshows";
var thFlag = "false";
var oldFlag = "false";
iv_subsection2 = '';
iv_titletag = '';
//................................Stuff We Love
	
var mtdomn = mtpaths[2];
if (mtdomn.indexOf('stuffwelove') != -1) {
	
	oldFlag = "true";
	var mtsubdomn = mtpaths[3];		
	iv_subsection1 = mtpaths[4];
	mtsubsect2  = mtpaths[5];
	mttitletemp = mtpaths[6];
} else {

	var mtsubdomn = mtpaths[4];		
	iv_subsection1 = mtpaths[5];
	mtsubsect2  = mtpaths[6];
	mttitletemp = mtpaths[7];
}
if (typeof mtsubsect2  != 'undefined' ) {

		if (mtsubsect2 .indexOf('.html') != -1){
			mtsubsect2  = mtsubsect2 .split(".");
			iv_subsection2 = mtsubsect2 [0];
		
		} else {
			iv_subsection2 = mtsubsect2 ;
		}	
} else {

		iv_subsection2 = '';
}
if (iv_subsection2 == "index") {
 iv_subsection2 = "";
}

if (typeof mttitletemp != 'undefined' ) {
		if (mttitletemp.indexOf('.html') != -1){
			mttitletemp = mttitletemp.split(".");
			iv_titletag = mttitletemp[0];
		
		} else {
			iv_titletag = mttitletemp;
		}	
} else {
		iv_titletag = '';
}
if (iv_titletag == "index") {
		iv_titletag = "";
}

iv_section = mtsubdomn;

if (mtsubdomn == "entertainment") {
	iv_section = "Entertainment";
} else if (mtsubdomn == "weddings") {
	iv_section = "Weddings";
} else if (mtsubdomn == "parenting") {
	iv_section = "Parenting";
} else if (mtsubdomn == "food") {
	iv_section = "Food";
} else if (mtsubdomn == "love") {
	iv_section = "Love";
} else if (mtsubdomn == "home") {
	iv_section = "Home";
} else if (mtsubdomn == "ivillage") {
	iv_section = "iVillage";
} else if ( mtsubdomn == "beauty" || mtsubdomn == "beauty_style" || mtsubdomn == "beauty-style") {
	iv_section = "Beauty";
} else if ( mtsubdomn == "health" ) { 
    iv_section = "Health";
	thFlag = "true";
} else if ( mtsubdomn == "wellness" ) { 
    iv_section = "Wellness";
	thFlag = "true";
} else if ( mtsubdomn == "diet" || mtsubdomn == "diet_fitness" ) {
    iv_section = "Diet";
	thFlag = "true";
} else if ( mtsubdomn == "momtourage" ) {
	iv_site = "Momtourage";
	iv_section = mtchan;
} 

//.............for yourTotalHealth
if (thFlag == "true") {	
	iv_titletag = iv_subsection2;
	iv_subsection2 = iv_subsection1;
	iv_subsection1 = iv_section;
	iv_section = "totalHealth";
}

