/*
         ___                         _____       __
        /  /\        ________       /    /\     / /\
(-----//  /  \//----/_____/__\\--) /____/  \___/_/ //--------------------------)
      /  /   /      \     | //     \    \  /    /\/    this code was created by
     /__/   /        \    |///-----\\____\/____/  \                       sigea
(---\\  \  /   (-----\\___|/        /    /\    \  /       
      \__\/                        /____/ /\____\/            __       sigea.ch
                                   \____\/  \  /             /\_\--------------)
                                         \___\//-------------\/_/  

*/
var prolist;
function Prolist(){
	var placeholderID='proinfo';
	var selectionID='proliste';
	var placeholder,fadeImage,source;
	this.show=function(whichpic){
		if (!document.getElementById(placeholderID)) return false;
		var caption = document.getElementById(placeholderID);
		while(caption.hasChildNodes()){
			caption.removeChild(caption.lastChild);
		}
		//caption.appendChild(document.createTextNode(whichpic.title));
		caption.innerHTML=whichpic.title.replace(/:/,':<br>');
		return true;
	}
	this.hidde=function(){
		var caption = document.getElementById(placeholderID);
		while(caption.hasChildNodes()){
			caption.removeChild(caption.lastChild);
		}
	}
	this.prepare=function(){
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById(placeholderID)) return false;
		if (!document.getElementById(selectionID)) return false;
		var links = document.getElementById(selectionID).getElementsByTagName('a');
		for ( var i=0; i < links.length; i++){
			links[i].arg=i;
			links[i].onmouseover = function(){
				return !prolist.show(this);
			}
			links[i].onmouseout = function(){
				return !prolist.hidde();
			}
		}
		return true;
	}
}
function prepareProlist(){
	prolist=new Prolist();
	prolist.prepare();
}
addLoadEvent(prepareProlist);
