function align()
{

	var lmt = document.getElementById('center');
	var container = document.documentElement;
	if(lmt && container)
	{
	    var containerHeight;
	    if (container.innerWidth)
	    {
             	containerHeight = container.innerHeight;
	    }
	    else
	 	{
           	containerHeight = container.clientHeight;
		}
		
	   	var lmtHeight;
	   	if (lmt.innerWidth)
	    {
         	lmtHeight = lmt.innerHeight;
		}
		else
		{
           	lmtHeight = lmt.offsetHeight;
		}
		var y = Math.ceil(((containerHeight - lmtHeight) / 2) - 40);
		if(y < -110)
		{
			y = -110;
		}
		lmt.style.position = "relative";
		lmt.style.top = y + "px";
		
		
		
		
		
		
 		var viewportwidth;
 		var viewportheight;
 
		 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
		 if (typeof window.innerWidth != 'undefined')
		 {
    		  viewportwidth = window.innerWidth,
    		  viewportheight = window.innerHeight
		 }
 
		// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

		 else if (typeof document.documentElement != 'undefined'
    		 && typeof document.documentElement.clientWidth !=
   			  'undefined' && document.documentElement.clientWidth != 0)
		 {
       		  viewportwidth = document.documentElement.clientWidth,
     		  viewportheight = document.documentElement.clientHeight
 		  }
 
		 // older versions of IE
 
		 else
		 {
		       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
		       viewportheight = document.getElementsByTagName('body')[0].clientHeight
	 	 }
		
		
		var xb = (((viewportwidth - 1107) / 2) - 20);
		
		if(xb < -210)
		{
			xb = -210;
		}
		
		lmt.style.left = xb + "px";
		
		
		
		
			
	}
	if (document.getElementById)
	{
		document.body.style.visibility = 'visible';
	}

}

function addevent(obj,evt,fn,capt){
	if(obj.addEventListener)
	{
		obj.addEventListener(evt, fn, capt);
		return true;
	}
	else if(obj.attachEvent)
	{
		obj.attachEvent('on'+evt, fn);
		return true;
	}
	else return false;
}

if (document.getElementById && document.getElementsByTagName)
{
	addevent(window, 'load', align, false);
	addevent(window, 'resize', align, false);
}
