function show_bar(wert){
// $('#jsddm #men1').css('background-image','url(\'img/nohoverpic.png")');
// $('#jsddm #'+wert).css('background-color','#94D426');
$('#jsddm #'+wert).css('background-image','url(hoverpic.gif)');
}

function noshow_bar(wert){
$('#jsddm #'+wert).css('background-image','none');
}

function RunFlash(url,breite,hoehe)
{
//var frage=1;
//var uniq_user=20085;
//var b='';
    document.write('<object 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+'">\n');
    document.write('<param name=movie value="'+url+'">\n');
    document.write('<param name=quality value=high>\n');
    document.write('<param name=menu value=false>\n');
    document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+breite+'" height="'+hoehe+'"></embed></object>');
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function init2(){
var screenH = screen.height;
    var screenW = screen.width;
    // alert("Your Screen Resolution:n" + screenW + "px x " + screenH + "px");
    if(document.all){
        availW = document.body.clientWidth;
        availH = document.body.clientHeight;
    }else{
        availW = innerWidth; availH = innerHeight;
    }
	// alert("Available Space exculing the Toolbars:" + availW + "px + x " + availH + "px");
 }


// -----

var timeout    = 500;
var closetimer = 0;
var ddmenuitem = 0;

function jsddm_open()
{  jsddm_canceltimer();
   jsddm_close();
   ddmenuitem = $(this).find('ul').css('visibility', 'visible');}

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()
{  
init2();

   $('#jsddm').css('left', (availW/2)-(1018/2)+'px');
   $('#jsddm > li').bind('mouseover', jsddm_open)
   $('#jsddm > li').bind('mouseout',  jsddm_timer)});

document.onclick = jsddm_close;

window.onresize=function(){
init2();
$('#jsddm').css('left', (availW/2)-(1018/2)+'px');
}




