/*!
 * Copyright 2010, Timo Schneider
 * :)
 *
 */
 

/* 
// input
$(document).ready(function()
{
  $.ajax({
    type: "GET",
    url: "http://test.ihre-gesundheit.tv/wp-content/plugins/wordtube/playlist1.xml",
    dataType: "xml",
    success: parseXml
  });
  // output
  function parseXml(xml)
  {
        
      $(xml).find("image").each(function()
      {
        //$("#output").append($(this).find("title").text());
        //$("#output").append($(this).find("image") + "<img width='70' height='70' src=' " + .text() + "'>");
        //$("#output").append("<div class='scroll-content-item ui-widget-header'><img width='100' height='100' src=' " + $(this).text() + "'></div>");
        $("#output").append("<a id='a1_down' href='#'>" + "<div class='scroll-content-item ui-widget-header'><img width='100' height='100' src=' " + $(this).text() + "'></div>" + "</a><div id='tip1_down' style='display:none;'><pre class='tip'>Ueberschrift</pre></div>");
        
        //$("#output").append($(this).attr("title").text());
      });
      
      /*$(xml).each(function() {
          $('#a1_up').bubbletip($('#tip1_up'));
          $('#a1_down').bubbletip($('#tip2_down'));
          //$('#a1_up').removeBubbletip([$('#tip1_up'), $('#tip2_up') ]);
      });
  } 

 
});
*/
/*
$(document).ready(function(){
        $('#player').flash({
            'src':'http://test.ihre-gesundheit.tv/wp-content/uploads/player.swf',
            'width':'480',
            'height':'300',
            'allowfullscreen':'true',
            'allowscriptaccess':'always',
            'flashvars': {
                //'file':'http://test.ihre-gesundheit.tv/wp-content/plugins/wordtube/playlist1.xml',
                'file': $(xml).find("location").each(function(){$(this).text()}),
                'displayheight':'600',
                'backcolor':'0xFFFFFF',
                'frontcolor':'0x666666',
                'lightcolor':'0xFF6600',
                'thumbsinplaylist':'false',
                'width':'480',
                'height':'300'
            }
        });
    });
*/

$(document).ready(function(){
    $('#player').flash(
        { 
          src: 'example.swf',
          width: 720,
          height: 480,
          flashvars: { foo: 'bar', baz: 'zoo' }
        },
        { version: 8 }
    );
});
          
