/*	Javascript-Funktionen fuer die Bilderanzeige mit dem Conpresso-CMS
	H.F. Mathias Klaucke 25. Mai 2006
*/

var popupFeatures = 'location=0,statusbar=0,menubar=0,screenX=100,screenY=100,width=500,height=500';

function isUndefined(v) {
    var undef;
    return v===undef;
}

function rawPopup(url, target, features) {
    if (isUndefined(features)) features = popupFeatures;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function linkPopup(src, features) {
    return rawPopup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}

function checkStatusBar()
{
 if(window.statusbar && window.statusbar.visible == true)
   window.resizeTo(document.Bild.width+5, document.Bild.height+50);
 else
   window.resizeTo(document.Bild.width+5, document.Bild.height+25);
}