/* 
 * 
 */

function swfModal()
{

	//Find all "a" elements with rel = #voverlay
	
	//attach to their onclick
	$("a[rel='#voverlay']").click(function(e) {
		e.preventDefault();
		$('#swfModal').html('');
		$('#swfModal').append("<object width='0' height='420'>");
		$('#swfModal').append("<param name='movie' value='" + e.currentTarget.href + "'></param>");
		$('#swfModal').append("<param name='allowFullScreen' value='true'></param>");
		$('#swfModal').append("<param name='allowscriptaccess' value='always'></param>");
		$('#swfModal').append("<embed src='" + e.currentTarget.href + "' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='600' height='420'></embed>");
		$('#swfModal').append("</object>");
		
		$('#swfModal').modal();
	});
	
	// -> build the object html for the swf
	
	// -> display the modal with generated html
	
	// -> return false, to prevent link from actually being followed 

}