
$(document).ready(function(){
	//$("#flashIntroWrapper").html("<embed src=\"\/tl_files\/flash\/Intro.swf\" quality=\"high\" name=\"Intro\" wmode=\"transparent\" height=\"100%\" width=\"100%\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.adobe.com\/go\/getflashplayer\" id=\"flashIntro\" \/>");
	
	var nbr = GetRandom(1,4);

	var html = "";
	html += "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" WIDTH=\"100%\" HEIGHT=\"100%\" id=\"flashIntro\">\n";
	html += "<PARAM NAME=movie VALUE=\"\/tl_files\/flash\/Intro" + nbr + ".swf\">\n";
	html += "<PARAM NAME=quality VALUE=high>\n";
	html += "<PARAM NAME=bgcolor VALUE=#FFFFFF>\n";
	html += "<PARAM NAME=wmode VALUE=transparent>\n";
	html += "<EMBED src=\"\/tl_files\/flash\/Intro" + nbr + ".swf\" href=\"\/tl_files\/flash\/Intro" + nbr + ".swf\" quality=high bgcolor=#FFFFFF wmode=\"transparent\" WIDTH=\"100%\" HEIGHT=\"100%\" NAME=\"Intro" + nbr + "\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>\n";
	$("#flashIntroWrapper").html(html);
	
	//$("#flashIntro").attr("height", "100%");
	//$("#flashIntro").attr("width", "100%");
});

function GetRandom( min, max ) {
	if( min > max ) {
		return( -1 );
	}
	if( min == max ) {
		return( min );
	}
 
        return( min + parseInt( Math.random() * ( max-min+1 ) ) );
}
