var isIE6 = false; function isIExplorer6(){ var version=0; var isIE = navigator.appVersion.indexOf("MSIE"); if(isIE > 0){ version = navigator.appVersion.substr(isIE + 5, 1); } return(isIE>0 && version==6); } function dropdownAction(){ if (isIE6){ document.getElementById('lang').onchange = function (){ document.getElementById('language_form').submit(); } document.getElementById('lang').className = "dont_replce"; }else{ document.getElementById('lang').style.visibility = 'hidden'; } } function change_language(){ var lang = replaced_obj_backup.value; var xss_elem = document.getElementById('xss'); if(xss_elem && xss_elem.value) { location=azBase + "&lang=" + lang + "&xss=" + xss_elem; }else { location=azBase + "&lang=" + lang; } } function set_sfx_menu_language(lang){ //--------------------------------------------------------- // Responds to a user selecting a language //--------------------------------------------------------- var lng = lang; var nextyear=new Date(); nextyear.setFullYear(nextyear.getFullYear()+1); var cookie_name = 'user-Profile'; // default if there is no cookie already set var new_cookie = cookie_name + "=+++" + lng + ";path=/;expires=" + nextyear.toGMTString(); // check if we need to modify an existing cookie var start = document.cookie.indexOf(cookie_name + '='); if (start != -1) { //ignore 'name=' portion start += cookie_name.length + 1; // find end of value var end = document.cookie.indexOf(';', start); if (end == -1) end = document.cookie.length; var cookie_val = unescape(document.cookie.substring(start, end)); // change language portion var values = cookie_val.split('+'); values[3] = lng; // set new cookie value new_cookie = cookie_name + "=" + values.join('+') + ";path=/;expires=" + nextyear.toGMTString(); } document.cookie = new_cookie; } // ----------------------------------------- //Functions for Language select box var replaced_obj_backup = null; function selectReplacement(obj) { var ul = document.createElement('ul'); ul.id = obj.id + '_replaced'; ul.style.position = 'absolute'; ul.style.top = getAbsoluteTop(obj); ul.style.left = getAbsoluteLeft(obj); obj.className += ' replaced'; ul.className = 'selectReplacement'; var opts = obj.options; var selectedOpt = (!obj.selectedIndex) ? 0 : obj.selectedIndex; var firstLi = document.createElement('li'); firstLi.selIndex = 0; firstLi.className = 'firstOption'; firstLi.innerHTML = opts[selectedOpt].innerHTML; firstLi.onclick = function() { selectMe(getSelected(this.parentNode)); }; ul.appendChild(firstLi); for (var i=0; i' + ' '+ ' ' + caption + ''+ ' ' + caption + ''+ ' ' + caption + ''+ ' '+ ' '; }