function isOverContentArea(e) {
 if (!e) e = window.event;
 var oElm   = document.getElementById('PageContentBackground');
 var oPos;
 
 if (e && oElm) {
  // --------------------------
  // Calculate Coordinates
  
  // Element
  oPos   = getElmAbsPosition(oElm);
  var nTop  = oPos.y;
  var nLeft  = oPos.x;
  var nRight  = nLeft + oElm.offsetWidth;
  var nBottom  = nTop + oElm.offsetHeight;
  // Event
  var nX   = e.clientX;
  var nY   = e.clientY;
  
  
  // Do action based upon coordinates
  var nOpacity = (nX >= nLeft && nX <= nRight && nY >= nTop && nY <= nBottom)? 90 : 50;
  setOpacity(oElm, nOpacity);
 }
 
 // Clean up
 e     = null;
 oElm    = null;
 oPos    = null;
 
 return true;
}
function _onmousemove(e) {
 isOverContentArea(e);
 ProductFinder.isOverProductFinderArea(e);
}
window.onload = function() {
 // Attach isOverContentArea as an event handler for the document's onmousemove event
 document.onmousemove = _onmousemove;
 
 setOpacity(document.getElementById('PageContentBackground'), 50);
 
 // Setup links to be non clickable for now
 /*var aLinks, nL;
 aLinks     = document.getElementsByTagName('a');
 nL      = aLinks.length;
 for (var nI = 0; nI < nL; nI ++) {
  aLinks[nI].onclick = retFalse;
 }*/
 
 new MainNavWrapper('NavMain');
 
 new ProductFinder();
 
 // -----------------------------
 // MAIN NAV
 
 // patients
 var oNav = MainNavWrapper.instances.NavMain;
 LoadMenu(oNav, "");
 
 var oProNav = ProductFinder.instance;
 LoadMenuProductMenu(oProNav, "");

 /*
 // -----------------------------
 // PRODUCTS
 
 // Products


 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p2', 'Aranesp&reg; (darbepoetin alfa) ', '/dutch/patients/products_aranesp.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p3', 'Enbrel&reg; (etanercept) ', '/dutch/patients/products_enbrel.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p4', 'EPOGEN&reg; (Epoetin alfa) ', '/dutch/patients/products_epogen.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p5', 'Kepivance™ (palifermin)', '/dutch/patients/products_kepivance.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p6', 'Kineret&reg; (anakinra) ', '/dutch/patients/products_kineret.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p7', 'Neulasta&reg; (pegfilgrastim) ', '/dutch/patients/products_neulasta.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p8', 'NEUPOGEN&reg; (Filgrastim) ', '/dutch/patients/products_neupogen.html');
 
 proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p9', 'Sensipar&reg; (cinacalcet HCl) ', '/dutch/patients/products_sensipar.html');
 


 

 // Diseases


 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p11', 'Anemia', '/dutch/patients/disease_info_anemia.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p12', 'Ankylosing Spondylitis', '/dutch/patients/disease_info_ankylosing_spondylitis.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p13', 'Blood Disorders', '/dutch/patients/disease_info_blood_disorders.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p14', 'Cancer', '/dutch/patients/disease_info_cancer.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p15', 'Inflammation', '/dutch/patients/disease_info_inflammation.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p16', 'Joint Disorders', '/dutch/patients/disease_info_joint_disorders.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p17', 'Oral Mucositis', '/dutch/patients/disease_info_oral_mucositis.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p18', 'Psoriasis', '/dutch/patients/disease_info_psoriasis.html');

 proObj.addItem(ProductFinder.TypeEnum.ByDisease, 'p19', ' Rheumatoid Arthritis', '/dutch/patients/disease_info_rheumatoid_arthritis.html');



*/
// New Format proObj.addItem(ProductFinder.TypeEnum.ByProduct, 'p<%=i%>', 'Home JS', '/dutch/patients/products_overview.html');
// Old Format ProductFinder.instance.addItem(ProductFinder.TypeEnum.ByProduct, 'p<%=i%>', 'Home JS', '/dutch/patients/products_overview.html');


};
window.onunload = function() {
 // Clean up
 MainNavWrapper.destroy();
 document.onmousemove = retTrue;
};