﻿
  var for_flash;
  var json_data = [];
	
function show_flash(){
		
	json_data = [{
					  products: 
						  [{
							  product:"Insect Killer Concentrate", 
							  image:"product1.swf", 
							  situation:"Makes up to six litres (AU) or four litres (NZ) and provides indoor and outdoor control for up to two months.", 
							  link:"/products/blitzem-insect-killer-concentrate/", 
							  bugs:[100, 100, 100, 100, 100]
						  }, 
						  {
							  product:"Ant Flea and Tick Killer", 
							  image:"product2.swf", 
							  situation:"The sand formulation forms a barrier on outdoor surfaces, controlling ants before they get inside the house.", 
							  link:"/products/blitzem-ant-flea-tick-killer/", 
							  bugs:[100, 0, 100, 0, 0]
						  }, 
						  {
							  product:"Insect Killer 750ml", 
							  image:"product3.swf", 
							  situation:"Contains a low toxic, but highly effective combination of surface spray insecticides for indoor and outdoor control for up to three months.", 
							  link:"/products/blitzem-insect-killer/", 
							  bugs:[100, 100, 100, 100, 100]
						  }, 
						  {
							  product:"Wasp Killer Nest Destroyer", 
							  image:"product4.swf", 
							  situation:"Unique formulation kills wasps on contact, as well as destroys their nest. Ideal for hard to reach and sheltered places, where wasp nests are found generally." , 
							  link:"/products/blitzem-wasp-killer-nest-destroyer/", 
							  bugs:[0, 0, 0, 0, 100]
						  },
						  {
							  product:"Wasp Killer Nest Destroyer", 
							  image:"product5.swf", 
							  situation:"A low toxic, highly effective surface spray insecticide, which will kill insects on contact and provide a barrier of control for up to three months." , 
							  link:"/products/blitzem-barrier-spray/", 
							  bugs:[100, 100, 100, 100, 0]
						  }
						  
						  
						  ],
					topNavLinks: 
						[ 
							"/products/", 
							"/bug-facts/",
							"/contact-us/",
							"/msds/"
						],
					bugLinks: 
						[ 
							"/bug-facts/ants/", 
							"/bug-facts/cockroaches/",
							"/bug-facts/",
							"/bug-facts/spiders/",
							"/bug-facts/wasps/"
						]
				  }];
			
	for_flash = escape(json_data.toJSON());
	
	var so = new SWFObject("/flash/home.swf", "flash-movie", "908", "720", "7", "#EC7714");
        so.addParam("menu","hide");
        so.addParam("allowScriptAccess","always");
        so.useExpressInstall("/flash/expressinstall.swf");
        so.addVariable("js_data",for_flash);
        so.addVariable("base_dir","/flash/");
        so.write("flash-movie");
}

Event.observe(window, 'load', show_flash);

