function centerWindow(){
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
  // window.moveTo(screen.height/2-myHeight/2,screen.width/2-myWidth/2);
  // alert(screen.height+', '+myHeight+', '+ screen.width +', '+myWidth);
  //window.moveTo(400, 100);
}

function showPopup(popURL, popHeight, popWidth) { 
  window.open (popURL, "mywindow","location=0,status=0,scrollbars=0, width="+popWidth+",height="+popHeight);
 //window.moveTo(screen.height, 500);
} 




$(document).ready(function() {
  $('a#copyrightAnchor').click(function() {
    $('#resLinks').toggle();
    if((document.getElementById)&& (document.getElementById('resLinks')!=null)){
      var elmnt = document.getElementById('resLinks');
      if(elmnt.style.display != 'none'){
        self.scrollTo(0, 840)
      }
    }
    return false;
  });
  
  $('a#hideResLinks').click(function() {
    $('#resLinks').hide();
    return false;
  });
});