

function insertFlashHero(url, img) {
	insertFlash(url + '?img=' + img, 760, 135);
	//if (hasFlash(6)) {
		//insertFlash(url + '?img=' + img, 760, 135);
	//} else {
		//insertImage(url, 760, 135)
	//}
}

function insertFlash(url, w, h) {
	var flash_object = '';
	flash_object += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
	flash_object += 'width="' + w + '" height="' + h + '">\n';
	flash_object += '<param name="movie" value="' + url + '" />\n';
	flash_object += '<param name="quality" value="high" />\n';
	flash_object += '<embed src="' + url + '" ';
	flash_object += 'quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ';
	flash_object += 'width="' + w + '" height="' + h + '"></embed>\n';
	flash_object += '</object>\n';
	document.write(flash_object);
}

function insertImage(url, w, h) {
	document.write('<img src="' + url + '" alt="" name="" width="' + w + '" height="' + h + '" />\n');
}
