if(typeof(VioLoader)=="undefined"){var VioLoader=(function(){var UNDEF="undefined",isRun=false,LoadStack=new Array();function log(o){if(typeof(window.console)!=UNDEF&&typeof(window.console.log)=="function"){console.log(o)}}function checkScriptOptions(opts){var s=document.getElementsByTagName("script"),t=s[s.length-1],o=eval(t.innerHTML)||{};if(typeof(opts.embedPlayer)==UNDEF){opts.embedPlayer={}}if(typeof(opts.playlist)==UNDEF){opts.playlist={}}var embedMap={PlayerWidth:"playerWidth",PlayerHeight:"playerHeight",ShowSplash:"showSplash",SplashImage:"splashImage",ShowChooser:"showChooser",ShowChooserWhenPlaying:"showChooserWhenPlaying",PlayerFormat:"playerFormat",DefaultExtension:"playerExtension",DefaultQuality:"playerQuality",AutoStart:"autoStart",AutoRewind:"autoRewind"},playlistMap={PlaylistWidth:"playlistWidth",PlaylistHeight:"playlistHeight"};for(var a in o){if(typeof(o[a])!="function"){if(typeof(embedMap[a])!=UNDEF){opts.embedPlayer[embedMap[a]]=o[a]}else{if(typeof(playlistMap[a])!=UNDEF){opts.playlist[playlistMap[a]]=o[a]}}}}return t}return{Fn:function(fn){if(!isRun){LoadStack.push(fn)}else{fn.call(null)}},Add:function(playerName,options){t=checkScriptOptions(options);var playerId=/playerid=([0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12})/.exec(t.src)[1];var css=Vio.BaseURL+"StyleSheet.axd?playerId="+playerId;LoadStack.push(function(){if(typeof(document.createStyleSheet)=="function"){document.createStyleSheet(css)}else{var head=document.getElementsByTagName("head")[0];var style=document.createElement("link");style.setAttribute("rel","stylesheet");style.setAttribute("type","text/css");style.setAttribute("href",css);head.appendChild(style)}});var d=document.createElement("div");d.className="vio-container vio-clearfix";t.parentNode.replaceChild(d,t);LoadStack.push((function(){Vio.Player.AddTarget(playerName,d,options)}))},Run:function(){if(!isRun){isRun=true;for(var i=0;i<LoadStack.length;i++){try{LoadStack[i].call(null)}catch(ex){log(ex)}}}}}})()}VioLoader.Fn(function(){if(typeof(Vio.Player.Layouts.PlaylistRightPlayer)=="undefined"){Vio.Extend(Vio.Player.Layouts,(function(){var a=new Array();Vio.Event.Bind(window,"Render",function(b){for(var c=0;c<a.length;c++){(function(i){var h=i.Options.embedPlayer,g=i.Options.playlist;Vio.$ee(i.Element);var j=Vio.Groups.Find(i.Options.embedPlayer.groupId||"");if(j!=null){j.Sort("date","desc")}var d=document.createElement("div");d.className="vioplayer-container playlist-right-player";var e=document.createElement("div");e.className="vioplaylist-container playlist-right-player";var k=document.createElement("div");k.className="playlist-control";e.appendChild(k);var f=document.createElement("div");f.className="playlist";f.style.height=(h.playerHeight-31)+"px";e.appendChild(f);d.style.width=h.playerWidth+"px";e.style.width=i.Options.playlist.item_width+"px";e.style.marginLeft="5px";d.style.height=e.style.height=h.playerHeight+"px";i.Element.style.width=(i.Options.embedPlayer.playerWidth+i.Options.playlist.item_width+5)+"px";i.Element.appendChild(d);i.Element.appendChild(e);i.PlayerElement=d;i.PlaylistControl=k;i.PlaylistElement=f;setTimeout(function(){Vio.Event.Trigger("RenderPlayer",i)},10);setTimeout(function(){Vio.Event.Trigger("RenderPlaylist",i)},10);setTimeout(function(){Vio.Event.Trigger("RenderPlaylistControl",i)},10)})(a[c])}});return{PlaylistRightPlayer:{AddTarget:function(b){b.Element.className=b.Element.className+" playlist-right-player";a.push(b)},FindTarget:function(c){for(var b=0;b<a.length;b++){if(a[b].Id==c){return a[b]}}return null}}}})())}});VioLoader.Fn(function(){Vio.Groups.Add({Id:"4233cc92-aedc-4155-9641-a63c50ce9224",Name:"Kick Ass",Description:"Kick Ass",SortName:"date",SortDirection:"d",SubGroups:[],MediaBases:[{MediaId:"e1372e62-2423-4842-b06c-9574ecc5b5f3",Created:"/Date(1268375036050)/",DisplayTime:"/Date(1268375036050)/",MediaType:"Video",MediaTitle:"Kick Ass trailer",MediaDescription:"Kick Ass trailer",AuthorName:"Daniel  Bryant",MediaUrls:[],KeyWords:[],Thumbnails:[{FrameTime:5,Height:250,Width:522,FileName:"1224_62472_84839_00-00-05_1.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1.jpg"},{FrameTime:5,Height:250,Width:522,FileName:"1224_62472_84839_00-00-05_1_522x250.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1_522x250.jpg"},{FrameTime:5,Height:84,Width:112,FileName:"1224_62472_84839_00-00-05_1_112x84.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1_112x84.jpg"},{FrameTime:5,Height:54,Width:96,FileName:"1224_62472_84839_00-00-05_1_96x54.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1_96x54.jpg"}],Advertisments:{}},{MediaId:"cd39f858-d182-406a-9c3a-93ecd02a29c7",Created:"/Date(1268360192817)/",DisplayTime:"/Date(1268360192817)/",MediaType:"Video",MediaTitle:"Kick Ass Promo with Ryan, Monty and Wippa",MediaDescription:"Kick Ass Promo with Ryan, Monty and Wippa",AuthorName:"Ashley Tyghe",MediaUrls:[],KeyWords:[],Thumbnails:[{FrameTime:10,Height:360,Width:640,FileName:"1224_62448_11583_00-00-10_1.jpg",Created:"/Date(1268360293380)/",Path:"http://images.viostream.com/1224_62448_11583_00-00-10_1.jpg"},{FrameTime:10,Height:360,Width:640,FileName:"1224_62448_11583_00-00-10_1_640x360.jpg",Created:"/Date(1268360293380)/",Path:"http://images.viostream.com/1224_62448_11583_00-00-10_1_640x360.jpg"},{FrameTime:10,Height:84,Width:112,FileName:"1224_62448_11583_00-00-10_1_112x84.jpg",Created:"/Date(1268360293380)/",Path:"http://images.viostream.com/1224_62448_11583_00-00-10_1_112x84.jpg"},{FrameTime:10,Height:54,Width:96,FileName:"1224_62448_11583_00-00-10_1_96x54.jpg",Created:"/Date(1268360293380)/",Path:"http://images.viostream.com/1224_62448_11583_00-00-10_1_96x54.jpg"}],Advertisments:{}}]})});VioLoader.Fn(function(){Vio.Media.Add({MediaId:"e1372e62-2423-4842-b06c-9574ecc5b5f3",Created:"/Date(1268375036050)/",DisplayTime:"/Date(1268375036050)/",MediaType:"Video",MediaTitle:"Kick Ass trailer",MediaDescription:"Kick Ass trailer",AuthorName:"Daniel  Bryant",MediaUrls:[{Url:"http://cp85246.p1.videos.viostream.com/1224_62472_84839_flvhigh.flv?v=1",Quality:"High",Width:0,Height:0,Duration:0,MediaType:"Video"}],KeyWords:[],Thumbnails:[{FrameTime:5,Height:250,Width:522,FileName:"1224_62472_84839_00-00-05_1.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1.jpg"},{FrameTime:5,Height:250,Width:522,FileName:"1224_62472_84839_00-00-05_1_522x250.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1_522x250.jpg"},{FrameTime:5,Height:84,Width:112,FileName:"1224_62472_84839_00-00-05_1_112x84.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1_112x84.jpg"},{FrameTime:5,Height:54,Width:96,FileName:"1224_62472_84839_00-00-05_1_96x54.jpg",Created:"/Date(1268375129177)/",Path:"http://images.viostream.com/1224_62472_84839_00-00-05_1_96x54.jpg"}],Advertisments:{}})});VioLoader.Add("PlaylistRightPlayer",{player:{x:"0",y:"0",scale_to_fit:true,bg_colour:"0x000000",quality:"high",scaling:"fit",smoothing:true,volume_default:0.8,default_video_thumb:"http://player.cdn.vioapi.com/v6/images/viostream_default.jpg",default_audio_thumb:"http://player.cdn.vioapi.com/v6/images/viostream_default.jpg",default_image_thumb:"http://player.cdn.vioapi.com/v6/images/viostream_default.jpg",autoplay:"never",watermark_enabled:false,watermark_position:"tr",watermark_url:"http://player.cdn.vioapi.com/v6/images/viostream_watermark.png",watermark_clickURL:"http://www.viocorp.com"},skin:{audio_spectrum_enabled:false,theme_colour:"0x232323",icon_colour:"0xffffff",contrast_colour:"0x989898",volume_enabled:true,timer_enabled:true,quality_enabled:false,fullscreen_enabled:true,playlist_enabled:false,info_enabled:false,share_enabled:false,controls_autohide:false,url:"http://player.cdn.vioapi.com/v6/Skins/Flash/portal_skin.swf",flash_url:"http://player.cdn.vioapi.com/v6/Skins/Flash/portal_skin.swf"},playlist:{item_width:320,item_height:65,show_thumbnail:true,show_desc:true,show_playlist_title:true,show_title:true,desc_cutoff:100,thumbnail_width:50,thumbnail_height:50},data:{webservice_type:"embeded",url:"http://player.cdn.vioapi.com/v6/content.asmx",debug:false,exception_reporting:false,holding_enabled:false,holding_image:"http://player.cdn.vioapi.com/v6/images/viostream_default.jpg",metadata:"",post_all_requests:false},advertising:{enabled:false},embedPlayer:{playerName:"PlaylistRightPlayer",playerId:"aeb3eb03-46e4-4cd4-9b74-9f0646f4811b",groupId:"4233cc92-aedc-4155-9641-a63c50ce9224",mediaId:"e1372e62-2423-4842-b06c-9574ecc5b5f3"},tracking:{enabled:false,url:""},bookmarks:[]});