/* OPEN POPUP */ 
if (!document.getElementById) {
		window.location ="http://www.webstandards.org/upgrade";
	}
function displayWindow(theURL,winName,width,height,features) {
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();
    }



/* LOAD URL */  
function loadContent(file,container) {
  var ajax = new Ajax.Updater(container,file,
    {  
      method:'GET',
      encoding: 'UTF-8',
      onComplete: showResponse
    });
  function showResponse(req){
    $(container).innerHTML = req.responseText;
     new Effect.Appear(container, { duration: 2.0,from: 0, to: 1 });
  }
}