﻿
<!-- A function the bypasses IEs requirement to activate the flash (with an ugly white border around it) -->
function insertFlash()
{
	var el = document.getElementById("flashdiv");

	if (el != null)
	{
		var str = "	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='333' height='200'>";
		str 	+= "	  <param name='movie' value='guldrecept.swf'>";
		str 	+= "	  <param name='quality' value='high'><param name='LOOP' value='true'>";
		str 	+= "	  <embed src='guldrecept.swf' width='340' height='215' loop='true' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>";
		str 	+= "	</object>";
		el.innerHTML = str;
	}

	
}

function addLoadEvent_INTRO(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

addLoadEvent_INTRO(insertFlash);