taglineItems = new Array();

taglineItems[0] = ""; //main tagline
taglineItems[1] = "Less Plastic, less water.*<br /><font style='font-size: .8em'>*vs non-concentrated fabric softener</font>"; //downy "35% less plastic per bottle.*<br /><font style='font-size: .8em'>*Vs. non-concentrated Downy</font>"
taglineItems[2] = "Sparkling clean dishes using the energy saving cycle."; //cascade
taglineItems[3] = "Fewer roll changes and fewer wasted cardboard cores.*<br /><font style='font-size: .8em'>*One Charmin<sup>&reg;</sup> Mega Roll is equal to four regular Charmin<sup>&reg;</sup> rolls<br />based on total sheet count</font>"; //charmin
taglineItems[4] = "Strong sheets, 45% smaller.*<br /><font style='font-size: .8em'>*Vs regular Bounty sheets</font>"; //bounty
taglineItems[5] = "Energy efficient. Long-lasting power."; //duracell
taglineItems[6] = "Unlock the cleaning performance of your high efficiency washer."; //tide
taglineItems[7] = "Cold water. Brilliant clean."; //tide cw - old: Great cleaning, even in cold water.
taglineItems[8] = ""; //waste
taglineItems[9] = ""; //energy
taglineItems[10] = ""; //packaging

//FRENCH taglines
taglineItems[20] = ""; //main tagline
taglineItems[21] = "Moins de plastique, moins d'eau*<br /><font style='font-size: .8em'>*vs assouplissant textile non concentr&eacute;</font>"; //downy
taglineItems[22] = "Une vaisselle brillante de propret, au cycle d'&eacute;conomie d'&eacute;nergie."; //cascade
taglineItems[23] = "En changeant le rouleau moins souvent, vous jetez moins de carton.*<br /><font style='font-size: .8em'>*Un seul mga rouleau Charmin contient autant de feuilles que quatre rouleaux Charmin ordinaires selon le nombre total de feuilles.</font>"; //charmin
taglineItems[24] = "Feuilles r&eacute;sistantes et 45 % plus petites que les feuilles Bounty ordinaires."; //bounty
taglineItems[25] = "Conergtiques, elles durent longtemps.*<br /><font style='font-size: .8em'>*Elles gardent leur charge plus longtemps, lorsqu'elles ne sont pas utilises,<br />que les piles NiMh ordinaires</font>"; //duracell
taglineItems[26] = "Des &eacute;conomies  grande puissance."; //tide
taglineItems[27] = "&Agrave; l'eau froide. Brillant de propret&eacute; !"; //tide cw - old: Un lavage remarquable, mme  l'eau froide.
taglineItems[28] = ""; //waste
taglineItems[29] = ""; //energy
taglineItems[30] = ""; //packaging

/*
taglineItems[0] = "I choose these Future Friendly products to help make a difference."; //main tagline
taglineItems[8] = "Featured Products for Less Waste."; //waste
taglineItems[9] = "Featured Products for Less Energy."; //energy
taglineItems[10] = "Featured Products for Less Packaging."; //packaging
*/


/*
function getWindowHeight() {

var windowHeight = 0;

if (typeof(window.innerHeight) == 'number') 
{
	windowHeight = window.innerHeight;
}
else {
     if (document.documentElement&& document.documentElement.clientHeight) 
		 	{ windowHeight = document.documentElement.clientHeight; }
		 else 
		 { if (document.body&&document.body.clientHeight) 
				{ windowHeight = document.body.clientHeight; }
	    }
		}
		 
	/*alert(windowHeight); 
	
	if (windowHeight > 540)
	{
	document.getElementById("westSide").style.height = (windowHeight - 110) + "px";
	//document.getElementById("siteContent").style.height = (windowHeight - 300) + "px";
	}		
	
}//end function

	*/
/*
function btnChange(whichDIV,whichImg,whatState) {
	changeThis = document.getElementById(whichDIV);
	changeThis.innerHTML = 
}
*/

function changeTagline(whichTag) {
	document.getElementById("tagline").innerHTML = taglineItems[whichTag];
}

function btnChange(whichImg, whichState) {
		if (whichState == 'on') 
			{ document[whichImg].src = "../images/btn_" + whichImg + "_ON-trans.png"; }
		else if (whichState == 'off')
			{ document[whichImg].src = "../images/btn_" + whichImg + "-trans.png"; }
}

function btnChangeFR(whichImg, whichState) {
		if (whichState == 'on') 
			{ document[whichImg].src = "../images/fr/btn_" + whichImg + "FRON-trans.png"; }
		else if (whichState == 'off')
			{ document[whichImg].src = "../images/fr/btn_" + whichImg + "FR-trans.png"; }
}

function controlFlash() {
	var flashmovie1 = window.document.wasteMov_01;
	flashmovie1.Rewind();
	flashmovie1.Play();
	
	var flashmovie2 = window.document.wasteMov_02;
	flashmovie2.Rewind();
	flashmovie2.Play();
	
	var flashmovie3 = window.document.wasteMov_03;
	flashmovie3.Rewind();
	flashmovie3.Play();
		
}


$(document).ready(function(){

				$("dd.hidethisdd").hide();
				
				$("#siteContent").jScrollPane();
				
				$("dt.willopen span.wastetip").click(function(){
				$(this).parent("dt").next("dd").slideToggle("fast");
				controlFlash(); 
				return false;
				});
				
				$("dt.willopen a").click(function(){
				$(this).parent("dt").next("dd").slideToggle("fast");
				return false;
				});
				
				
});
