
function popUp(URL,width,height)
{
	day = new Date();
	id = day.getTime();
	var winLeft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left='+winLeft+',top='+winUp);");
}

function contact_by_mail(user, domain, suffix, content)
{
	if (!content)
	{
		document.write('' + user + '@' + domain + '.' + suffix + '');
	} 
	else
	{
		document.write('' + content + '');
	}
	return true;
}

function getImageFrom(naam,from)
{
	if(from == "CMS") {
		document.write('<img src="/CMS/pls/imgs/' + naam + '');
	} else {
		document.write('<img src="/templates/standaard/images/' + naam + '');
	}
}

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+',noresizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/**
 * jQuery onloads
 */
jQuery(document).ready(function() {
	jQuery("a.colorbox").colorbox({
		transition: "fade",
		slideshow: true
	});
});
