var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){typeof a=="string"&&(a=document.getElementById(a));if(!a.addClass)a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addClass=function(a){this.removeClass(a);this.className+=" "+a},a.removeClass=function(a){for(var c=this.className.split(/\s+/),d=-1,e=0;e<c.length;e++)if(c[e]==a)d=e,e=c.length;if(d>-1)c.splice(d,1),this.className=c.join(" ");return this},a.hasClass=
function(a){return!!this.className.match(RegExp("\\s*"+a+"\\s*"))};return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(a,b,c){(a=this.clients[a])&&a.receiveEvent(b,c)},register:function(a,b){this.clients[a]=b},getDOMObjectPosition:function(a,b){for(var c={left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight};a&&a!=b;)c.left+=a.offsetLeft,c.top+=a.offsetTop,a=a.offsetParent;return c},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;
this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);a&&this.glue(a)}};
ZeroClipboard.Client.prototype={id:0,ready:!1,movie:null,clipText:"",handCursorEnabled:!0,cssEffects:!0,handlers:null,glue:function(a,b,c){this.domElement=ZeroClipboard.$(a);a=3;this.domElement.style.zIndex&&(a=parseInt(this.domElement.style.zIndex,10)+1);typeof b=="string"?b=ZeroClipboard.$(b):typeof b=="undefined"&&(b=document.getElementsByTagName("body")[0]);var d=ZeroClipboard.getDOMObjectPosition(this.domElement,b);this.div=document.createElement("div");var e=this.div.style;e.position="absolute";
e.left=""+d.left+"px";e.top=""+d.top+"px";e.width=""+d.width+"px";e.height=""+d.height+"px";e.zIndex=a;if(typeof c=="object")for(addedStyle in c)e[addedStyle]=c[addedStyle];b.appendChild(this.div);this.div.innerHTML=this.getHTML(d.width,d.height)},getHTML:function(a,b){var c="",d="id="+this.id+"&width="+a+"&height="+b;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+e+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+
a+'" height="'+b+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+d+'"/><param name="wmode" value="transparent"/></object>'}else c+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+
'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+a+'" height="'+b+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+d+'" wmode="transparent" />';return c},hide:function(){if(this.div)this.div.style.left="-2000px"},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML=
"";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.div=this.domElement=null}},reposition:function(a){if(a)(this.domElement=ZeroClipboard.$(a))||this.hide();if(this.domElement&&this.div){var a=ZeroClipboard.getDOMObjectPosition(this.domElement),b=this.div.style;b.left=""+a.left+"px";b.top=""+a.top+"px"}},setText:function(a){this.clipText=a;this.ready&&this.movie.setText(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");this.handlers[a]||
(this.handlers[a]=[]);this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");switch(a){case "load":this.movie=document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){c=
this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=!0;return}this.ready=!0;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case "mouseover":this.domElement&&this.cssEffects&&(this.domElement.addClass("hover"),this.recoverActive&&this.domElement.addClass("active"));break;case "mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=!1;if(this.domElement.hasClass("active"))this.domElement.removeClass("active"),this.recoverActive=
!0;this.domElement.removeClass("hover")}break;case "mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case "mouseup":if(this.domElement&&this.cssEffects)this.domElement.removeClass("active"),this.recoverActive=!1}if(this.handlers[a])for(var d=0,e=this.handlers[a].length;d<e;d++){var f=this.handlers[a][d];if(typeof f=="function")f(this,b);else if(typeof f=="object"&&f.length==2)f[0][f[1]](this,b);else if(typeof f=="string")window[f](this,b)}}};
$(function(){$("body#home").length>0&&($("#section1 h1").html("HTML5 Video, Now Available Everywhere"),$(".skin:first").add(".tech:first").addClass("selected"),$(".skin a").click(function(a){a.preventDefault();setSkin(this)}),$(".tech a").click(function(a){a.preventDefault();setTech(this)}))});
function setSkin(a){var a=$(a).parent(),b=$("#home_video"),c=a.attr("data-skin");$(".skin").each(function(){b.removeClass($(this).attr("data-skin"));$(this).removeClass("selected")});b.addClass(c);a.addClass("selected");$(".vjs-controls").css({opacity:"0.9"})}
function setTech(a){var a=$(a).parent(),b=_V_("home_video"),c=a.attr("data-tech");$(".tech").each(function(){$(this).removeClass("selected")});a.addClass("selected");b.options.techOrder=[c];b.src(b.options.sources).ready(function(){setTimeout(function(){b.load();b.play()},1)})};
$(function(){var d=$("#stickyheader").offset().top;section2Top=$("#section2").offset().top;section3Top=$("#section3").offset().top;section4Top=$("#section4").offset().top;section5Top=$("#section5").offset().top;$(window).scroll(function(){var e=$(window).scrollTop();e>=d?$("#stickyheader").css({position:"fixed"}):$("#stickyheader").css({position:"absolute"});e>=section2Top&&e<section3Top?$("#section2nav").css({background:"#777",color:"#E6E6E6"}):$("#section2nav").css({background:"none",color:"#777"});
e>=section3Top&&e<section4Top?$("#section3nav").css({background:"#777",color:"#E6E6E6"}):$("#section3nav").css({background:"none",color:"#777"});e>=section4Top&&e<section5Top?$("#section4nav").css({background:"#777",color:"#E6E6E6"}):$("#section4nav").css({background:"none",color:"#777"});e>=section5Top?$("#section5nav").css({background:"#777",color:"#E6E6E6"}):$("#section5nav").css({background:"none",color:"#777"})})});
(function(d){var e={vertical:{x:!1,y:!0},horizontal:{x:!0,y:!1},both:{x:!0,y:!0},x:{x:!0,y:!1},y:{x:!1,y:!0}},n={duration:"fast",direction:"both"},k=/^(?:html)$/i,o=function(a,b){var b=b||(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null):a.currentStyle),c=document.defaultView&&document.defaultView.getComputedStyle?!0:!1,f=parseFloat(c?b.borderTopWidth:d.css(a,"borderTopWidth"))||0,e=parseFloat(c?b.borderLeftWidth:d.css(a,"borderLeftWidth"))||
0,h=parseFloat(c?b.borderBottomWidth:d.css(a,"borderBottomWidth"))||0,c=parseFloat(c?b.borderRightWidth:d.css(a,"borderRightWidth"))||0;return{top:f,left:e,bottom:h,right:c,vertical:f+h,horizontal:e+c}},l=function(a){var b=d(window),c=k.test(a[0].nodeName);return{border:c?{top:0,left:0,bottom:0,right:0}:o(a[0]),scroll:{top:(c?b:a).scrollTop(),left:(c?b:a).scrollLeft()},scrollbar:{right:c?0:a.innerWidth()-a[0].clientWidth,bottom:c?0:a.innerHeight()-a[0].clientHeight},rect:function(){var b=a[0].getBoundingClientRect();
return{top:c?0:b.top,left:c?0:b.left,bottom:c?a[0].clientHeight:b.bottom,right:c?a[0].clientWidth:b.right}}()}};d.fn.extend({scrollintoview:function(a){a=d.extend({},n,a);a.direction=e[typeof a.direction==="string"&&a.direction.toLowerCase()]||e.both;var b="";a.direction.x===!0&&(b="horizontal");a.direction.y===!0&&(b=b?"both":"vertical");var c=this.eq(0),f=c.closest(":scrollable("+b+")");if(f.length>0){var f=f.eq(0),g=l(c),b=l(f),c=g.rect.top-(b.rect.top+b.border.top),h=b.rect.bottom-b.border.bottom-
b.scrollbar.bottom-g.rect.bottom,j=g.rect.left-(b.rect.left+b.border.left),g=b.rect.right-b.border.right-b.scrollbar.right-g.rect.right,i={};if(a.direction.y===!0)if(c<0)i.scrollTop=b.scroll.top+c;else if(c>0&&h<0)i.scrollTop=b.scroll.top+Math.min(c,-h);if(a.direction.x===!0)if(j<0)i.scrollLeft=b.scroll.left+j;else if(j>0&&g<0)i.scrollLeft=b.scroll.left+Math.min(j,-g);d.isEmptyObject(i)?d.isFunction(a.complete)&&a.complete.call(f[0]):(k.test(f[0].nodeName)&&(f=d("html,body")),f.animate(i,a.duration).eq(0).queue(function(b){d.isFunction(a.complete)&&
a.complete.call(f[0]);b()}))}return this}});var m={auto:!0,scroll:!0,visible:!1,hidden:!1};d.extend(d.expr[":"],{scrollable:function(a,b,c){var b=e[typeof c[3]==="string"&&c[3].toLowerCase()]||e.both,c=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null):a.currentStyle,d=m[c.overflowX.toLowerCase()]||!1,g=m[c.overflowY.toLowerCase()]||!1,h=k.test(a.nodeName);if(!d&&!g&&!h)return!1;a={height:{scroll:a.scrollHeight,client:a.clientHeight},width:{scroll:a.scrollWidth,
client:a.clientWidth},scrollableX:function(){return(d||h)&&this.width.scroll>this.width.client},scrollableY:function(){return(g||h)&&this.height.scroll>this.height.client}};return b.y&&a.scrollableY()||b.x&&a.scrollableX()}})})(jQuery);

window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a)}};
(function(a){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),b;b=d.pop();)a[b]=a[b]||c})(function(){try{return console.log(),window.console}catch(a){return window.console={}}}());


