String.prototype.strip=function(){return this.replace(/^\s+/,'').replace(/\s+$/,'');}
function showTab(id){var tabId=id+'-tab';var tabbodyId=id+'-tabbody';var tab=document.getElementById(tabId);var tabbody=document.getElementById(tabbodyId);if(!tab||!tabbody){return;}
var tabs=tab.parentNode.getElementsByTagName('li');if(!tabs){return;}
var tabBodies=tabbody.parentNode.childNodes;if(!tabBodies){return;}
for(var i=0;i<tabBodies.length;i++){if(tabBodies[i].id==tabbodyId){show(tabBodies[i].id);}else{hide(tabBodies[i].id);}}
for(var i=0;i<tabs.length;i++){if(tabs[i].id==tabId){addClass(tabs[i],'active');}else{removeClass(tabs[i],'active');}}
if(document.createEvent){var e=document.createEvent('HTMLEvents');e.initEvent('resize',true,true);window.dispatchEvent(e);}else if(document.createEventObject){var e=document.createEventObject();document.documentElement.fireEvent('onresize',e);}
onDOMChange();}
function onOrientationChange(){if(typeof onOrientationChange.lastOrientation=='undefined'){onOrientationChange.lastOrientation=null;}
var newOrientation=getOrientation();if(newOrientation!=onOrientationChange.lastOrientation){rotateScreen();if(typeof onOrientationChange.callbackFunctions!=='undefined'){for(var i=0;i<onOrientationChange.callbackFunctions.length;i++){onOrientationChange.callbackFunctions[i]();}}
onOrientationChange.lastOrientation=newOrientation;}}
function onResize(){if(typeof onResize.callbackFunctions!=='undefined'){for(var i=0;i<onResize.callbackFunctions.length;i++){onResize.callbackFunctions[i]();}}
setOrientation(getOrientation());}
function addOnOrientationChangeCallback(callback){if(typeof onOrientationChange.callbackFunctions=='undefined'){onOrientationChange.callbackFunctions=[];}
onOrientationChange.callbackFunctions.push(callback);if(typeof onResize.callbackFunctions=='undefined'){onResize.callbackFunctions=[];}
onResize.callbackFunctions.push(callback);}
function setupOrientationChangeHandlers(){if(window.addEventListener){window.addEventListener("orientationchange",onOrientationChange,false);}else if(window.attachEvent){window.attachEvent("onorientationchange",onOrientationChange);}
if(window.addEventListener){window.addEventListener("resize",onResize,false);}else if(window.attachEvent){window.attachEvent("onresize",onResize);}}
function rotateScreen(){setTimeout(scrollToTop,500);}
function getOrientation(){var width=document.documentElement.clientWidth||document.body.clientWidth;var height=document.documentElement.clientHeight||document.body.clientHeight;return(width>height)?'landscape':'portrait';}
function setOrientation(orientation){var body=document.getElementsByTagName("body")[0];removeClass(body,'portrait');removeClass(body,'landscape');addClass(body,orientation);}
function showAjaxLoadingMsg(e){if(typeof e=='string'){e=document.getElementById(element);}
if(e){e.innerHTML=AJAX_CONTENT_LOADING_HTML;}
onDOMChange();}
function showAjaxErrorMsg(e){if(typeof e=='string'){e=document.getElementById(element);}
if(e){e.innerHTML=AJAX_CONTENT_ERROR_HTML;}
onDOMChange();}
function hide(strID){var objToHide=document.getElementById(strID);if(objToHide){objToHide.style.display="none";}
onDOMChange();}
function show(strID){var objToHide=document.getElementById(strID);if(objToHide){objToHide.style.display="block";}
onDOMChange();}
function showHideFull(objContainer){var strClass=objContainer.className;if(strClass.indexOf("collapsed")>-1){strClass=strClass.replace("collapsed","expanded");}else{strClass=strClass.replace("expanded","collapsed");}
objContainer.className=strClass;objContainer.blur();onDOMChange();}
function clearField(objField,strDefault){if((objField.value==strDefault)||(objField.value=="")){objField.value="";}}
function androidPlaceholderFix(searchbox){if(searchbox.value==""){searchbox.value="";}}
function getCookie(name){var cookie=document.cookie;var result="";var start=cookie.indexOf(name+"=");if(start>-1){start+=name.length+1;var end=cookie.indexOf(";",start);if(end<0){end=cookie.length;}
result=unescape(cookie.substring(start,end));}
return result;}
function clearCookie(name,path){var value='deleted';var exdate=new Date(0);var exdateclause="; expires="+exdate.toGMTString();var pathclause=(path==null)?"":"; path="+path;document.cookie=name+"="+escape(value)+exdateclause+pathclause;}
function setCookie(name,value,expireseconds,path){var exdate=new Date();exdate.setTime(exdate.getTime()+(expireseconds*1000));var exdateclause=(expireseconds==0)?"":"; expires="+exdate.toGMTString();var pathclause=(path==null)?"":"; path="+path;document.cookie=name+"="+escape(value)+exdateclause+pathclause;}
function getCookieArrayValue(name){var value=getCookie(name);if(value&&value.length){return value.split('@@');}else{return new Array();}}
function setCookieArrayValue(name,values,expireseconds,path){var value='';if(values&&values.length){value=values.join('@@');}
setCookie(name,value,expireseconds,path);}
function hasClass(ele,cls){return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));}
function addClass(ele,cls){if(!this.hasClass(ele,cls))ele.className+=" "+cls;}
function removeClass(ele,cls){if(hasClass(ele,cls)){var reg=new RegExp('(\\s|^)'+cls+'(\\s|$)');ele.className=ele.className.replace(reg,' ').strip();}}
function toggleClass(ele,cls){if(hasClass(ele,cls)){removeClass(ele,cls);}else{addClass(ele,cls);}}
function showShare(){var sharesheet=document.getElementById("sharesheet");if(!sharesheet){return;}
if(!sharesheet.parentNode||sharesheet.parentNode.nodeName!='BODY'){var elements=document.getElementsByTagName('body');if(elements.length){var body=elements[0];body.appendChild(sharesheet);}}
sharesheet.style.display="block";var iframes=document.getElementsByTagName('iframe');for(var i=0;i<iframes.length;i++){iframes[i].style.visibility='hidden';iframes[i].style.height='0';}
window.scrollTo(0,0);}
function hideShare(){if(!document.getElementById("sharesheet")){return;}
document.getElementById("sharesheet").style.display="none";var iframes=document.getElementsByTagName('iframe');for(var i=0;i<iframes.length;i++){iframes[i].style.visibility='visible';iframes[i].style.height='';}}
function toggleBookmark(name,item,expireseconds,path,bookmarkId){if(typeof moduleBookmarkWillToggle!='undefined'){$result=moduleBookmarkWillToggle(name,item,expireseconds,path);if($result===false){return;}}
if(!bookmarkId){bookmarkId="bookmark";}
var bookmark=document.getElementById(bookmarkId);toggleClass(bookmark,"on");var items=getCookieArrayValue(name);var newItems=new Array();if(items.length==0){newItems[0]=item;}else{var found=false;for(var i=0;i<items.length;i++){if(items[i]==item){found=true;}else{newItems.push(items[i]);}}
if(!found){newItems.push(item);}}
setCookieArrayValue(name,newItems,expireseconds,path);if(typeof moduleBookmarkToggled!='undefined'){moduleBookmarkToggled(name,item,expireseconds,path);}}
if(typeof makeAPICall==='undefined'&&typeof jQuery==='undefined'){function makeAPICall(type,module,command,data,callback){var urlParts=[];for(var param in data){urlParts.push(param+"="+data[param]);}
url=FULL_URL_BASE+API_URL_PREFIX+'/'+module+'/'+command+'?'+urlParts.join('&');var handleError=function(errorObj){}
var httpRequest=new XMLHttpRequest();httpRequest.open("GET",url,true);httpRequest.onreadystatechange=function(){if(httpRequest.readyState==4&&httpRequest.status==200){var obj;if(window.JSON){obj=JSON.parse(httpRequest.responseText);}else{obj=eval('('+httpRequest.responseText+')');}
if(obj!==undefined){if("response"in obj){callback(obj["response"]);}
if("error"in obj&&obj["error"]!==null){handleError(obj["error"]);}else{handleError("response not found");}}else{handleError("failed to parse response");}}}
httpRequest.send(null);}}
function ajaxContentIntoContainer(options){if(typeof options!='object'){return;}
if(typeof ajaxContentIntoContainer.pendingRequests=='undefined'){ajaxContentIntoContainer.pendingRequests=new Array();}
var _removeRequestsForContainer=function(container){for(var i=ajaxContentIntoContainer.pendingRequests.length-1;i>=0;i--){if(ajaxContentIntoContainer.pendingRequests[i].options.container==container){ajaxContentIntoContainer.pendingRequests[i].httpRequest.abort();ajaxContentIntoContainer.pendingRequests.splice(i,1);}}}
var _removeCompletedRequest=function(httpRequest){for(var i=0;i<ajaxContentIntoContainer.pendingRequests.length;i++){if(ajaxContentIntoContainer.pendingRequests[i].httpRequest==httpRequest){ajaxContentIntoContainer.pendingRequests.splice(i,1);break;}}}
var defaults={url:null,container:null,timeout:60,addAjaxParameter:true,loadMessage:true,errorMessage:true,success:function(){},error:function(code){}};for(var i in defaults){if(typeof options[i]=='undefined'){options[i]=defaults[i];}}
if(!options.url||!options.container){return;}
if(options.addAjaxParameter&&options.url.search(/[\?\&]ajax=/)<0){options.url+=(options.url.search(/\?/)<0?"?":"&")+"ajax=1";}
_removeRequestsForContainer(options.container);var httpRequest=new XMLHttpRequest();httpRequest.open("GET",options.url,true);var requestTimer=setTimeout(function(){httpRequest.onreadystatechange=function(){};httpRequest.abort();options.error(408);},options.timeout*1000);httpRequest.onreadystatechange=function(){if(httpRequest.readyState!=4){return;}
clearTimeout(requestTimer);if(httpRequest.status==200){options.container.innerHTML="";insertContentIntoContainer({"container":options.container,"html":httpRequest.responseText});options.success();}else{if(options.errorMessage){showAjaxErrorMsg(options.container);}
options.error(httpRequest.status);}
_removeCompletedRequest(httpRequest);};if(options.loadMessage){showAjaxLoadingMsg(options.container);}
httpRequest.send(null);ajaxContentIntoContainer.pendingRequests.push({'options':options,'httpRequest':httpRequest});}
function insertContentIntoContainer(options){if(typeof options!='object'){return;}
var defaults={html:null,container:null};for(var i in defaults){if(typeof options[i]=='undefined'){options[i]=defaults[i];}}
if(!options.html||!options.container){return;}
var ie8HackId='__insertContentIntoContainer_ie8Hack';options.container.innerHTML='<div id="'+ie8HackId+'" style="display:none;">&nbsp;</div>'+options.html;var scripts=options.container.getElementsByTagName('script');for(var i=0;i<scripts.length;i++){var script=scripts[i];var src=(script.text||script.textContent||script.innerHTML||"");if(src.length){try{if(window.execScript){window.execScript(src);}else{(function(src){window.eval.call(window,src);})(src);}}catch(e){}}else if(script.src&&script.src.length){var copy=document.createElement("script");if(script.type&&script.type.length){copy.type=script.type;}
copy.src=script.src;document.getElementsByTagName("head")[0].appendChild(copy);}}
var styles=options.container.getElementsByTagName('style');for(var i=0;i<styles.length;i++){document.getElementsByTagName("head")[0].appendChild(styles[i]);}
var ie8Hack=document.getElementById(ie8HackId);if(ie8Hack){ie8Hack.parentNode.removeChild(ie8Hack);}
onDOMChange();}
function getCSSValue(element,key){if(window.getComputedStyle){return document.defaultView.getComputedStyle(element,null).getPropertyValue(key);}else if(element.currentStyle){if(key=='float'){key='styleFloat';}else{var re=/(\-([a-z]){1})/g;if(re.test(key)){key=key.replace(re,function(){return arguments[2].toUpperCase();});}}
var style=element.currentStyle[key]?element.currentStyle[key]:'';var parts=['Top','Left','Bottom','Right'];for(var i=0;i<parts.length;i++){if(key=="border"+parts[i]+"Width"&&element.currentStyle["border"+parts[i]+"Style"]=="none"){style="0px";break;}}
for(var i=0;i<parts.length;i++){if(key=="margin"+parts[i]&&style=="auto"){style="0px";break;}}
return style;}
return'';}
function setCSSValue(element,key,value){if(key=='float'){key='styleFloat';}else{var re=/(\-([a-z]){1})/g;if(re.test(key)){key=key.replace(re,function(){return arguments[2].toUpperCase();});}}
try{element.style[key]=value;}catch(e){}}
function getCSSValueNumber(element,key){var number=parseFloat(getCSSValue(element,key));return isNaN(number)?0:number;}
function getCSSHeight(element){return element.offsetHeight
-getCSSValueNumber(element,'border-top-width')
-getCSSValueNumber(element,'border-bottom-width')
-getCSSValueNumber(element,'padding-top')
-getCSSValueNumber(element,'padding-bottom');}
function getCSSWidth(element){return element.offsetWidth
-getCSSValueNumber(element,'border-left-width')
-getCSSValueNumber(element,'border-right-width')
-getCSSValueNumber(element,'padding-left')
-getCSSValueNumber(element,'padding-right');}
function _getStringForArgs(args){var argString="";if(typeof args=="string"&&args.length){argString="?"+args;}else if(typeof args=="object"){for(var param in args){argString+=(argString.length?"&":"?")+
param+"="+encodeURIComponent(args[param]);}}
return argString;}
function redirectToURL(url){window.location=url;}
function redirectTo(page,args){window.location="./"+page+_getStringForArgs(args);}
function redirectToModule(module,page,args){window.location="../"+module+"/"+page+_getStringForArgs(args);}
var getElementsByClassName=function(className,elm,tag){if(document.getElementsByClassName){getElementsByClassName=function(className,elm,tag){elm=elm||document;var elements=elm.getElementsByClassName(className),nodeName=(tag)?new RegExp("\\b"+tag+"\\b","i"):null,returnElements=[],current;for(var i=0,il=elements.length;i<il;i+=1){current=elements[i];if(!nodeName||nodeName.test(current.nodeName)){returnElements.push(current);}}
return returnElements;};}
else if(document.evaluate){getElementsByClassName=function(className,elm,tag){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck="",xhtmlNamespace="http://www.w3.org/1999/xhtml",namespaceResolver=(document.documentElement.namespaceURI===xhtmlNamespace)?xhtmlNamespace:null,returnElements=[],elements,node;for(var j=0,jl=classes.length;j<jl;j+=1){classesToCheck+="[contains(concat(' ', @class, ' '), ' "+classes[j]+" ')]";}
try{elements=document.evaluate(".//"+tag+classesToCheck,elm,namespaceResolver,0,null);}
catch(e){elements=document.evaluate(".//"+tag+classesToCheck,elm,null,0,null);}
while((node=elements.iterateNext())){returnElements.push(node);}
return returnElements;};}
else{getElementsByClassName=function(className,elm,tag){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck=[],elements=(tag==="*"&&elm.all)?elm.all:elm.getElementsByTagName(tag),current,returnElements=[],match;for(var k=0,kl=classes.length;k<kl;k+=1){classesToCheck.push(new RegExp("(^|\\s)"+classes[k]+"(\\s|$)"));}
for(var l=0,ll=elements.length;l<ll;l+=1){current=elements[l];match=false;for(var m=0,ml=classesToCheck.length;m<ml;m+=1){match=classesToCheck[m].test(current.className);if(!match){break;}}
if(match){returnElements.push(current);}}
return returnElements;};}
return getElementsByClassName(className,elm,tag);};function getFirstElementByClassName(className,elem,tag){var elements=getElementsByClassName(className,elem,tag);return elements.length?elements[0]:null;}
function setUserContext(context,container,url,ajax,success){if(!url){return;}
if(!ajax){if(url.charAt(0)=='/'){url=URL_BASE+url.substr(1);}
window.location=url;return;}
if(!document.getElementById(container)){return;}
var opts={url:url,container:document.getElementById(container),loadMessage:false,success:success}
var userData=getCookie(MODULE_NAV_COOKIE);if(userData){if(!confirm('Changing the home screen layout will reset your customized module order preferences. Are you sure you wish to update the layout?')){return;}
clearCookie(MODULE_NAV_COOKIE,COOKIE_PATH);}
ajaxContentIntoContainer(opts);scrollToTop();return false;}
function updateUserContextSelect(select,container){var option=select.options[select.selectedIndex];var context=option.value;var url=option.getAttribute('url');var ajax=option.getAttribute('ajax');setUserContext(context,container,url,ajax);}
function updateUserContextLink(link,container){var li=link.parentNode;var list=li.parentNode;var context=li.getAttribute('context');var url=li.getAttribute('url');var ajax=li.getAttribute('ajax');var result=setUserContext(context,container,url,ajax);if(typeof result=='undefined'){return;}
var lis=list.children;for(var i=0;i<lis.length;i++){lis[i].className='';if(context==lis[i].getAttribute('context')){lis[i].className='contextSelected';}}};var containerScroller=null;var navScroller=null;function onDOMChange(){if(containerScroller){setTimeout(function(){containerScroller.refresh();},0);}
if(navScroller){setTimeout(function(){navScroller.refresh();},0);}}
function handleNavmenuButton(button){try{toggleClass(button,'selected');toggleClass(document.getElementById('navmenu'),'open');if(navScroller){navScroller.refresh();}}catch(e){}
return false;}
function handleWindowResize(e){if(!('orientation'in window)){rotateScreen();}
if(typeof moduleHandleWindowResize!='undefined'){moduleHandleWindowResize(e);}
if(navigator.userAgent.match(/(Android [34]\.\d)/)){var self=this;setTimeout(function(){if(typeof moduleHandleWindowResize!='undefined'){moduleHandleWindowResize(e);}},600);}}
function iScrollInit(element,options){if(typeof element=='string'){element=document.getElementById(element);if(!element){return};}
if(supportsOverflowScroll()){element.style['-webkit-overflow-scrolling']='touch';if(isIOS5Browser()&&element.childNodes&&element.childNodes.length){for(var i=0;i<element.childNodes.length;i++){setCSSValue(element.childNodes[i],'-webkit-transform','translate3d(0, 0, 0)');}}
addScrollingElement(element);return null;}else{setCSSValue(element,'overflow','hidden');setCSSValue(element,'overflow-x','hidden');setCSSValue(element,'overflow-y','hidden');options.useTransform=true;options.onBeforeScrollStart=function(e){var target=e.target;while(target.nodeType!=1){target=target.parentNode;}
var tagName=target.tagName;if(target.tagName!='SELECT'&&target.tagName!='INPUT'&&target.tagName!='TEXTAREA'){e.preventDefault();}};return new iScroll(element,options);}}
function isModernIPhoneBrowser(){return navigator.userAgent.match(/Safari/)&&(navigator.userAgent.match(/iPhone/)||navigator.userAgent.match(/iPad/))&&!navigator.userAgent.match(/OS [234]/);}
function isIOS5Browser(){return navigator.userAgent.match(/Safari/)&&(navigator.userAgent.match(/iPhone/)||navigator.userAgent.match(/iPad/))&&navigator.userAgent.match(/OS 5/);}
function isModernAndroidBrowser(){return navigator.userAgent.match(/Android 4/);}
function supportsOverflowScroll(){return isModernIPhoneBrowser()||isModernAndroidBrowser();}
var moduleProvidesScrollers=false;var kgoScrollingElements=[];function initHandleScrollingElements(){if(isModernIPhoneBrowser()){window.addEventListener('touchstart',function(event){for(var i=0;i<kgoScrollingElements.length;i++){var element=kgoScrollingElements[i];if(element.offsetHeight<element.scrollHeight){if(element.scrollTop<=0){element.scrollTop=1;}
if(element.scrollTop+element.offsetHeight>=element.scrollHeight){element.scrollTop=element.scrollHeight-element.offsetHeight-1;}}}},false);window.addEventListener('touchmove',function(event){if(document.body){document.body.scrollTop=0;}},false);}
if(supportsOverflowScroll()&&KUROGO_PLATFORM!='computer'){addOnOrientationChangeCallback(function(){var navmenu=document.getElementById('navmenu');if(navmenu){navmenu.style.display='none';navmenu.offsetHeight;navmenu.style.display='block';}});}}
function addScrollingElement(element){if(typeof element=='string'){element=document.getElementById(element);}
if(element){kgoScrollingElements.push(element);}}
function removeScrollingElement(element){if(typeof element=='string'){element=document.getElementById(element);}
if(element){var newKGOScrollingElements=[];for(var i=0;i<kgoScrollingElements.length;i++){if(kgoScrollingElements[i]!=element){newKGOScrollingElements.push(kgoScrollingElements[i]);}}
kgoScrollingElements=newKGOScrollingElements;}}
function tabletInit(){initHandleScrollingElements();if(supportsOverflowScroll()){addClass(document.body,'kgo-supports-overflow-scroll');}
setOrientation(getOrientation());var resizeHandler=function(){setTimeout(handleWindowResize,0)};if(window.addEventListener){var resizeEvent='onorientationchange'in window?'orientationchange':'resize';window.addEventListener(resizeEvent,resizeHandler,false);}else if(window.attachEvent){window.attachEvent('onresize',resizeHandler);}
if(document.getElementById('navmenu')){navScroller=iScrollInit('navmenu',{hScrollbar:false,vScrollbar:true,bounce:false,bounceLock:true});}
if(typeof moduleInit!='undefined'){moduleInit();}
if(!moduleProvidesScrollers){containerScroller=iScrollInit('container-wrapper',{hScrollbar:false,bounce:false,bounceLock:true});}
handleWindowResize();}
function scrollToTop(){if(containerScroller){containerScroller.scrollTo(0,0,0);}}
(function(window){function splitView(options){if(typeof options=='object'){for(var i in options){switch(i){case'linkSelect':case'actionForLink':this[i]=options[i];break;default:this.options[i]=options[i];break;}}}
if(typeof this.options.list=='string'){this.options.list=document.getElementById(this.options.list);if(!this.options.list){return;}}
if(typeof this.options.detail=='string'){this.options.detail=document.getElementById(this.options.detail);if(!this.options.detail){return;}}
if(typeof this.options.content=='string'){this.options.content=document.getElementById(this.options.content);if(!this.options.content){return;}}
if(window.addEventListener){window.addEventListener(RESIZE_EVENT,this,false);}else if(window.attachEvent){window.attachEvent(RESIZE_EVENT,this);}
this.orientation=getOrientation();this.list=this.options.list;this.detail=this.options.detail;this.detailScroller=iScrollInit(this.options.detail,{hScrollbar:false,hScroll:false});if('content'in this.options){this.content=this.options.content;}else{this.options.content=this.options.detail;this.content=this.detail;}
var self=this;var links=this.list.getElementsByTagName('a');var linkInAnchor=null;var anchor=location.hash;if(anchor.length>1){var possibleLinkHref=removeBreadcrumbParameter(decodeURIComponent(anchor.slice(1)));if(possibleLinkHref){for(var i=0;i<links.length;i++){if(possibleLinkHref==removeBreadcrumbParameter(links[i].href)){linkInAnchor=links[i];break;}}}}
var first=true;for(var i=0;i<links.length;i++){links[i].onclick=function(e){var action=self.actionForLink(this);return self[action](e,this);}
if(!linkInAnchor&&first&&this.options.selectFirst&&this.actionForLink(links[i])=='linkSelect'){links[i].onclick();first=false;}}
if(linkInAnchor){linkInAnchor.onclick();}
this.updateListScroller();}
splitView.prototype={orientation:'',options:{selectFirst:true,selectID:null},baseActionForLink:function(link){if(link.parentNode.className.match(/pagerlink/)){return'linkFollow';}
return'linkSelect';},actionForLink:function(link){return this.baseActionForLink(link);},linkFollow:function(e,link){},linkSelect:function(e,link){hideShare();var self=this;var selected=this.list.getElementsByTagName('a');for(var j=0;j<selected.length;j++){removeClass(selected[j],'listSelected');}
addClass(link,'listSelected');if(this.detailScroller){this.detailScroller.scrollTo(0,0);}
ajaxContentIntoContainer({url:link.href+'&ajax=1',container:self.content,timeout:60,success:function(){var hash='#'+encodeURIComponent(removeBreadcrumbParameter(link.href));if(window.history&&window.history.pushState&&window.history.replaceState&&!((/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(navigator.userAgent)||(/AppleWebKit\/5([0-2]|3[0-3])/i).test(navigator.userAgent))){window.history.pushState({},document.title,hash);}else{location.hash=hash;}
if(typeof moduleHandleWindowResize!='undefined'){moduleHandleWindowResize(e);}
var refreshOnLoad=function(){setTimeout(function(){splitviewHandleWindowResize();if(self.detailScroller){self.detailScroller.refresh();}},100);};var images=self.content.getElementsByTagName("img");for(var i=0;i<images.length;i++){if(images[i].addEventListener){images[i].addEventListener("load",refreshOnLoad,false);}else if(images[i].attachEvent){images[i].attachEvent("onload",refreshOnLoad);}}
var iframes=self.content.getElementsByTagName("iframe");for(var i=0;i<iframes.length;i++){if(iframes[i].addEventListener){iframes[i].addEventListener("load",refreshOnLoad,false);}else if(iframes[i].attachEvent){iframes[i].attachEvent("onload",refreshOnLoad);}}
refreshOnLoad();},error:function(code){}});e&&e.preventDefault();return false;},listScroller:null,detailScroller:null,handleEvent:function(e){switch(e.type){case'orientationchange':case'resize':var that=this;setTimeout(function(){if(that.orientation!=getOrientation()){that.orientation=getOrientation();that.updateListScroller();if(typeof moduleHandleWindowResize!='undefined'){moduleHandleWindowResize(e);}}},0);break;}},updateListScroller:function(){var self=this,options={};if(this.detail.offsetTop>0){options.vScrollbar=false;options.hScrollbar=true;options.vScroll=false;options.hScroll=true;}else{options.vScrollbar=true;options.hScrollbar=false;options.hScroll=false;options.vScroll=true;}
if(this.listScroller){for(var i in options){this.listScroller.options[i]=options[i];}
setTimeout(function(){self.listScroller.refresh();var items=self.list.getElementsByTagName('a');for(var i=0;i<items.length;i++){if(hasClass(items[i],'listSelected')){self.listScroller.scrollToElement(items[i].parentNode,0);}}},0);return;}else{this.listScroller=iScrollInit(this.options.list,options);}},refreshScrollers:function(){setTimeout(function(){if(self.detailScroller){self.detailScroller.refresh();}
if(self.listScroller){self.listScroller.refresh();}},0);}}
function removeBreadcrumbParameter(url){return url.replace(/[?&]_b=[^&]*/,'');}
var RESIZE_EVENT=window.addEventListener?('onorientationchange'in window?'orientationchange':'resize'):('onresize');window.splitView=splitView;})(window);function setModuleFillScreen(){addClass(document.body,'fillscreen');}
function setupSplitViewForListAndDetail(splitview,options){var aSplitView=null;if(typeof splitview=='string'){splitview=document.getElementById(splitview);}
if(!splitview){return;}
var listWrapper=getFirstElementByClassName('splitview-listwrapper',splitview);var list=getFirstElementByClassName('splitview-list',splitview);var detailWrapper=getFirstElementByClassName('splitview-detailwrapper',splitview);var detail=getFirstElementByClassName('splitview-detail',splitview);if(!listWrapper||!list||!detailWrapper||!detail){return;}
moduleHandleWindowResize=function(){var wrapperHeight=document.getElementById('wrapper').offsetHeight;var offsetTop=splitview.offsetTop;var splitviewHeight=wrapperHeight-offsetTop;splitview.style.height=splitviewHeight+"px";switch(getOrientation()){case'landscape':if(hasClass(splitview,'portrait')){removeClass(splitview,'portrait');}
list.style['width']='';break;case'portrait':if(!hasClass(splitview,'portrait')){addClass(splitview,'portrait');}
var lists=list.getElementsByTagName('ul');if(lists.length){var width=0;var listItems=listWrapper.getElementsByTagName('li');for(var i=0;i<listItems.length;i++){width+=listItems[i].offsetWidth;}
list.style['width']=width+'px';}
break;}
if(aSplitView){aSplitView.refreshScrollers();}}
moduleProvidesScrollers=true;setModuleFillScreen();moduleHandleWindowResize();options=options||{};options["list"]=listWrapper;options["detail"]=detailWrapper;options["content"]=detail;aSplitView=new splitView(options);}
function splitviewHandleWindowResize(){};function supportsOverflowScroll(){return true;}
function setupSplitViewForListAndDetail(splitview,options){var aSplitView=null;if(typeof splitview=='string'){splitview=document.getElementById(splitview);}
if(!splitview){return;}
var listWrapper=getFirstElementByClassName('splitview-listwrapper',splitview);var detailWrapper=getFirstElementByClassName('splitview-detailwrapper',splitview);var detail=getFirstElementByClassName('splitview-detail',splitview);if(!listWrapper||!detailWrapper||!detail){return;}
moduleHandleWindowResize=splitviewHandleWindowResize;moduleHandleWindowResize();options=options||{};options["list"]=listWrapper;options["detail"]=detailWrapper;options["content"]=detail;aSplitView=new splitView(options);}
function splitviewHandleWindowResize(){var wrapper=document.getElementById('wrapper');var singleSplitviewHandleWindowResize=function(splitview){var listWrapper=getFirstElementByClassName('splitview-listwrapper',splitview);var list=getFirstElementByClassName('splitview-list',splitview);var detailWrapper=getFirstElementByClassName('splitview-detailwrapper',splitview);var detail=getFirstElementByClassName('splitview-detail',splitview);if(!wrapper||!listWrapper||!list||!detailWrapper||!detail){return;}
var wrapperHeight=wrapper.offsetHeight-splitview.offsetTop;var listHeight=list.offsetHeight;var detailHeight=detail.offsetHeight;var height=Math.max(wrapperHeight,listHeight,detailHeight);var splitviewForceOffsetHeight=function(element,offsetHeight){var cssHeight=getCSSHeight(element)-element.offsetHeight+offsetHeight;setCSSValue(element,'height',cssHeight+"px");};splitviewForceOffsetHeight(splitview,height);splitviewForceOffsetHeight(listWrapper,height);splitviewForceOffsetHeight(detailWrapper,height);}
var splitviews=getElementsByClassName('splitview');for(var i=0;i<splitviews.length;i++){singleSplitviewHandleWindowResize(splitviews[i]);}};var showPageEllipsizer;function setupShowPageEllipsizer(){showPageEllipsizer=new ellipsizer();var captions=getElementsByClassName('caption');for(var i=0;i<captions.length;i++){var elem=captions[i];if(!elem){break;}
showPageEllipsizer.addElement(elem);}}