function RunFlash(url,breite,hoehe,margin_top)
{
//var frage=1;
//var uniq_user=20085;
//var b='';
    document.write('<object id="das_swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="'+breite+'" height="'+hoehe+'" style="margin-top:'+margin_top+'px">');
    document.write('<param name=movie value="'+url+'">');
    document.write('<param name=quality value=high>');
    document.write('<param name=menu value=false>');
    document.write('<param name=wmode value=opaque>');
    document.write('<embed name="das_swf" src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="opaque" width="'+breite+'" height="'+hoehe+'">');
    document.write('</embed>');
    document.write('</object>');
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function cls() {
window.close();
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];	
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


// -----------------------------------------------------------------------------------------------
// SCRIPT FÜR DAS DROPDOWN-MENU
// -----------------------------------------------------------------------------------------------


$(document).ready(function(){

var timeout    = 500;
var closetimer = 0;
var ddmenuitem = 0;

function jsddm_open()
{  jsddm_canceltimer();
   jsddm_close();
   ddmenuitem = $(this).find('ul').css('visibility', 'visible');
   ddmenuitem = $(this).find('ul').css('z-index', '12');
}

function jsddm_close()
{  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

function jsddm_timer()
{  closetimer = window.setTimeout(jsddm_close, timeout);}

function jsddm_canceltimer()
{  if(closetimer)
   {  window.clearTimeout(closetimer);
      closetimer = null;}}

$(document).ready(function()
{  $('#jsddm > li').bind('mouseover', jsddm_open)
   $('#jsddm > li').bind('mouseout',  jsddm_timer)});

document.onclick = jsddm_close;

});


