function isUsingFirefox(){try{return(-1!=navigator.userAgent.indexOf('Firefox'))}catch(ex){return false}}var OSDetect={init:function(){this.OS=this.searchString(this.dataOS)||false},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)return data[i].identity}else if(dataProp)return data[i].identity}},dataOS:[{string:navigator.platform,subString:"Win",identity:"windows"},{string:navigator.platform,subString:"Mac",identity:"mac"},{string:navigator.platform,subString:"Linux",identity:"linux"}]};function showfor_detect_os(){OSDetect.init();return OSDetect.OS}function showfor_detect_browser(){if(!isUsingFirefox())return false;var match=/Firefox\/(\d\.\d)/.exec(navigator.userAgent);switch(match[1]){case"2.0":return"firefox2";case"3.0":return"firefox3.0";case"3.1":case"3.5":case"3.6":return"firefox3.6";default:return false}}function showfor_start_os(os,detect){if(detect==true){var saved_os=getCookie('showfor_os');if(saved_os){showfor(saved_os);return true}var detected_os=showfor_detect_os()}else{var detected_os=false}if(!detected_os){showfor(os)}else{showfor(detected_os)}return true}function showfor_start_browser(browser,detect){if(detect==true){var saved_browser=getCookie('showfor_browser');if(saved_browser){showfor_alert_fx2eol(saved_browser);showfor(saved_browser);return true}var detected_browser=showfor_detect_browser()}else{var detected_browser=false}if(!detected_browser){showfor_alert_fx2eol(browser);showfor(browser)}else{showfor_alert_fx2eol(detected_browser);showfor(detected_browser)}return true}function showfor_save_os(tab){setCookie('showfor_os',tab);return true}function showfor_save_browser(tab){setCookie('showfor_browser',tab);return true}function showfor_alert_fx2eol(tab){if(document.getElementById("fx2eol")){if(tab=="firefox2"){document.getElementById("fx2eol").style.display='block'}else{document.getElementById("fx2eol").style.display='none'}}}function showfor(tab){switch(tab){case'firefox2':document.getElementById('showfor_tab_firefox2').className='showfor_button_on';document.getElementById('showfor_tab_firefox3').className='showfor_button';document.getElementById('showfor_tab_firefox3.0').className='showfor_button';document.getElementById('showfor_tab_firefox3.1').className='showfor_button';document.getElementById('showfor_tab_firefox3.6').className='showfor_button';document.getElementById('showfor_tab_allbrowser').className='showfor_button';break;case'firefox3':document.getElementById('showfor_tab_firefox3').className='showfor_button_on';document.getElementById('showfor_tab_firefox2').className='showfor_button';document.getElementById('showfor_tab_firefox3.0').className='showfor_button';document.getElementById('showfor_tab_firefox3.1').className='showfor_button';document.getElementById('showfor_tab_firefox3.6').className='showfor_button';document.getElementById('showfor_tab_allbrowser').className='showfor_button';break;case'firefox3.0':document.getElementById('showfor_tab_firefox3.0').className='showfor_button_on';document.getElementById('showfor_tab_firefox2').className='showfor_button';document.getElementById('showfor_tab_firefox3').className='showfor_button';document.getElementById('showfor_tab_firefox3.1').className='showfor_button';document.getElementById('showfor_tab_firefox3.6').className='showfor_button';document.getElementById('showfor_tab_allbrowser').className='showfor_button';if(!window.allSpan)allSpan=document.getElementsByTagName('span');if(allSpan){for(i=allSpan.length-1;i>=0;i--){var thisclass=allSpan[i].className;if(thisclass&&thisclass.match(/firefox3.5/))allSpan[i].style.display='none';if(thisclass&&thisclass.match(/firefox3.6/))allSpan[i].style.display='none';if(thisclass&&thisclass.match(/firefox3.0/))allSpan[i].style.display=''}}break;case'firefox3.1':document.getElementById('showfor_tab_firefox3.1').className='showfor_button_on';document.getElementById('showfor_tab_firefox2').className='showfor_button';document.getElementById('showfor_tab_firefox3').className='showfor_button';document.getElementById('showfor_tab_firefox3.0').className='showfor_button';document.getElementById('showfor_tab_firefox3.6').className='showfor_button';document.getElementById('showfor_tab_allbrowser').className='showfor_button';break;case'firefox3.6':document.getElementById('showfor_tab_firefox3.6').className='showfor_button_on';document.getElementById('showfor_tab_firefox2').className='showfor_button';document.getElementById('showfor_tab_firefox3').className='showfor_button';document.getElementById('showfor_tab_firefox3.0').className='showfor_button';document.getElementById('showfor_tab_firefox3.1').className='showfor_button';document.getElementById('showfor_tab_allbrowser').className='showfor_button';if(!window.allSpan)allSpan=document.getElementsByTagName('span');if(allSpan){for(i=allSpan.length-1;i>=0;i--){var thisclass=allSpan[i].className;if(thisclass&&thisclass.match(/firefox3.5/))allSpan[i].style.display='';if(thisclass&&thisclass.match(/firefox3.6/))allSpan[i].style.display='';if(thisclass&&thisclass.match(/firefox3.0/))allSpan[i].style.display='none'}}break;case'allbrowser':document.getElementById('showfor_tab_allbrowser').className='showfor_button_on';document.getElementById('showfor_tab_firefox2').className='showfor_button';document.getElementById('showfor_tab_firefox3').className='showfor_button';document.getElementById('showfor_tab_firefox3.0').className='showfor_button';document.getElementById('showfor_tab_firefox3.1').className='showfor_button';document.getElementById('showfor_tab_firefox3.6').className='showfor_button';break;case'windows':document.getElementById('showfor_tab_windows').className='showfor_button_on';document.getElementById('showfor_tab_linux').className='showfor_button';document.getElementById('showfor_tab_mac').className='showfor_button';document.getElementById('showfor_tab_allos').className='showfor_button';if(!window.allSpans)allSpans=document.getElementsByTagName('span');if(allSpans){for(i=allSpans.length-1;i>=0;i--){var thisclass=allSpans[i].className;if(thisclass&&thisclass.match(/win/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/windows/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noMac/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noUnix/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noLinux/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWin/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/noWindows/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/mac/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/unix/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/linux/))allSpans[i].style.display='none'}}break;case'linux':document.getElementById('showfor_tab_linux').className='showfor_button_on';document.getElementById('showfor_tab_windows').className='showfor_button';document.getElementById('showfor_tab_mac').className='showfor_button';document.getElementById('showfor_tab_allos').className='showfor_button';if(!window.allSpans)allSpans=document.getElementsByTagName('span');if(allSpans){for(i=allSpans.length-1;i>=0;i--){var thisclass=allSpans[i].className;if(thisclass&&thisclass.match(/linux/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/unix/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noMac/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWin/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWindows/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/win/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/windows/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/mac/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/noUnix/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/noLinux/))allSpans[i].style.display='none'}}break;case'mac':document.getElementById('showfor_tab_mac').className='showfor_button_on';document.getElementById('showfor_tab_windows').className='showfor_button';document.getElementById('showfor_tab_linux').className='showfor_button';document.getElementById('showfor_tab_allos').className='showfor_button';if(!window.allSpans)allSpans=document.getElementsByTagName('span');if(allSpans){for(i=allSpans.length-1;i>=0;i--){var thisclass=allSpans[i].className;if(thisclass&&thisclass.match(/mac/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWin/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWindows/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noUnix/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noLinux/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noMac/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/windows/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/win/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/unix/))allSpans[i].style.display='none';if(thisclass&&thisclass.match(/linux/))allSpans[i].style.display='none'}}break;case'allos':document.getElementById('showfor_tab_allos').className='showfor_button_on';document.getElementById('showfor_tab_windows').className='showfor_button';document.getElementById('showfor_tab_linux').className='showfor_button';document.getElementById('showfor_tab_mac').className='showfor_button';if(!window.allSpans)allSpans=document.getElementsByTagName('span');if(allSpans){for(i=allSpans.length-1;i>=0;i--){var thisclass=allSpans[i].className;if(thisclass&&thisclass.match(/win/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/windows/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/mac/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/linux/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/unix/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noMac/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noUnix/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noLinux/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWin/))allSpans[i].style.display='';if(thisclass&&thisclass.match(/noWindows/))allSpans[i].style.display=''}}break}if(location.hash)location.hash=location.hash}function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}}return false}function setCookie(c_name,value){expiredays=1;var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())}function warnLanguage(kbLang){var c_warn=getCookie('warn_lang_disable');var browserLangs=new Object();browserLangs['id']='Bahasa Indonesia';browserLangs['en-ID']='Bahasa Inggris';browserLangs['other']='bahasa selain Bahasa Inggris atau Bahasa Indonesia';if(!c_warn){var userLang=(navigator.language)?navigator.language:navigator.userLanguage;userLang=userLang.toLowerCase().substring(0,2);if(userLang!='en'&&userLang!='id')userLang='other';if(userLang=='en')userLang='en-ID';if(userLang!=kbLang){var html='<div id="languageWarn" class="simplebox"><span class="warnclose"><a href="#" onclick="saveWarn();">Abaikan</a></span><p>Menu dan dialog program peramban (<em>browser</em>) Anda dalam '+browserLangs[userLang]+'. Anda dapat membuka artikel yang sesuai dengan bahasa yang digunakan pada peramban Anda dengan mengklik tautan di bawah "Bahasa Lainnya" pada kotak di samping kiri</p></div>';$('h1.headline').before(html)}}}function saveWarn(){setCookie('warn_lang_disable');$('#languageWarn').hide()}