/*! Crusaders Home Draw v2 <http://nvinteractive.co.nz>
	Copyright (c) NV Interactive
	
	References:
		utilities.2.1.js
		swfobject.js
		jquery-1.2.6.js
		
	Release Notes:
		2.0
		-- rewrote for jQuery
		
*/
homedraw = function(){
	
	var init = function(){

		var draw = document.getElementById("interactive-draw");

		var w = 650;
		var h = 160;
	

		
		var xmldata = getInnerHtml(draw);
		
		var flashVars = "xmldata=" + 	encodeURIComponent(xmldata) +
			"&url=" +					encodeURIComponent(window.location);
		
		var pars = {
			flashvars: 			flashVars,
			wmode: 				"opaque",
			bgcolor:			"#333333"
			};
	
		var flashObj = writeFlash(draw, "flash/home-draw/home-draw.1.1.swf", w, h, pars);
	}

	return {
	/* Public API
	*/
	init: init
	}	
	
}();



$(document).ready(homedraw.init);



