/***
* Klappt das gew&uuml;nschte Video auf
* 
***/
function showMovie(name,code,videoWidth,videoHeight)
{
  inHtml = $('#'+name).html();
  
  if(inHtml.indexOf("<") == -1)
  {
    var movieHtml;
    movieHtml = "";
    //Object generieren
    movieHtml += '<a href="#'+name+'" style="float:right;" onclick="hideMovie(\''+name+'\');" class="movieLink">[Close Video]</a><br><br>';
    movieHtml += '<object width="'+videoWidth+'" height="'+videoHeight+'">';
    //movieHtml += ' <param name="movie" value="http://www.youtube.com/v/'+code+'?fs=1&hl=de_DE&rel=0;">';
    movieHtml += ' <param name="movie" value="http://www.youtube.com/v/'+code+'?fs=1&hl=de_DE&rel=0;autoplay=1">';
    movieHtml += ' </param>';
    movieHtml += ' <param name="allowFullScreen" value="true">';
    movieHtml += ' </param>';
    movieHtml += ' <param name="allowscriptaccess" value="always">';
    movieHtml += ' </param>';
    //movieHtml += ' <embed src="http://www.youtube.com/v/'+code+'?fs=1&hl=de_DE&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+videoWidth+'" height="'+videoHeight+'">';
    movieHtml += ' <embed src="http://www.youtube.com/v/'+code+'?fs=1&hl=de_DE&rel=0;autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+videoWidth+'" height="'+videoHeight+'">';
    movieHtml += ' </embed>';
    movieHtml += ' </object><br><br>';
    
    //In DIV schreiben
    $('#'+name).html(movieHtml);
  }
}

function hideMovie(name)
{
  $('#'+name).html('');


  
}

