window.onload = doThis;
window.onresize = doThis;
function doThis()
{
    var viewportwidth;
    if (typeof window.innerWidth != 'undefined')
    {
      viewportwidth = window.innerWidth;
    }

    // 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;
    }

    // older versions of IE

    else
    {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth;
    }
    var listLength = 960;
    
    var padding = (viewportwidth - listLength) / 2; 
//    if( padding < 80 )
//    {
//        padding = 80;
//    }
    var obj = document.getElementById( "navmenu-h" );
    if( obj )
    {
	    //var x = "\"" + padding + "px\"";
	    var x = "\"1px\"";
	    obj.style.paddingLeft = eval(x);
    }
        
}
 


