var data=[]
data[0]={
	clickHandler : function(){
		window.open('popup/amiga.html','','width=865, height=675, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}
data[1]={
	clickHandler : function(){
		window.open('popup/amigafront.html','','width=865, height=675, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}
data[2]={
	clickHandler : function(){
		window.open('popup/wb.html','','width=730, height=535, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}
data[3]={
	clickHandler : function(){
		window.open('popup/amigatop.html','','width=865, height=675, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}
data[4]={
	clickHandler : function(){
		window.open('popup/amigadet.html','','width=770, height=640, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}
data[5]={
	clickHandler : function(){
		window.open('popup/amigainside.html','','width=790, height=630, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}
data[6]={
	clickHandler : function(){
		window.open('popup/amiga1.html','','width=865, height=655, menubar=no, resizable=no, toolbar=no, status=no, scrollbar=no');
	}
}

function start(){
	var popups=[];
	for(i=0;i<data.length;i++){
		popups[popups.length]=document.getElementById("popup_"+i);
		popups[i].onclick=data[i].clickHandler;
	}
}


var Tooltips =
{
  init: function()
  {
    var links=[];
    	 links[0]=document.getElementById("atari400");
    	 for (var i=0;i<links.length;i++){
	        Core.addEventListener(links[i], "mouseover", Tooltips.showTipListener);
    	    Core.addEventListener(links[i], "focus", Tooltips.showTipListener);
       		Core.addEventListener(links[i], "mouseout", Tooltips.hideTipListener);
       	 	Core.addEventListener(links[i], "blur", Tooltips.hideTipListener);
       	 }
  },

  showTip: function(link)
  {
    Tooltips.hideTip(link);

    var tip = document.createElement("span");
    tip.className = "tooltip";
    link.appendChild(tip);
    link._tooltip = tip;
    link.title = "";
    
    // Fix for Safari2/Opera9 repaint issue
    document.documentElement.style.position = "relative";
  },
  
  hideTip: function(link)
  {
    if (link._tooltip)
    {    
      link.removeChild(link._tooltip);
      link._tooltip = null;
      
      // Fix for Safari2/Opera9 repaint issue
      document.documentElement.style.position = "static";
    }
  },

  showTipListener: function(event)
  {
    Tooltips.showTip(this);
    Core.preventDefault(event);
  },
  
  hideTipListener: function(event)
  {
    Tooltips.hideTip(this);
  }
};

Core.start(Tooltips);
window.onload=function(){start()};