Apple={HTML5:{__showCaseMainElement:null,_backButton:null,_currentExample:null,_currentExampleContent:null,_currentExampleScript:null,_exampleById:{},_prefixes:["webkit","moz","Moz","o","ms",""],_exampleToObjectMapping:{pane_1:"video",pane_2:"Typography",pane_3:"gallery",pane_4:"Transitions",pane_5:"audio",pane_6:"threeSixty",pane_7:"VirtualTour"},requiresAltColor:["audio","gallery","video"],_remoteContentDidLoad:function(b,d,c){setHidden(b,true);
setHidden("loading_pane",true);this._showCaseMainElement().parentNode.appendChild(b);
var a=this;this._exampleById[c]=b;Apple.loadRemoteContent.insertScriptFragment(d,function(){setTimeout(function(){a._showCase(c)
},0)})},_remoteContentDidShow:function(){setHidden(Apple.HTML5._backButton,false);
var a=Apple.HTML5._exampleById[Apple.HTML5._currentExample];if(a.removeEventListener){a.removeEventListener("webkitAnimationEnd",Apple.HTML5._remoteContentDidShow,true);
a.removeEventListener("animationend",Apple.HTML5._remoteContentDidShow,true)}if(Apple.HTML5._currentExampleScript&&(!Apple.HTML5._currentExampleScript.shouldCache||(Apple.HTML5._currentExampleScript.shouldCache&&!Apple.HTML5._currentExampleScript.shouldCache()))){delete Apple.HTML5._exampleById[Apple.HTML5._currentExample]
}addClassName(Apple.HTML5._showCaseMainElement(),"demo-focused");removeClassName(Apple.HTML5._showCaseMainElement(),"showcase")
},_resetPanesToOriginalState:function(a){var b=Apple.HTML5._currentExampleContent;
setHidden(b,true);Apple.HTML5._showCaseMainElement().removeChild(b);b.removeEventListener("webkitAnimationEnd",Apple.HTML5._resetPanesToOriginalState,false);
b.removeEventListener("animationend",Apple.HTML5._resetPanesToOriginalState,false);
removeClassName(b,"scaling_pane");removeClassName(Apple.HTML5._currentExample,"origin_pane fading_pane "+Apple.HTML5._currentExample+"_transformOrigin");
removeClassName(b,Apple.HTML5._currentExample+"_transformOrigin");removeClassName(b,"fadedIn_pane");
if(Apple.HTML5._currentExampleScript&&(!Apple.HTML5._currentExampleScript.shouldCache||(Apple.HTML5._currentExampleScript.shouldCache&&!Apple.HTML5._currentExampleScript.shouldCache()))){delete Apple.HTML5._currentExampleContent
}Apple.HTML5._currentExampleContent=null;Apple.HTML5._showCaseMainElement().style.opacity=1
},_showCase:function(d){var b=this._exampleById[d],e=document.getElementById(d);
this._currentExample=d;this._currentExampleContent=this._showCaseMainElement().appendChild(b);
this._currentExampleScript=window[this._exampleToObjectMapping[this._currentExample]]||null;
if(this._currentExampleScript&&this._currentExampleScript.didShow){this._currentExampleScript.didShow()
}addClassName(e,"fading_pane "+d+"_transformOrigin");removeClassName(e,"spreading");
addClassName(b,"scaling_pane "+d+"_transformOrigin");setHidden(b,false);for(var c=1;
c<=8;c++){var a="pane_"+c;if(a!==this._currentExample){addClassName(a,"spreading "+this._currentExample+"_p"+c)
}}if(typeof WebKitAnimationEvent!=="undefined"||typeof animationEvent!=="undefined"){b.addEventListener("webkitAnimationEnd",Apple.HTML5._remoteContentDidShow,true);
b.addEventListener("animationend",Apple.HTML5._remoteContentDidShow,true)}else{Apple.HTML5._remoteContentDidShow()
}this._showCaseMainElement().style.backgroundColor="white"},_showCaseMainElement:function(){if(!this.__showCaseMainElement){this.__showCaseMainElement=document.getElementById("html5-showcase")
}return this.__showCaseMainElement},supportCSSProperty:function(d){var c=document.createElement("propTest");
for(var b=0;b<d.length;b++){var a=d[b].charAt(0).toUpperCase()+d[b].substring(1);
for(var e=0;e<this._prefixes.length;e++){if(c.style[this._prefixes[e]+a]!==undefined){return true
}else{return false}}}},showWarning:function(b,a){if(this._warning=$("warning")){this._warning.show()
}else{Apple.loadRemoteContent(b,false,false,this._remoteContentDidLoad.bind(this),"",this)
}},closeWarning:function(){if(this._warning=$("warning")){this._warning.hide()}},showWarningChrome:function(b,a){if(this._warningChrome=$("warning-chrome")){this._warningChrome.show()
}else{Apple.loadRemoteContent(b,false,false,this._remoteContentDidLoad.bind(this),"",this)
}},closeWarningChrome:function(){if(this._warningChrome=$("warning-chrome")){this._warningChrome.hide()
}},isSafari4:function(c){if(this._isSafari4===undefined){if(!AC.Detector.isWebKit()){this._isSafari4=false
}else{if(AC.Detector.isChrome()){var b=navigator.userAgent.toLowerCase();var a=parseInt(parseFloat(b.substring(b.lastIndexOf("chrome/")+7)),10);
this._isSafari4=(a>=5)}else{var b=navigator.userAgent.toLowerCase();var a=parseInt(parseFloat(b.substring(b.lastIndexOf("safari/")+7)),10);
this._isSafari4=(a>=528)}}this.isSafari4=function(){return this._isSafari4}}return this._isSafari4
},isFirefox4:function(c){if(this._isFirefox4===undefined){if(!AC.Detector.isFirefox()){this._isFirefox4=false
}else{var b=navigator.userAgent.toLowerCase();var a=parseInt(parseFloat(b.substring(b.lastIndexOf("firefox/")+8)),10);
this._isFirefox4=(a>=4)}this.isFirefox4=function(){return this._isFirefox4}}return this._isFirefox4
},isIE9:function(c){if(this._isIE9===undefined){if(!AC.Detector.isIEStrict()){this._isIE9=false
}else{var b=navigator.userAgent.toLowerCase();var a=parseFloat(b.substring(b.lastIndexOf("msie")+5));
this._isIE9=(a>=9)}this.isIE9=function(){return this._isIE9}}return this._isIE9
},returnToMainShowCase:function(){removeClassName(this._showCaseMainElement(),"demo-focused");
addClassName(this._showCaseMainElement(),"showcase");var a=this;setTimeout(function(){a._returnToMainShowCase()
},0)},_returnToMainShowCase:function(){if(this._currentExampleScript&&this._currentExampleScript.willHide){this._currentExampleScript.willHide()
}setHidden(this._backButton,true);for(var b=1;b<=8;b++){var a="pane_"+b;if(a!==this._currentExample){removeClassName(a,this._currentExample+"_p"+b)
}}removeClassName(this._currentExampleContent,"scaling_pane");addClassName(this._currentExampleContent,"fadedIn_pane");
addClassName(this._currentExample,"origin_pane");if(typeof WebKitAnimationEvent!=="undefined"||typeof animationEvent!=="undefined"){this._currentExampleContent.addEventListener("webkitAnimationEnd",Apple.HTML5._resetPanesToOriginalState,false);
this._currentExampleContent.addEventListener("animationend",Apple.HTML5._resetPanesToOriginalState,false)
}else{Apple.HTML5._resetPanesToOriginalState()}},showCase:function(b){if(this._currentExampleContent){return
}var c=b.parentNode.id;if(!this._exampleById[c]){var b=document.getElementById(c).getElementsByClassName("trigger")[0];
if(b&&b.tagName==="A"){var d=document.getElementById(c),a=document.getElementById("loading_pane");
a.style.left=parseFloat(document.defaultView.getComputedStyle(d,null).getPropertyValue("left"))+"px";
a.style.top=parseFloat(document.defaultView.getComputedStyle(d,null).getPropertyValue("top"))+"px";
setHidden(a,false);Apple.loadRemoteContent(b.href,true,true,this._remoteContentDidLoad.bind(this),c,this)
}}else{removeClassName(c,"fadedIn_pane");setWebKitAnimation(c,null);setAnimation(c,null);
this._showCase(c)}},attachEventHandlers:function(){var a=$$(".trigger"),b=$$(".HTML5Pane");
Apple.HTML5._backButton=document.getElementById("showCase_backButton");mainShowcase=document.getElementById("html5-showcase");
mainShowcase.addEventListener("click",this,true)},handleEvent:function(c){var b=c.target.parentNode;
if(b===this._backButton||b.parentNode===this._backButton){if(c.preventDefault){c.preventDefault();
this.returnToMainShowCase()}else{c.returnValue=false;this.returnToMainShowCase()
}}else{if(!hasClassName(b,"trigger")){return}if(c.stopPropagation){c.stopPropagation()
}else{c.cancelBubble}if(c.preventDefault){c.preventDefault()}else{c.returnValue=false
}if(!AC.Detector.isChrome()&&(this.isSafari4()||AC.Detector.isiPad()||AC.Detector.isMobile())){for(var a=this.requiresAltColor.length-1;
a>=0;a--){if(b.id.substr(3)==this.requiresAltColor[a]){if(!hasClassName(mainShowcase,"alt")){addClassName(mainShowcase,"alt")
}break}else{if(hasClassName(mainShowcase,"alt")){removeClassName(mainShowcase,"alt")
}}}this.showCase(b)}else{this.showWarning("/html5/includes/warning_generic.html",$("html5-showcase"))
}}}}};Apple.loadRemoteContent=function(h,a,c,g,d,f){if(typeof h!=="string"){return
}if(typeof a!=="boolean"){a=true}if(typeof c!=="boolean"){c=true}var e=arguments.callee;
var b=e._loadArgumentsByUrl[h];if(!b){e._loadArgumentsByUrl[h]={contentURL:h,importScripts:a,importCSS:c,callback:g,context:d,delegate:f,_cssLoadingCount:0,_cssLoadedCount:0,cssImportDidLoad:function(){this._cssLoadedCount++;
if(this._cssLoadedCount===this._cssLoadingCount){this.cssLoadedCallback()}},__importCssElementInHeadFromLocation:Apple.loadRemoteContent.__importCssElementInHeadFromLocation};
new Ajax.Request(h,{method:"get",requestHeaders:{Accept:"text/xml"},onSuccess:arguments.callee.loadTemplateHTMLFromRequest,onFailure:arguments.callee.failedToadTemplateHTMLFromRequest,onException:function(i,j){throw (j)
},onCreate:function(i){i.request.overrideMimeType("text/xml")}})}};Apple.loadRemoteContent._loadArgumentsByUrl={};
Apple.loadRemoteContent.loadTemplateHTMLFromRequest=function(b){var d=b.request.url;
var m=arguments.callee;var h=Apple.loadRemoteContent._loadArgumentsByUrl[d];var q=window.document;
var k=b.responseXMLValue().documentElement;if(AC.Detector.isIEStrict()){k=k.ownerDocument
}var q=window.document;var l=document.createDocumentFragment();if(h.importScripts){Apple.loadRemoteContent.importScriptsFromXMLDocument(k,l,h)
}if(h.importCSS){Apple.loadRemoteContent.importCssFromXMLDocumentAtLocation(k,d,h)
}var r=null;var a=null;var g=k.getElementsByTagName("body")[0];if(!g){return}g.normalize();
var a=Element.Methods.childNodeWithNodeTypeAtIndex(g,Node.ELEMENT_NODE,0);var f=AC.Detector.isWebKit();
if(a){if(f){r=q._importNode(a,true)}else{r=q._importNode(a,true)}if(r.cleanSpaces){r.cleanSpaces(true)
}}else{if(g.cleanSpaces){g.cleanSpaces(true)}else{if(typeof g.normalize==="function"){g.normalize()
}}var j=g.childNodes;r=q.createDocumentFragment();var n=/\S/;for(var e=0,c=0;(c=j[e]);
e++){var o=(f)?q._importNode(c,true):q.importNode(c,true);r.appendChild(o)}}if(h._cssLoadingCount>0){h.cssLoadedCallback=function(){this.callback(r,l,this.context)
}}else{var p=h.callback;p(r,l,h.context)}g=null;k=null;delete Apple.loadRemoteContent._loadArgumentsByUrl[d]
};Apple.loadRemoteContent.javascriptTypeValueRegExp=new RegExp("text/javascript","i");
Apple.loadRemoteContent.javascriptLanguageValueRegExp=new RegExp("javascript","i");
Apple.loadRemoteContent.documentScriptsBySrc=function(){if(!Apple.loadRemoteContent._documentScriptsBySrc){Apple.loadRemoteContent._documentScriptsBySrc={};
var b=document.getElementsByTagName("script");if(!b||b.length===0){return Apple.loadRemoteContent._documentScriptsBySrc
}for(var c=0,a=null;(a=b[c]);c++){var d=a.getAttribute("type");var f=null;var g=a.getAttribute("language");
if(!this.javascriptTypeValueRegExp.test(d)&&!this.javascriptLanguageValueRegExp.test(g)){continue
}if(a.hasAttribute){var e=a.hasAttribute("src")}else{var e=Element.Methods.hasAttribute(a,"src")
}if(e){var f=a.getAttribute("src");Apple.loadRemoteContent._documentScriptsBySrc[f]=f
}}}return Apple.loadRemoteContent._documentScriptsBySrc};Apple.loadRemoteContent.importScriptsFromXMLDocument=function(o,c,v){var f=o.getElementsByTagName("script"),g,j,q,w,d=v.contentURL,u=v.delegate,e=v.context,b=(u&&typeof u.shouldImportScriptForContentURL==="function"),k=true;
if(!c){c=document.createDocumentFragment()}var m=Apple.loadRemoteContent.documentScriptsBySrc();
for(var s=0,n=null;(n=f[s]);s++){g=n.getAttribute("type");j=null;k=true;q=n.getAttribute("language");
if(!this.javascriptTypeValueRegExp.test(g)&&!this.javascriptLanguageValueRegExp.test(q)){continue
}if(n.hasAttribute){w=n.hasAttribute("src");j=n.getAttribute("src")}else{j=n.getAttribute("src");
w=((j!=null)&&(j!==""))}if(n.getAttribute("id")==="Redirect"||(b&&!u.shouldImportScriptForContentURL(n,d,e))){continue
}if(w){if(!m.hasOwnProperty(j)){var p=document.createElement("script");p.setAttribute("type","text/javascript");
if(AC.Detector.isIEStrict()){p.tmp_src=j;p.onreadystatechange=function(){var i=window.event.srcElement,x;
if(!i.isLoaded&&((i.readyState=="complete")||(i.readyState=="loaded"))){x=i.tmp_src;
if(x){i.tmp_src=null;i.src=x;i.isLoaded=false}else{i.onreadystatechange=null;i.isLoaded=true
}}}}else{p.src=j}Apple.loadRemoteContent._documentScriptsBySrc[j]=j;c.appendChild(p)
}}else{var p=document.createElement("script");p.setAttribute("type","text/javascript");
if(AC.Detector.isIEStrict()){var l=new Function(n.text);p.onreadystatechange=function(){var i=window.event.srcElement;
if(!i.isLoaded&&((i.readyState=="complete")||(i.readyState=="loaded"))){i.onreadystatechange=null;
i.isLoaded=true;l()}}}else{var r=navigator.userAgent.toLowerCase();var a=(r.indexOf("applewebkit")!=-1);
var h=parseInt(parseFloat(r.substring(r.lastIndexOf("safari/")+7)));var t=(a&&h>=419);
if(t){p.innerHTML=n.innerHTML}else{p.text=n.text}}Apple.loadRemoteContent._documentScriptsBySrc[j]=j;
if(!c._inlineScripts){c._inlineScripts=[]}c._inlineScripts.push(p);c._contentURL=d
}}return c};Apple.loadRemoteContent.insertScriptFragment=function(g,e){if(!g){return
}Apple.isDomReady=false;Event._domReady.done=false;var h=document.getElementsByTagName("head")[0],j=g.childNodes,a,b,f,c=function(n){var o,l=arguments.callee.scriptFragment;
if(l.firstChild){h.appendChild(l.firstChild)}if(arguments.callee.loadedCount===-1||!window.event||((o=window.event.srcElement)&&(o.isLoaded||((typeof o.isLoaded==="undefined")&&(o.readyState===undefined||((o.readyState=="complete")||(o.readyState=="loaded"))))))){arguments.callee.loadedCount++;
if(o&&!o.isLoaded){o.onreadystatechange=null;o.isLoaded=true}if(arguments.callee.loadedCount===arguments.callee.loadingCount){if(l._inlineScripts){var p=document.getElementsByTagName("head")[0],m=0,k;
for(m=0;(k=l._inlineScripts[m]);m++){p.appendChild(k)}delete l._inlineScripts}if(typeof Event._domReady==="function"){Event._domReady()
}if(typeof e==="function"){e()}h=null;delete arguments.callee.scriptFragment}}};
c.scriptFragment=g;c.loadedCount=0;c.loadingCount=0;if(g.childNodes.length===0){c.loadedCount=-1;
c()}else{for(b=0;(a=j[b]);b++){if(a.hasAttribute){f=a.hasAttribute("src")}else{f=Element.hasAttribute(a,"src")
}if(f){c.loadingCount++}if(a.addEventListener){a.addEventListener("load",c,false)
}else{if(typeof a.onreadystatechange==="function"){var d=a.onreadystatechange;a.onreadystatechange=function(i){var k=window.event.srcElement;
d.call(k);c()}}else{a.onreadystatechange=c}}}h.appendChild(g.firstChild)}};Apple.loadRemoteContent.documentLinksByHref=function(){if(!Apple.loadRemoteContent._documentLinksByHref){Apple.loadRemoteContent._documentLinksByHref={};
var b=document.getElementsByTagName("link");if(!b||b.length===0){return Apple.loadRemoteContent._documentLinksByHref
}for(var c=0,e=null;(e=b[c]);c++){var d=e.getAttribute("type");if(e.type.toLowerCase()!=="text/css"){continue
}var f=null;if(e.hasAttribute){var a=e.hasAttribute("href")}else{var a=Element.hasAttribute(e,"href")
}if(a){var f=e.getAttribute("href");Apple.loadRemoteContent._documentLinksByHref[f]=f
}}}return Apple.loadRemoteContent._documentLinksByHref};Apple.loadRemoteContent._linkLoadAddEventListener=function(c,d,b){var a=this;
if(c==="load"){(function(){try{a.sheet.cssRules;d.apply(a);if(typeof arguments.callee.timeoutId!=="undefined"){clearTimeout(arguments.callee.timeoutId)
}}catch(f){arguments.callee.timeoutId=setTimeout(arguments.callee,50)}})()}};Apple.loadRemoteContent.createStylesheetLinkWithURL=function(a){var b=document.createElement("link");
b.setAttribute("rel","Stylesheet");b.setAttribute("href",a);return b};Apple.loadRemoteContent.__importCssElementInHeadFromLocation=function(f,e,b,g){var d=(f.tagName.toUpperCase()==="LINK");
if(d){var h=f.getAttribute("type");if(!h||h&&h.toLowerCase()!=="text/css"){return
}var c=f.getAttribute("href");if(!c.startsWith("http")&&!c.startsWith("/")){var j=c;
if(b.pathExtension().length>0){b=b.stringByDeletingLastPathComponent()}c=b.stringByAppendingPathComponent(j)
}if(AC.Detector.isIEStrict()){var a=window.document.createStyleSheet(c,1)}else{var i=Apple.loadRemoteContent.createStylesheetLinkWithURL(c);
if(f.getAttribute("id")){i.setAttribute("id",f.getAttribute("id"))}i.addEventListener=Apple.loadRemoteContent._linkLoadAddEventListener;
i.addEventListener("load",this.cssImportDidLoad.bind(this),false);this._cssLoadingCount++
}Apple.loadRemoteContent.documentLinksByHref()[c]=c}if(!AC.Detector.isIEStrict()||(AC.Detector.isIEStrict()&&!d)){e.appendChild(i)
}};Apple.loadRemoteContent.importCssFromXMLDocumentAtLocation=function(j,b,h){var k=window.document.getElementsByTagName("head")[0];
var c=[],g=document.createDocumentFragment();c.addObjectsFromArray(j.getElementsByTagName("style"));
c.addObjectsFromArray(j.getElementsByTagName("link"));if(c){var d=Apple.loadRemoteContent.documentLinksByHref();
for(var e=0,f=null;(f=c[e]);e++){var a=f.getAttribute("href");if(d.hasOwnProperty(a)){continue
}h.__importCssElementInHeadFromLocation(f,g,b,h)}}k.insertBefore(g,k.firstChild)
};if(typeof Ajax!=="undefined"){Ajax.Request.prototype._overrideMimeType=null;Ajax.Request.prototype.overrideMimeType=function(a){this._overrideMimeType=a;
if(this.transport.overrideMimeType){this.transport.overrideMimeType(a)}};Ajax.Request.prototype._doesOverrideXMLMimeType=function(){return(this._overrideMimeType==="text/xml")
};Ajax.Response.prototype._xmlnsRegex=/\<html.*?xmlns=\"(.*?)\"\>/i;Ajax.Response.prototype.responseXMLValue=function(){var a=null,e,b;
if(AC.Detector.isIEStrict()){var c=this.transport.responseXML.documentElement;if(!c&&this.request._doesOverrideXMLMimeType()){this.transport.responseXML.loadXML(this.transport.responseText)
}a=this.transport.responseXML}else{e=this.transport.responseText;b=this._xmlnsRegex.exec(e);
if(!b){e=e.replace("<html ",'<html xmlns="http://www.w3.org/1999/xhtml" ');var d=new DOMParser();
a=d.parseFromString(e,"text/xml")}else{a=this.transport.responseXML}}return a}}window.isLoaded=false;
Event.onDOMReady(function(){window.isLoaded=true;if(!(Apple.HTML5.isSafari4()||AC.Detector.isiPad()||AC.Detector.isMobile()||Apple.HTML5.isFirefox4()||Apple.HTML5.isIE9())){var a=$("html5-showcase");
a.observe("click",function(b){if(b.findElement(".learnmore")){return}if(b.findElement("a.download")){return
}if(b.findElement(".close")){b.stop();Apple.HTML5.closeWarning()}else{b.stop();
Apple.HTML5.showWarning("/html5/includes/warning_generic.html",$("html5-showcase"),true)
}})}});
