//Start bei DOM-Ready
$(document).ready(function(){
  if(mobile_device == false){
    jQuery.fn.supersized.options = {  
        startwidth: 1800,  
        startheight: 1200,
        minsize: .50  
    };
    $("#supersize").supersized();
  }
});

function start_video(video_path,video_title,video_height,video_width){
  if(video_path == "" || video_path == undefined){
    var video_path = "http://videos.teddyaward.tv/teddy2010/662002_interview_jared_hess.flv"; 
  }
  if(video_height == "" || video_height == undefined){
    var video_height = 262; 
  }
  if(video_width == "" || video_width == undefined){
    var video_width = 465 
  }
  //Layerpositionierung
	$("#video_layer").dialog({
			height: video_height,
      width: video_width,
      title: video_title,
      draggable: false,
      resizable: false,
			modal: true
  });
  //Videoeinbindung 
  jwplayer("video_player").setup({
    flashplayer: "/includes/jwplayer/player.swf",
    file: video_path,
    autostart: true,
    height: video_height,
    width: video_width
  }); 
}
