		function debug(){}
		//jie: added following var to auto open your links accordion
		sectionSelected = 0;
	// site behaviour initialization sequence
		window.onload = function() {
			

			// **********TESTING******************
			//this allows month to be pulled from qstring
			//in production, this should be commented out and my month written to
			//page head 	e.g. //var MyMonth = 5;					
		    
			/*if(typeof(document.qstr.pairs.MyMonth) == 'undefined') {
				MyMonth = 1;	
			} else {
				MyMonth = document.qstr.pairs.MyMonth; //get from qstr object 
			}*/
			
			
								 
			if (document.getElementById('homeswf')) {
				//set the flashVar property of the swfhandler div element
				document.getElementById('homeswf').setAttribute("flashVars","MyMonth=" + MyMonth);
				
			}
			
			
			if (MyMonth < 0) {
				MyMonth = MyMonth * (-1);	
			} else {
				MyMonth = (MyMonth * 1) + 9;	
			}
			
			
			
			
			
		// add .png/rollover support
			window.images = new imageHandler();
		// flash/sifr support
			window.swf    = new swfHandler();
			declareFonts();
			window.swf.setAll(9);
					
		// animation support
			window.motion = new motionHandler(30);
			window.motion.setMethods();
		// custom scripts
			
			
			
			window.poll   = new pollHandler();
			//jie: add following so your links can open according to section
			findLinkList(sectionSelected, 'tl_top');
			findLinkList(0, 'po_top');
			formFields();
			ddList();
				
		}


		var newWindow = function() { var popUp = window.open("email_to_a_friend_popup.html", "popup", "resizable=yes, width=380, height=560"); }


		var closeWin = function(){ window.close(); }


	// function finds/assigns expansion/contraction behaviours to right-column list boxes
		var ddList = function() {
			var motionDuration = 0.125;
			var allDivs = document.getElementsByTagName('div');
			for (var i = 0; i < allDivs.length; i++) {
				var thisDiv = allDivs[i];
				if (thisDiv.className == 'hero_dd_show') {
					thisDiv.parentNode.onmouseout = function() {
						var thisObj = this;
						var closeBox = function() {
							var heroHide = thisObj.getElementsByTagName('div')[1];
							var heroWrap = heroHide.getElementsByTagName('div')[0];
							var heroHideHeight = heroWrap.offsetHeight;
							if (heroHide != 0 && heroHide.style.height == heroHideHeight + 'px') {
								var boxMotion = {
									height  : {from:heroHideHeight + 'px', to: '0px'}
								}
								heroHide.move(boxMotion, motionDuration);
							}
						}
						window.dropDownTimer = setTimeout(closeBox, 50);
					}
					thisDiv.parentNode.onmouseover = function() {
						clearTimeout(window.dropDownTimer);
					}
					thisDiv.onclick = function() {
						var heroHide = this.parentNode.getElementsByTagName('div')[1];
						var heroWrap = heroHide.getElementsByTagName('div')[0];
						var heroHideHeight = heroWrap.offsetHeight;
							this.parentNode.onmouseout();
						var boxMotion = {
							height  : {from:'0px', to: heroHideHeight + 'px' }
						}
						heroHide.move(boxMotion, motionDuration);
					}
				}
			}
		}




	// function handles default content replacement for text field
		var formFields = function() {
			var allInputs = document.getElementsByTagName('input');
			for (var i = 0; i < allInputs.length; i++) {
				var thisInput = allInputs[i];
				if (thisInput.type == 'text' && thisInput.value != '' || thisInput.type == 'password' && thisInput.value != '') {
					thisInput.setAttribute('defaultVal', thisInput.value);
					thisInput.onfocus = function(){
						var elementDefault = this.getAttribute('defaultVal');
						if(this.value == elementDefault) {
							this.value = '';
						}	
					}
					thisInput.onblur = function(){
						var elementDefault = this.getAttribute('defaultVal');
						if(this.value == ''){
							this.value = elementDefault;
						}
					}
				}
			}
		}




	// function declares fonts for used with sIFR text
		 var declareFonts = function() {
			// contact sheet fonts, for dev porposes only
				window.swf.newFont('test_avenir_black',         {face:'/iwp/fonts/avenir-black.swf'});
				window.swf.newFont('test_avenir_blackOblique',  {face:'/iwp/fonts/avenir-blackOblique.swf'});
				window.swf.newFont('test_avenir_book',          {face:'/iwp/fonts/avenir-book.swf'});
				window.swf.newFont('test_avenir_bookOblique',   {face:'/iwp/fonts/avenir-bookOblique.swf'});
				window.swf.newFont('test_avenir_heavy',         {face:'/iwp/fonts/avenir-heavy.swf'});
				window.swf.newFont('test_avenir_heavyOblique',  {face:'/iwp/fonts/avenir-heavyOblique.swf'});
				window.swf.newFont('test_avenir_light',         {face:'/iwp/fonts/avenir-light.swf'});
				window.swf.newFont('test_avenir_lightOblique',  {face:'/iwp/fonts/avenir-lightOblique.swf'});
				window.swf.newFont('test_avenir_medium',        {face:'/iwp/fonts/avenir-medium.swf'});
				window.swf.newFont('test_avenir_mediumOblique', {face:'/iwp/fonts/avenir-mediumOblique.swf'});
				window.swf.newFont('test_avenir_roman',         {face:'/iwp/fonts/avenir-roman.swf'});
				window.swf.newFont('test_avenir_romanOblique',  {face:'/iwp/fonts/avenir-romanOblique.swf'});
			// example font declaration with all the options indicated, for dev porposes only
				window.swf.newFont('totallyCustom',                                                                                                               // <!-- font-style name
					{
						face:'/iwp/fonts/avenir-book.swf',                                                                                                        // <!-- only required option
						textcolor: '#FF6600', linkcolor: '#000000', hovercolor: '#000000',  offsetTop: 20, textalign: 'left',                                     // <!-- standard options
						adjFontSize: '14px',   adjLineHeight: '16px',    adjLetterSpacing: 'auto', adjWordSpacing: 'auto'                                         // <!-- scale adjustment options
					}
				);
			// actual enfamil fonts
				window.swf.newFont('nutrh1',  {face:'/iwp/fonts/avenir-book.swf', textcolor: '#6c7c35'});
				window.swf.newFont('nutrh2',  {face:'/iwp/fonts/avenir-medium.swf', textcolor: '#6c7c35'});
				window.swf.newFont('prodh1',  {face:'/iwp/fonts/avenir-book.swf', textcolor: '#005691'});
				window.swf.newFont('cert1',   {face:'/iwp/fonts/avenir-book.swf', textcolor: '#90448b'});
				window.swf.newFont('cal1',    {face:'/iwp/fonts/avenir-book.swf', textcolor: '#96847b'});
				window.swf.newFont('regist1', {face:'/iwp/fonts/avenir-book.swf', textcolor: '#333333'});
				window.swf.newFont('supp1',   {face:'/iwp/fonts/avenir-book.swf', textcolor: '#6a6a22'});
				window.swf.newFont('feedh1',   {face:'/iwp/fonts/avenir-book.swf', textcolor: '#2f5158'});
				window.swf.newFont('feedh2',  {face:'/iwp/fonts/avenir-medium.swf', textcolor: '#2f5158'});
				window.swf.newFont('pop1',    {face:'/iwp/fonts/avenir-book.swf', textcolor: '#533042'});
				window.swf.newFont('guy',    {face:'/iwp/fonts/avenir-book.swf', textcolor: '#6d5b37'});
				window.swf.newFont('develh1',  {face:'/iwp/fonts/avenir-book.swf', textcolor: '#723d3c'});
				window.swf.newFont('develh2',  {face:'/iwp/fonts/avenir-medium.swf', textcolor: '#723d3c'});
				window.swf.newFont('toolsh1',  {face:'/iwp/fonts/avenir-book.swf', textcolor: '#666667'});
				window.swf.newFont('toolsh2',  {face:'/iwp/fonts/avenir-medium.swf', textcolor: '#666667'});
				window.swf.newFont('abouth1',  {face:'/iwp/fonts/avenir-book.swf', textcolor: '#4e537a'});
				window.swf.newFont('abouth2',  {face:'/iwp/fonts/avenir-medium.swf', textcolor: '#4e537a'});
			
		}



