
var actualSize=null;
function changeSize(size, did, dkc, title, swf, keyword) {
	if (actualSize != null) {
		$('#sizeChanger_'+actualSize).removeClass('selectedSize');
	}
	var width=0, height=0;
	switch(size) {
		case 'xs': width=240; height=180; break;
		case 's':  width=360; height=270; break;
		case 'm':  width=480; height=360; break;
		case 'l':  width=560; height=420; break;
		case 'xl': width=640; height=480; break;
	}
	$('#htmlCode').val('<div><object width="'+width+'" height="'+height+'"><param name="movie" value="'+swf+'"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><embed src="'+swf+'" type="application/x-shockwave-flash" wmode="transparent" width="'+width+'" height="'+height+'" allowFullScreen="true"></embed></object><br /><b>'+title+'</b> - <i><a href="http://www.kizoa.com">'+keyword+'</a></i></div>');
	actualSize=size;
	$('#sizeChanger_'+actualSize).addClass('selectedSize');
}

function sendEmail(url, type, langue, domain) {
	jQuery.get('http://www.'+domain+'/send-mail.php', {url: url, email: $('#emailAdress').val(), type: type, langue: langue}, function(data, textStatus){}, "text");
	$('#emailAdress').val('e-mail');
}
