// create flash params
function swfParam(n,v){
	document.writeln('<PARAM NAME='+n+' VALUE="'+v+'">');
}
// check vars
function isDefined(v){ 
	return this[v] === undefined ? false : true;
}
// create flash object
function swf(){
	if(!isDefined("fid")) fid = "";
	if(!isDefined("quality")) quality = "HIGH";
	if(!isDefined("bg")) bg = "#ffffff";
	if(!isDefined("wmode")) wmode = "window";
	
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+w+'" height="'+h+'" name="'+fid+'" id="'+fid+'" align="">');
	
	swfParam('movie', src);
	swfParam('quality', quality);
	swfParam('bgcolor', bg);
	swfParam('wmode', wmode);
	
	document.write('<EMBED src="'+src+'" width="'+w+'" height="'+h+'" wmode="'+wmode+'" quality="'+quality+'" bgcolor="'+bg+'" name="'+fid+'" align="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write('</OBJECT>');
}
function swfPromo(flash, h1, h2, url, bg){
	src="../../images/promotions/"+flash+"?h1="+h1+"&h2="+h2+"&link="+url+"&bg=../../images/"+bg;
	w=674;
	h=220;
	bg="#ffffff";
	wmode="transparent";
	fid="flashPromo";
	swf();
}
function swfButtonsMain(nr, img, h1, url, col){
	src="../../sys_flash/buttons_main.swf?nr="+nr+"&imgsrc=../../images/buttons/"+img+"&h1="+h1+"&link="+url+"&col="+col;
	w=224;
	h=90;
	bg="#ffffff";
	wmode="transparent";
	fid="flashimg"+nr;
	swf();
}
function swfButtonsContent(nr, img, h1, url, col){
	src="../../sys_flash/buttons_content.swf?nr="+nr+"&imgsrc=../../images/buttons/"+img+"&h1="+h1+"&link="+url+"&col="+col;
	w=200;
	h=80;
	bg="#ffffff";
	wmode="transparent";
	fid="flashimg"+nr;
	swf();
}
function swfH1(img, h1, h2, col){
	src="../../sys_flash/h1.swf?imgsrc=../../images/logos/"+img+"&h1="+h1+"&h2="+h2+"&col="+col;
	w=497;
	h=80;
	bg="#ffffff";
	wmode="transparent";
	fid="flashh1";
	swf();
}
function swfH2(h2, col){
	src="../../sys_flash/h2.swf?h2="+h2+"&col="+col;
	w=477;
	h=40;
	bg="#ffffff";
	wmode="transparent";
	//fid="flashh2";
	swf();
}
function swfH2Popup(img, col, url, h2){
	src="../../sys_flash/h2_popup.swf?imgsrc=../../images/popups/"+img+"&col="+col+"&link="+url+"&h2="+h2;
	w=290;
	h=190;
	bg="#ffffff";
	wmode="transparent";
	//fid="flashh2";
	swf();
}
function swfH3(h3, col, url, target){
	src="../../sys_flash/h3.swf?h2="+h3+"&col="+col+"&link="+url+"&target="+target;
	w=186;
	h=40;
	bg="#ffffff";
	wmode="transparent";
	//fid="flashh3";
	swf();
}
function swfGame(flash, fw, fh, spr, oid){
	flash.indexOf("?")>0 ? p="&" : p="?";
	src=""+flash+p+"spr="+spr+"&obj="+oid;		//+"&serverPath=http://www.agentur-loop.com/hamstern.de/sys_scripts/crm_script.asp"
	w=fw;
	h=fh;
	//bg="#ffffff";
	//wmode="transparent";
	fid="flashGame";
	swf();
	self.focus();
}
function swfVideo(vid){
	src="../../images/videos/0611_vi_baudrexel.swf";
	w=320;
	h=240;
	bg="#ffffff";
	wmode="transparent";
	//fid="flashh2";
	swf();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function wopen(wurl, w, h){

}