//create onDomReady Event
      window.onDomReady = initReady;
 
      // Initialize event depending on browser
      function initReady(fn){
      	//W3C-compliant browser
      	if(document.addEventListener) {
          document.addEventListener("DOMContentLoaded", fn, false);
        }
      	//IE
      	else {
          document.onreadystatechange = function(){readyState(fn)}
        }
      }
 
      //IE execute function
      function readyState(func){
      	// DOM is ready
      	if(document.readyState == "interactive" || document.readyState == "complete"){
      		func();
      	}
      }
	  
	//do when DOM is ready
	function onReady(){
	
		if(document.getElementById("prodNutrInfo")){
			prodInfoHeight = document.getElementById("nutritionImgArea").offsetHeight;
			headerHeight = document.getElementById("contHeader").offsetHeight;
			if(document.getElementById("nutritionTextCol")){
				nutritionTextColHeight = document.getElementById("nutritionTextCol").offsetHeight;
				gdaPos = prodInfoHeight + nutritionTextColHeight + 265;
			}else{
				gdaPos = prodInfoHeight + 265;
			}
			//alert(prodInfoHeight +" "+ headerHeight);
			
			document.getElementById("GDACalculator").style.top = gdaPos+"px";
		}
			
	}

	  
	  
	  //execute as soon as DOM is loaded
		window.onDomReady(onReady);
 




