			function init(){
					header();
					footer();
					container();
					leftPanel();
					content();
					rightPanel(); 
					menu();
					bookmark();
			}


			function footer(){
					var footer = document.getElementById("footer");
					footer.style.top = getHeight()+315+"px";
					footer.style.left = getLeft()+1+"px";		
			}

			function header(){
					var header = document.getElementById("header");		
					header.style.left = getLeft()+1+"px";
			}

			function container(){
					var container = document.getElementById("container");
					container.style.top = 236+"px";
					container.style.height = getHeight()+79+"px";
					container.style.left = getLeft()+"px";
			}


			function leftPanel(){
					var leftPanel = document.getElementById("leftPanel");
					leftPanel.style.top = 236+"px";
					leftPanel.style.left = getLeft()+1+"px";
			}

			function content(){
					var content = document.getElementById("content");
					content.style.top = 315+"px";
					content.style.left = getLeft()+265+"px";
			}

			function rightPanel(){
					var rightPanel = document.getElementById("rightPanel");
					rightPanel.style.top = 315+"px";
					rightPanel.style.left = getLeft()+790+"px";
			}

			function bookmark(){
					var bookmark = document.getElementById("bookmark");
					bookmark.style.top = 256+"px";
					bookmark.style.left = getLeft()+280+"px";
			}

			function menu(){
					var menu = document.getElementById("menu");
					menu.style.top = 215+"px";
					menu.style.left = document.body.clientWidth/2-30+"px";
			}

			function getHeight(){
					var h1=document.getElementById("leftPanel").offsetHeight;
					var h2=document.getElementById("content").offsetHeight;
					var h3=document.getElementById("rightPanel").offsetHeight;
					var mh=Math.max(Math.max(h1,h2),h3);
					return mh;
			}

			function getLeft(){
					var totwid=0;

					if (window.innerWidth)
					{
						totwid = window.innerWidth;
					}
					else if (document.documentElement && document.documentElement.clientWidth)
					{
						totwid = document.documentElement.clientWidth;
					}
					else if (document.body)
					{
						totwid = document.body.clientWidth;
					}

					//var totwid=document.body.clientWidth/2;
					var wid=document.getElementById("container").offsetWidth;
					var adjleft=(totwid-wid)/2;
					return adjleft;
			}






			
                function validation() { 
                      var name=document.contactus.name.value;
                      var organization=document.contactus.organization.value;
                      var telephone=document.contactus.telephone.value;
                      var email=document.contactus.email.value;
                      var comments=document.contactus.comments.value;

                      name=name.replace(/^\s*|\s*$/g,"");
                      organization=organization.replace(/^\s*|\s*$/g,"");
                      telephone=telephone.replace(/^\s*|\s*$/g,"");
                      email=email.replace(/^\s*|\s*$/g,"");
                      comments=comments.replace(/^\s*|\s*$/g,"");

                      if (name == '') {
                              alert("Please Fill Proper Name");
                              document.contactus.name.focus();
                              return false;
                      }
                      if (organization == '') {
                              alert("Please Fill Proper Organization Name");
                              document.contactus.organization.focus();
                              return false;
                      }
                      if (telephone=='') {
                              alert("Please Fill Your Telephone Number");
                              document.contactus.telephone.focus();
                              return false;
                      }
                      
                      if (email == '' || isValidEmail(email)==false) {
                              alert("Please Fill Proper Email");
                              document.contactus.email.focus();
                              return false;
                      }
                }
              function isValidEmail(str) {
                 return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
              }





function ReplaceContent(layerName){

	if(ie){document.all[layerName].innerHTML = ContentInfo}


	if(ns)
		{

			with(document.layers[layerName].document) 
			{ 
			   open(); 
			   write(ContentInfo); 
			   close(); 
			}

		}


}
function Activate(){initialize=1}
function deActivate(){initialize=0}

function showLayer(layerName)
	{
		document.getElementById(layerName).style.display="block";
		}
function hideLayer(layerName)
		{

		document.getElementById(layerName).style.display="none";

	}




function getFuncs() 
{ 

runSlideShow(); 

} 


