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.PlaylistBottomPlayer)=="undefined"){Vio.Extend(Vio.Player.Layouts,(function(){var a=new Array(),b=Vio.$ce;Vio.Event.Bind(window,"Render",function(c){for(var d=0;d<a.length;d++){(function(x){var n=x.Options,f=x.Element,g=n.embedPlayer||{},s=n.playlist||{},m=n.mediainfo||{},j=n.bookmarks||[],w="px",l="div",o=(g.showChooserWhenPlaying||j.length>0)?true:false;Vio.$ee(x.Element);var v=Vio.Groups.Find(x.Options.embedPlayer.groupId||"");if(v!=null){v.Sort("date","desc")}var q=b(l,"vio-clearfix");var e=b(l,"vioplayer-container");var y=b(l);e.appendChild(y);if(o){var p=b(l,"viooptions-container vio-clearfix");e.appendChild(p);x.PlayerOptions=p}var k=b(l,"vioinfo-container");var h=b(l,"media-info");k.appendChild(h);q.appendChild(e);q.appendChild(k);var i=b(l,"playlist-control");q.appendChild(i);var r=b(l,"vioplaylist-container");var z=b(l,"playlist");if(v!=null){z.style.width=((v.MediaBases.length*(s.item_width+15))+1)+w}r.appendChild(z);e.style.width=y.style.width=g.playerWidth+w;y.style.height=g.playerHeight+w;f.style.width=(g.playerWidth+m.width+5)+w;k.style.paddingLeft=(g.playerWidth+5)+w;var u=o?12:-18;h.style.height=(g.playerHeight+u)+w;f.appendChild(q);f.appendChild(i);f.appendChild(r);x.PlayerElement=y;x.PlaylistControl=i;x.PlaylistElement=z;x.MediaInfo=h;setTimeout(function(){Vio.Event.Trigger("RenderPlayer",x)},10);setTimeout(function(){Vio.Event.Trigger("RenderPlaylist",x)},10);setTimeout(function(){Vio.Event.Trigger("RenderPlaylistControl",x)},10)})(a[d])}});return{PlaylistBottomPlayer:{AddTarget:function(c){c.Element.className=c.Element.className+" playlist-bottom-player";a.push(c)},FindTarget:function(d){for(var c=0;c<a.length;c++){if(a[c].Id==d){return a[c]}}return null}}}})())}});VioLoader.Fn(function(){Vio.Groups.Add({Id:"2e8354e0-a5bf-4d85-b2c0-9c14c24abb6a",Name:"Kick Ass",Description:"Kick Ass",SortName:"date",SortDirection:"d",SubGroups:[],MediaBases:[{MediaId:"162179e3-05ac-4f43-9f23-47f420973a6a",Created:"/Date(1269570288777)/",DisplayTime:"/Date(1269570288777)/",MediaType:"Video",MediaTitle:"THE PROBLEM SOLVER",MediaDescription:"The Problem Solver, a man who can solve Society\u0027s most anoying and frustrating problems. When your in need of help the Problem Solver appears from nowhere to save the day... \nHis attire is man up of tight black shirt and jeans. A Green cape made from a table spread and green sunglasses to hide his disguise...\n\nThe Problem Solver can do anything including making the worlds BEST toast...",AuthorName:"",MediaUrls:[],KeyWords:["competition","Nova 1069","Nova Thinks You�re Kick Ass"],Thumbnails:[{FrameTime:10,Height:300,Width:400,FileName:"1224_63602_18034_00-00-10_1.jpg",Created:"/Date(1269570542583)/",Path:"http://images.viostream.com/1224_63602_18034_00-00-10_1.jpg"}],Advertisments:{}}]})});VioLoader.Fn(function(){Vio.Media.Add({MediaId:"162179e3-05ac-4f43-9f23-47f420973a6a",Created:"/Date(1269570288777)/",DisplayTime:"/Date(1269570288777)/",MediaType:"Video",MediaTitle:"THE PROBLEM SOLVER",MediaDescription:"The Problem Solver, a man who can solve Society\u0027s most anoying and frustrating problems. When your in need of help the Problem Solver appears from nowhere to save the day... \nHis attire is man up of tight black shirt and jeans. A Green cape made from a table spread and green sunglasses to hide his disguise...\n\nThe Problem Solver can do anything including making the worlds BEST toast...",AuthorName:"",MediaUrls:[{Url:"http://cp85246.p1.videos.viostream.com/1224_63602_18034_mp4med.mp4?v=1",Quality:"Medium",Width:400,Height:300,Duration:137600,MediaType:"Video"},{Url:"http://cp85246.p1.videos.viostream.com/1224_63602_18034_mp4high.mp4?v=1",Quality:"High",Width:400,Height:300,Duration:137600,MediaType:"Video"}],KeyWords:["competition","Nova 1069","Nova Thinks You�re Kick Ass"],Thumbnails:[{FrameTime:10,Height:300,Width:400,FileName:"1224_63602_18034_00-00-10_1.jpg",Created:"/Date(1269570542583)/",Path:"http://images.viostream.com/1224_63602_18034_00-00-10_1.jpg"}],Advertisments:{}})});VioLoader.Add("PlaylistBottomPlayer",{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:100,item_height:128,show_thumbnail:true,show_desc:true,show_playlist_title:true,show_title:true,desc_cutoff:100,thumbnail_width:96,thumbnail_height:54},mediainfo:{width:200,show_title:true,show_desc:true,show_date:false,date_fmt:"dd-MMM-yy"},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:"PlaylistBottomPlayer",playerId:"683707b6-1f71-4340-9901-19f367222067",groupId:"2e8354e0-a5bf-4d85-b2c0-9c14c24abb6a",mediaId:"162179e3-05ac-4f43-9f23-47f420973a6a"},tracking:{enabled:false,url:""},bookmarks:[]});