function openWindow(url,w,h)
{
	if (w < 100 || w > screen.width-50)
		w = screen.width/3;
	if (h < 100 || h > screen.height-50)
		h = screen.width/3;

	mywindow = window.open(url,"displayWindow","menubar=no,scrollbars=yes,status=yes,width="+w+",height="+h);
	return false;
}

function displayPic(picName, status)
{
	if (status == 1)
	{
	}
}

function switchLeftPic(pic)
{
	document.getElementById('leftcol').style.backgroundImage='url(/assets/site/img/ref/'+pic+')';
}

window.addEvent('domready', function(){
	
	// Tooltips initialisieren
	$$('.tooltip').each(function(element,index) {  
		var content = element.get('longdesc').split('::');
		content[1]=content[1].replace(/--/g, "<br>");
		element.store('tip:title', content[0]);  
		element.store('tip:text', content[1]);  
	});
	new Tips($$('.tooltip'));
	
	// Tooltip-Links ausschalten submit
	$$('.tooltip').addEvent('click', function(e) {
		new Event(e).stop();
	});
	
});

