var geoMap={US:{code:"",noResults:"No Shortcut found. Search all of apple.com.",viewAll:"View all search results",searchText:""},ASIA:{code:"asia"},AT:{code:"at",viewAll:"Alle Suchergebnisse",searchText:"Suchen"},AU:{code:"au"},BE_FR:{code:"bf",viewAll:"Afficher tous les résultats",noResults:"Pas de résultat. Essayez une recherche apple.com",searchText:"Rechercher"},BE_NL:{code:"bl",viewAll:"Toon alle zoekresultaten",noResults:"Niets gevonden. Zoek opnieuw binnen www.apple.com.",searchText:"Zoek"},BR:{code:"br",noResults:"Não encontrado. Tente a busca em apple.com",viewAll:"Ver todos os resultados da busca",searchText:"Buscar"},CA_EN:{code:"ca",directory:"/ca"},CA_FR:{code:"ca",directory:"/ca/fr",viewAll:"Afficher tous les résultats",searchText:"Recherche"},CH_DE:{code:"ce",viewAll:"Alle Suchergebnisse",noResults:"Kein Treffer in Kurzsuche. Vollsuche auf apple.com",searchText:"Suchen"},CH_FR:{code:"cr",viewAll:"Afficher tous les résultats",noResults:"Pas de résultat. Essayez une recherche apple.com",searchText:"Rechercher"},CN:{code:"cn",directory:".cn",noResults:"找不到快速搜索结果，请尝试 apple.com.cn 的完整搜索",viewAll:"查看所有搜索结果",searchText:"搜索"},DE:{code:"de",viewAll:"Alle Suchergebnisse",noResults:"Kein Treffer in Kurzsuche. Vollsuche auf apple.com",searchText:"Suchen"},DK:{code:"dk",noResults:"Ingen genvej fundet. Prøv at søge på hele apple.com.",viewAll:"Vis alle søgeresultater",searchText:"Søg"},ES:{code:"es",viewAll:"Ver todos los resultados de búsqueda",noResults:"Ningún atajo. Búsqueda completa en apple.com",searchText:"Buscar"},FI:{code:"fi",noResults:"Ei oikotietä. Etsi koko apple.com.",viewAll:"Katso hakutulokset",searchText:"Etsi"},FR:{code:"fr",viewAll:"Afficher tous les résultats",noResults:"Pas de résultat. Essayez une recherche apple.com",searchText:"Rechercher"},HK:{code:"hk",noResults:"找不到快速搜尋結果，請試試 apple.com 的完整搜尋",viewAll:"檢視所有搜尋結果",searchText:"搜尋"},HK_EN:{code:"hk",directory:"/hk/en"},ID:{code:"id"},IE:{code:"ie"},IN:{code:"in"},IT:{code:"it",noResults:"Nessuna scorciatoia trovata. Provate su apple.com",viewAll:"Mostra tutti i risultati",searchText:"Cerca"},JP:{code:"jp",noResults:"ショートカットは見つかりませんでした。検索はこちら。",viewAll:"すべての検索結果を見る",searchText:"Search"},KR:{code:"kr",noResults:"일치하는 검색결과가 없습니다. 다시 검색하기.",viewAll:"검색 결과 전체 보기."},LA:{code:"la",noResults:"No se encontraron resultados. Intenta en apple.com.",viewAll:"Ver todos los resultados de la búsqueda",searchText:"Buscar"},LAE:{code:"lae",noResults:"No Shortcut found. Try a full search of apple.com.",viewAll:"View all search results",searchText:"Search"},MX:{code:"mx",noResults:"No se encontraron resultados. Intenta en apple.com.",viewAll:"Ver todos los resultados de la búsqueda",searchText:"Buscar"},MY:{code:"my"},NL:{code:"nl",viewAll:"Toon alle zoekresultaten",noResults:"Niets gevonden. Zoek opnieuw binnen www.apple.com.",searchText:"Zoek"},NO:{code:"no",noResults:"Fant ingen snarvei. Søk på hele apple.com.",viewAll:"Vis alle søkeresultater",searchText:"Søk"},NZ:{code:"nz"},PH:{code:"ph"},PL:{code:"pl",noResults:"Fraza nie została odnaleziona. Użyj apple.com.",viewAll:"Przeglądaj wszystkie wyniki",searchText:"Szukaj"},PT:{code:"pt",noResults:"Nenhum resultado. Tente pesquisar em apple.com.",viewAll:"Ver todos os resultados de pesquisa",searchText:"Procurar"},RU:{code:"ru",noResults:"Ссылок нет. Попробуйте расширенный поиск.",viewAll:"Показать все результаты поиска",searchText:"Поиск"},SE:{code:"se",noResults:"Ingen genväg hittad. Sök i hela apple.com.",viewAll:"Visa alla sökresultat",searchText:"Sök"},SG:{code:"sg"},TH:{code:"th"},TW:{code:"tw",noResults:"快速搜尋找不到，試試 apple.com 完整搜尋",viewAll:"瀏覽搜索結果",searchText:"搜尋"},UK:{code:"uk"},VN:{code:"vn"},ZA:{code:"za"},PO:null,TR:null,UA:null,RO:null,CZ:null,HU:null,BG:null,HR:null,GR:null,IS:null};
var enhanceSearch=function(b){var a=function(c){var d=document.getElementById(c);
if(d){d.parentNode.removeChild(d)}};document.getElementById("g-search").setAttribute("action",b);
document.getElementById("g-search").setAttribute("method","GET");a("search-oe");
a("search-access");a("search-site");a("search-lr")};function loadShortcuts(){decorateGlobalSearchInput();
if(typeof(searchCountry)=="undefined"){searchCountry="us"}if(geoMap[searchCountry.toUpperCase()].directory){var c=geoMap[searchCountry.toUpperCase()].directory
}else{if(searchCountry!="us"){var c="/"+searchCountry.replace(/_/,"")}else{c=""
}}var b={global:"http://www.apple.com"+c+"/search/",downloads:"http://www.apple.com"+c+"/search/",iphone:"http://www.apple.com"+c+"/search/",ipoditunes:"http://www.apple.com"+c+"/search/",mac:"http://www.apple.com"+c+"/search/",store:"http://www.apple.com"+c+"/search/",support:"http://www.info.apple.com/searchredir.html"};
var a=b[searchSection]||"http://www.apple.com/search/";a=a+="?sec="+window.searchSection;
enhanceSearch(a)}function shortcutsPageLoader(b){var a=window.onload;if(typeof window.onload!="function"){window.onload=b
}else{window.onload=function(){a();b()}}}shortcutsPageLoader(loadShortcuts);function decorateGlobalSearchInput(){var m=document.getElementById("sp-searchtext"),d=document.getElementById("globalheader"),f=null,e=0,j="",i="";
if(typeof(searchCountry)=="undefined"){searchCountry="us"}if(geoMap[searchCountry.toUpperCase()].searchText){j=geoMap[searchCountry.toUpperCase()].searchText
}if(navigator.userAgent.match(/AppleWebKit/i)&&!(navigator.userAgent.match(/Chrome/i)&&navigator.userAgent.match(/win/i))){m.setAttribute("type","search");
if(!m.getAttribute("results")){m.setAttribute("results",e)}if(null!=j){m.setAttribute("placeholder",j);
m.setAttribute("autosave",i)}m.onfocus=function(){d.className+=" globalheader-focus"
}}else{m.setAttribute("autocomplete","off");f=document.createElement("input");m.setAttribute("type","text");
m.parentNode.replaceChild(f,m);var b=document.createElement("span");b.className="left";
var k=document.createElement("span");k.className="right";var h=document.createElement("div");
h.className="reset";var a=document.createElement("div");a.className="search-wrapper";
var g=m.value==j;var c=m.value.length==0;if(g||c){m.value=j;a.className+=" blurred empty"
}a.appendChild(b);a.appendChild(m);a.appendChild(k);a.appendChild(h);m.onfocus=function(){var n=a.className.indexOf("blurred")>-1;
if(m.value==j&&n){m.value=""}a.className=a.className.replace("blurred","");d.className+=" globalheader-focus"
};m.onblur=function(){if(m.value==""){a.className+=" empty";m.value=j}a.className+=" blurred"
};m.onkeydown=function(n){var p=typeof(event)!="undefined"?event.keyCode:n.keyCode;
if(!n){n=event}if(p==13&&!n.altKey){var o=null;if(n.target){o=n.target}else{if(n.srcElement){o=n.srcElement
}}if(o.value.length===0){return false}else{document.getElementById("g-search").submit()
}return}if(m.value.length>=0){a.className=a.className.replace("empty","")}l()};
var l=function(){return(function(n){var o=false;if(!n){n=window.event}if(n.type=="keydown"){if(n.keyCode!=27){return
}else{o=true}}m.blur();m.value="";a.className+=" empty";m.focus()})};h.onmousedown=l();
if(f){f.parentNode.replaceChild(a,f)}}};

