var SWF_VERSION = "10.0.0";
var DOMAIN = "http://dmitrijtiessen.de/";
var PLAYER_MOVIE_URL = DOMAIN + "ss.swf";



function createVideoFlash(_xml, _data, _id, _width, _height, version)
{
	var flashvars = {
		a1: _xml
	};
	//_width = document.body.clientWidth;
	//_height = document.body.clientHeight;
	//alert(_width);
	var params = {
		allowscriptaccess: "always",
		allowfullscreen: "true",
		quality: "high",
		allownetworking: "true"
	};
	var attributes = {
	};
	var browser=navigator.appName;
	if (navigator.appVersion.indexOf('MSIE 6') > 0)
	{
		var att = { data:_data, width:_width, height:_height, id: _id };
		var par = { flashvars:"a1="+_xml};
		FlashObject = swfobject.createSWF(att, par, _id);
	}
	else
	{
		swfobject.embedSWF(_data, _id, _width, _height, version, false, flashvars, params, attributes);
	}


	
}

function gotoURL(url)
{
	window.open(url, 'nwindow');
}
function updateURL(url)
{
	location.href = url;
}
function sendEmail(name, termin, cake, telefon, email, nachricht, cameFrom)
{
	document.getElementById("name").value=name;
	document.getElementById("termin").value=termin;
	document.getElementById("cake").value=cake;
	document.getElementById("telefon").value=telefon;
	document.getElementById("email").value=email;
	document.getElementById("nachricht").value=nachricht;
	document.getElementById("cameFrom").value=cameFrom;
	document.forms.send_email.submit();
}
