//////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////// PLACE SWF /////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////

	function placeWebsite(container, swf, swfID, width, height, version, color) {
		// Set swf properties
		var flashvars = false;
		var params = { menu: "false" };
		var attributes = { id: swfID, name: swfID };
		// Get cookie
		//var setlang = GetCookie("OntbijtOpStraat");
		// If cookie, submit value to swf
		//if(setlang==0 || setlang==1) { 
			//flashvars = { lang: setlang };
		//}
		// Go!
		swfobject.embedSWF(swf, container, "100%", height, version, "include/expressinstall.swf", flashvars, params, attributes);
	}
	
	
//////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////// GET/SET COOKIE ////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////

	// get cookie
	function GetCookie(name) {
		var arg = name + "=";
		var alen = arg.length;
		var clen = document.cookie.length;
		var i = 0;
		while (i < clen) {
			var j = i + alen;
			if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0) break;
		}
		return null;
	}

	// get cookie value
	function getCookieVal(offset) {
		var endstr = document.cookie.indexOf (";", offset);
		if (endstr == -1) endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}	
		
	// write cookie	
	function WriteCookie(name, value) {
		var nowDate = new Date();
		var expdate = new Date();
		expdate.setTime (expdate.getTime() + 90*(24 * 60 * 60 * 1000)); // 90 days from now
		document.cookie = name + "=" + value + "; expires=" + expdate.toGMTString();
	}

		




