// +++++++++++++++++++++++++++++++++++++++++++++++ Popup +++++++++++++++++++++++++++++++++++++++++++++++
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}



// ++++++++++++++++++++++++++++++++++++++++ Größere gifs anzeigen ++++++++++++++++++++++++++++++++++++++++
function gifgross(gifurl, gifwidth, gifheight) {

	document.getElementById('dimbackground').style.display='block';
    document.getElementById('grossesgifcontainer').style.display='block';
	
	var divwidth = Number(gifwidth) + 20;
	var divheight = Number(gifheight) + 25;

	var marginleft = divwidth / 2 + 2;	
	var margintop = divheight / 2 + 10;
	
	document.getElementById('grossesgifcontainer').style.width=divwidth+'px';
	document.getElementById('grossesgifcontainer').style.height=divheight+'px';

	document.getElementById('grossesgifcontainer').style.marginLeft='-'+marginleft+'px';
	document.getElementById('grossesgifcontainer').style.marginTop='-'+margintop+'px';
    
    document.getElementById('grossesgif').innerHTML='<a href="javascript:gifgrossclose();"><img src="'+gifurl+'" style="border: 0px; width: '+gifwidth+'px; height: '+gifheight+'px;" alt="" /></a>';
	
}

function gifgrossclose() {

	document.getElementById('dimbackground').style.display='none';
    document.getElementById('grossesgifcontainer').style.display='none';

}
