function AddrDecrypt(s) {
var n=0;
var r="";
for(var i=0;i<s.length;i++) {
n=s.charCodeAt(i);
if (n>=8364) {n = 128;}
r += String.fromCharCode(n-(1));
}
return r;
}

function LinkTo_AddrDecrypt(s)   {
location.href=AddrDecrypt(s);
}

function InfoWindow(what) {
window.open(what,"_blank", "scrollbars, resizable, width=300, height=400, top=50, left=10");
}

function centerContent() {
 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
 }
 el = document.getElementById("page_margins");
 d_height = el.offsetHeight;
 d_width = el.offsetWidth;
 m_top = 0.5*(viewportheight - d_height);
 if (m_top<10) m_top = 10;
 m_top = m_top+"px"; 
 m_left = 0.5*(viewportwidth - d_width);
 if (m_left<10) m_left = 10;
 m_left = m_left+"px"; 
 el.style.top = m_top;
 el.style.left = m_left;
}

window.onload = function() { 
centerContent(); 
} 
window.onresize = function() { 
centerContent(); 
} 
