window.onload = function()
{
    complete8 = {
        tl: { radius: 8 },
        tr: { radius: 8 },
        bl: { radius: 8 },
        br: { radius: 8 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    }

	complete5 = {
        tl: { radius: 5 },
        tr: { radius: 5 },
        bl: { radius: 5 },
        br: { radius: 5 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    }

    bottom8 = {
        tl: { radius: 0 },
        tr: { radius: 0 },
        bl: { radius: 8 },
        br: { radius: 8 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div"]
    }

	top5 = {
        tl: { radius: 5 },
        tr: { radius: 5 },
        bl: { radius: 10 },
        br: { radius: 10 },
        antiAlias: true,
        autoPad: true,
        validTags: ["a"]
    }
    
 	var cornerObject = new curvyCorners(complete8,"portlet_magenta");
    cornerObject.applyCornersToAll(); 
	var cornerObject = new curvyCorners(bottom8,"portlet_gray");
    cornerObject.applyCornersToAll();
	var cornerObject = new curvyCorners(complete5,"nav_sub");
    cornerObject.applyCornersToAll();

}


/**
* open accessible popup
*
* @param	string		url
* @return	boolean		always false
*/
function Popup (url) {
	var newwindow	= window.open(url,"popup","width=550,height=600,menubar=no,location=no,status=no,scrollbars=yes,toolbar=yes,resizable=yes");
	newwindow.focus();
	return false;
}

/**
* center a popup window on screen
*
* @param    object  window object (optional)
*/
function CenterPopup(win) {
	if(typeof(win)=='undefined'||win=='') { var win=window; }
	
	win_width	= window.outerWidth;
	win_height	= window.outerHeight;
	
	moveTo(screen.width/2-win_width/2,screen.height/2-win_height/2,win);
}


/**
* open flashplayer popup
*/

function getPopup(_popsrc,_popwidth,_popheight){
	_xpos = Math.floor((screen.width - _popwidth) / 2);
	_ypos = Math.floor((screen.height - _popheight) / 2);
	var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=no, scrollbars=no";
	_popup = window.open(_popsrc,"_popup",_eigenschaften);
	_popup.focus();
}
