function show_flash(widht,height,src,cyt,color)
{
if (window.ActiveXObject)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+widht+'" height="'+height+'" id="'+src+'">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+src+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#'+color+'" />');
document.write('<PARAM NAME=FlashVars VALUE="'+cyt+'">');
document.write('<embed src="'+src+'" quality="high" FlashVars="'+cyt+'" bgcolor="#'+color+'" width="'+widht+'" height="'+height+'" name="'+src+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
else
{
document.write('<object id="'+src+'" data="'+src+'" type="application/x-shockwave-flash" width="'+widht+'" height="'+height+'">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+src+'" />');
document.write('<param name="quality" value="high" />');
// document.write('<param name="wmode" value="'+trans+'">');
document.write('<param name="bgcolor" value="#'+color+'" />');
document.write('<PARAM NAME=FlashVars VALUE="'+cyt+'">');
document.write('<embed src="'+src+'" quality="high" FlashVars="'+cyt+'" bgcolor="#'+color+'" width="'+widht+'" height="'+height+'" name="'+src+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
}



var bildArray=new Array(1,2);

function bild(nummer){
	if(document.getElementById)
	for (a=0;a<bildArray.length;a++){
		if(bildArray[a]!=nummer){
			document.getElementById("bild"+bildArray[a]).style.display = "none";
		}else{
			$("#bild"+nummer).show();
		}
	}
}

// ajax varianten
function doAjaxSubmit(schalter)
{
    action = document.getElementById("cart_quantity_ajax").action;
	
  	if(schalter) {document.getElementById("cart_quantity_ajax").action = action + "&action=add_product_express";
	document.getElementById("cart_quantity_ajax").submit(); 
	}else{ document.getElementById("cart_quantity_ajax").action = action;
	var options = { 
        target:        '#TB_ajaxContent',
		beforeSubmit:  function(){$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$('#TB_load').show();},  
        success:       function() {tb_init('a.thickbox, area.thickbox, input.thickbox');$("#TB_load").remove();}  }
		$('#cart_quantity_ajax').ajaxSubmit(options); 
	
	}
	
}

function cytshort() {
  if(document.getElementById)
  document.getElementById("cyt_short").style.display = "block";
  document.getElementById("cyt_desc").style.display = "none";
}
function cytdesc() {
  if(document.getElementById)
  document.getElementById("cyt_desc").style.display = "block";
  document.getElementById("cyt_short").style.display = "none";
}
