<!--
var browser=navigator.userAgent;

function show_pic(obj)
{
	var linkURL=obj.linkURL;
	var width=obj.thumbWidth;
	var height=obj.thumbHeight;
	if(width>height)
	{ //Querformnat
		width=600;
		height=450;
	}
	else
	{ //Hochformat
		width=450;
		height=600;
	}
	//alert(width+'\n'+height);
	document.getElementById('window_bg').style.visibility='visible';
	if(!browser.match(/IE/))
	{
		document.getElementById('window_bg').style.backgroundColor='transparent';
		document.getElementById('window_bg').style.backgroundImage='url(./images/bigpicbodybg.gif)';
	}
	document.getElementById('big').style.visibility='visible';
	document.getElementById('picture').style.border='2px solid #FFFFFF';
	document.getElementById('big_picture').style.width=width;
	document.getElementById('big_picture').style.height=height;
	document.getElementById('picture').width=width;
	document.getElementById('picture').height=height;
	document.getElementById('picture').src=linkURL;
}

function hide_pic()
{
	document.getElementById('big').style.visibility='hidden';
	document.getElementById('window_bg').style.visibility='hidden';
}

function image_scroller_clicked(info)
{
// handles the information send from the image scroller. Information is sent via a single parameter,
// of type Object.

	var index = info.index;
	var linkURL = info.linkURL;
	var thumbURL = info.thumbURL;
	var thumbWidth = info.thumbWidth;
	var thumbHeight = info.thumbHeight;
	show_pic(info);
}

function crnarr(linkURL, width, height)
{
	var obj = new Array();
	obj['linkURL']=linkURL;
	obj['thumbWidth']=width;
	obj['thumbHeight']=height;
	image_scroller_clicked(obj);
	
}
//-->
