function maakSlideshow(albumid) {
	var achtergrondkleur = 'ecc99a';
	var breedte = 209;
	var hoogte = 192;
	
	var str = '<embed src="http://picasaweb.google.com/s/c/bin/slideshow.swf"';
	str += ' width="'+breedte+'" height="'+hoogte+'"';
	str += ' type="application/x-shockwave-flash"';
	str += ' flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x'+achtergrondkleur;
	str += '&feed=http://picasaweb.google.com/data/feed/api/user/Carina.costermans/albumid/'+albumid+'?alt=rss&kind=photo&hl=en_US';
	str += ' pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></embed>';
	
	return str;
}

function aanpassenAdmin(b) {
}

function popupTitel(titel) {
	$('#popupvenster').data('title.dialog', titel);
}

function TaalObj() {
	this.naam = null;
	this.id = null;
	this.icon = null;
	this.welkom = null;
	this.icongr = null;
	
	this.toString = function() {
		return '<img src="'+this.icon+'" alt="'+this.naam+'" />';
	}
	
	this.construct = function(_naam,_id,_icon) {
		this.naam = _naam;
		this.id = _id;
		this.icon = _icon;
	}
}

function laadTalen(cb) {
	taalObjs = new Array();
	
	$.ajax({
		   type: 'GET',
		   url: 'xml/talen.xml',
		   dataType: 'xml',
		   success: function(data) {
			   $('taal',data).each(function() {
											var t = new TaalObj();
											t.naam = $(this).attr('naam');
											t.id = $(this).attr('id');
											t.icon = $(this).attr('icon');
											t.welkom = $(this).attr('welkom');
											t.icongr = $(this).attr('icongroot');
											taalObjs.push(t);
		var s = '<a href="index.php?taal='+t.id+'"><img src="'+t.icon+'" alt="'+t.naam+'" /></a>';
		$('#talenContent').append(s);
											});
		if(cb) cb();
		   }
		   });
}

function emailGeldig(email) {
	return email.match(/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/)
}
