//images to preload

var images = Array('/images/flags/nl_over.gif',
				   '/images/flags/en_over.gif',
				   '/images/voting/star_highlight.gif',
				   '/images/voting/star_complete.gif',
				   '/images/voting/star_empty.gif',
				   '/images/voting/star_half.gif',
				   '/images/voting/star_highlight_small.gif',
				   '/images/voting/star_complete_small.gif',
				   '/images/voting/star_empty_small.gif',
				   '/images/voting/star_half_small.gif');

//preload images
var image = Array;
for (i = 0; i < images.length; i++)
{
	image[i]     = new Image;
	image[i].src = images[i];
}

function flashMovieSearch_235(title, color, file)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="235" height="188">');
	document.write('<param name="movie" value="/flash/coverFlow250.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="FlashVars" value="titlevar='+title+'&colorvar=0x'+color+'&xmlvar='+file+'" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/flash/coverFlow250.swf" quality="high" FlashVars="titlevar='+title+'&colorvar=0x'+color+'&xmlvar='+file+'" wmode="transparent" width="235" height="188" name="coverFlow250" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function flashMovieSearch_235_2(title, color, file)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="235" height="188">');
	document.write('<param name="movie" value="/flash/posterflow.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="FlashVars" value="titlevar='+title+'&colorvar=0x'+color+'&xmlvar='+file+'" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/flash/posterflow.swf" quality="high" FlashVars="titlevar='+title+'&varcolor=0x'+color+'&xmlvar='+file+'" wmode="transparent" width="235" height="188" name="coverFlow250" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function flashMovieSearch_250(title, color, file)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="250" height="200">');
	document.write('<param name="movie" value="/flash/coverFlow250.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="FlashVars" value="titlevar='+title+'&colorvar=0x'+color+'&xmlvar='+file+'" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/flash/coverFlow250.swf" quality="high" FlashVars="titlevar='+title+'&colorvar=0x'+color+'&xmlvar='+file+'" wmode="transparent" width="250" height="200" name="coverFlow250" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function flashMovieSearch_280(color, file)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="275" height="177">');
	document.write('<param name="movie" value="/flash/eventflow.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="FlashVars" value="colorvar=0x'+color+'&xmlvar='+file+'" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/flash/eventflow.swf" quality="high" FlashVars="colorvar=0x'+color+'&xmlvar='+file+'" wmode="transparent" width="275" height="177" name="coverFlow280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function flashMovieSearch_300(title, color, file)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="200">');
	document.write('<param name="movie" value="/flash/coverFlow300.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="FlashVars" value="titlevar='+title+'&colorvar=0x'+color+'&xmlvar='+file+'" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/flash/coverFlow300.swf" quality="high" FlashVars="titlevar='+title+'&colorvar=0x'+color+'&xmlvar=/'+file+'" wmode="transparent" width="300" height="200" name="coverFlow300" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function resetopacity(idname)
{
	var userAgent = navigator.userAgent.toLowerCase();
	if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox') != -1) {
		var yourShade = document.getElementById(idname);
		yourShade.style.MozOpacity = 1;
	    yourShade.style.opacity = 1;
	    yourShade.style.filter = "alpha(opacity=100)";
	}
}
