function initmenu () {


//                startposX=getposX(document.images["mainmenuposPic"]);
//                startposY=getposY(document.images["mainmenuposPic"])+10;



                if (document.layers) { 
				document.content_main.left = 0;
				document.content_main.visibility="show";
				}
		

                else if (document.all) {
				document.all.content_main.style.pixelLeft = 0;
                document.all.content_main.style.visibility="visible";
				}						

}


function initSitemap(ImageName)
	            {

                if (document.layers) {
                startposXS = MygetposX(document.content_main.layers[0].document.images[ImageName]);
                startposYS = MygetposY(document.content_main.layers[0].document.images[ImageName]);
                
				document.sitemap.left = startposXS + 160;
				document.sitemap.top = startposYS +122;
				document.sitemap.visibility='show';
                }
				

                if (document.all) {
                startposXS  = MygetposX(document.images[ImageName]);
                startposYS = MygetposY(document.images[ImageName]);
				
				document.all.sitemap.style.pixelLeft = startposXS + 15;
				document.all.sitemap.style.pixelTop = startposYS;
				document.all.sitemap.style.visibility='visible';
                }
             }




function initFooter()
	            {


                if (document.layers) {
                startposXF1 = MygetposX(document.content_main.document.images['lastpic1']);
                startposYF1 = MygetposY(document.content_main.document.images['lastpic1']);

                startposXF2 = MygetposX(document.images['lastpic2']);
                startposYF2 = MygetposY(document.images['lastpic2']);

				getwindowdim ();

// alert("windowHeight" + windowHeight);		


					if (startposYF2 > windowHeight) {
					this_spacer_hight = 20;
					}

					if (startposYF2 < windowHeight) {
 					 this_spacer_hight_diff = startposYF2 - windowHeight;
					 this_spacer_hight = this_spacer_hight_diff + 20;
 					 }

				maxYF12 = Math.max(startposYF1,startposYF2);
				maxY12 = Math.max(maxYF12,windowHeight);

		
				
				
                this_spacer_hight = 1;				
				maxY12_new = maxY12 + 20;
				
				document.footer.left = 0;
				document.footer.top = maxY12_new;
				document.footer.visibility='show';
                }
				

                if (document.all) {
                startposXF1 = MygetposX(document.images['lastpic1']);
                startposYF1 = MygetposY(document.images['lastpic1']);
                startposXF2 = MygetposX(document.images['lastpic2']);
                startposYF2 = MygetposY(document.images['lastpic2']);
				getwindowdim ();

				maxYF12 = Math.max(startposYF1,startposYF2);
				maxY12 = Math.max(maxYF12,windowHeight);

                this_spacer_hight = 1;				
				maxY12_new = maxY12 - 10;
				
				document.all.footer.style.pixelLeft = 0;
				document.all.footer.style.pixelTop = maxY12_new;
				document.all.footer.style.visibility='visible';
                }
             }


				
function MygetposY (MypicObj)
                {
				 if (document.layers) MyposY = MypicObj.y;
                 if (document.all) MyposY = MygetRealTop(MypicObj);
                 return (MyposY);
				}				

function MygetposX (MypicObj)
                {
				 if (document.layers) MyposX = MypicObj.x;
                 if (document.all) MyposX = MygetRealLeft(MypicObj);
                 return MyposX;
				}
								
function MygetRealLeft (Myel)
                    {
                     if (arguments.length==0) Myel = this;
                     MyxPos = Myel.offsetLeft;
                     MytempEl = Myel.offsetParent;
                     while (MytempEl != null)
                          {
                           MyxPos += MytempEl.offsetLeft;
                           MytempEl = MytempEl.offsetParent;
                          }
                     return MyxPos;
                    }
			
function MygetRealTop (Myel)
                   {
                    if (arguments.length==0) Myel = this;
                    MyyPos = Myel.offsetTop;
                    MytempEl = Myel.offsetParent;
                    while (MytempEl != null)
                         {
                          MyyPos += MytempEl.offsetTop;
                          MytempEl = MytempEl.offsetParent;
                         }
                    return MyyPos;
                   }							 


				   
function initCTA() {
                startposCTAX=getposX(document.images["ctaPic"]);
                startposCTAY=getposY(document.images["ctaPic"])+10;
                }

function initSIMULATION() {
                startposSIMX=getposX(document.images["simulationPic"]);
                startposSIMY=getposY(document.images["simulationPic"])+10;
}
				    
