/*
 * Replace Images to Flash
 */
var ie5 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.0") != -1);
var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
var ie6 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);

if (!ie5) {
	jQuery(document).ready(function(){
		jQuery("img[alt='flash']").each(function(i){
		
			fl_id = jQuery(this).attr('id');
			fl_src = jQuery(this).attr('rel');
			
			jQuery(this).removeAttr('id');
			jQuery(this).removeAttr('rel');
	
			jQuery(this).wrap('<div id="' + fl_id + '"></div>');
			
			var flashvars = {};
			var params = {};
			params.wmode = "opaque";
			var attributes = {};
			swfobject.embedSWF(fl_src, fl_id, jQuery(this).attr('width'), jQuery(this).attr('height'), "9.0.0", "", flashvars, params, attributes);
		});
	});
}
