// JavaScript Document
if ((browser.isIE55 || browser.isIE6x) && browser.isWin32) {
	var pngAlpha = true;
// else, if the browser can display PNGs normally, then do that
}
function show(id) 
{
var elid = id;
if(document.getElementById(elid) != null){
	document.getElementById('getX').style.display="none";
	document.getElementById('getX').style.display="block";
	document.getElementById(elid).style.display="block";
}
}

function home(){
window.location='/';	
}

function hide(id) 
{
var elid = id;
if(document.getElementById(elid) != null){
	document.getElementById(elid).style.display="none";
}
}
function logoIE(){
document.write("<div onclick='home()' style='cursor: pointer' id='logoIE'><\/div>");
}

function logoANDRE(){
document.write("<div onclick='home()' style='cursor: pointer' id='logoANDRE'><img border='0' src='/design/plain_site/images/logo.png' alt='RKK-logo' \/><\/div>");
}

function placelogo(){
	if(pngAlpha==true){
	document.getElementById('logoIE').style.display='none';
	document.getElementById('logoIE').style.left=(document.getElementById('getX').offsetLeft+25+"px");
	document.getElementById('logoIE').style.display='block';
	}
	else{
	document.getElementById('logoANDRE').style.display='none';
   	document.getElementById('logoANDRE').style.left=(document.getElementById('getX').offsetLeft+25+"px");
  	document.getElementById('logoANDRE').style.display='block';
   	}
}

function menyskjul(id){
	document.getElementById("menypkt"+id).removeAttribute("href");
	document.getElementById("menypkt"+id).style.cursor='default';
}

function MM_jumpMenu1(selObj){
  	window.kurs_frame.location.href=selObj.options[selObj.selectedIndex].value;
	var intIndexOfOption = 0; 
	document.getElementById("jumpMenu2").options[intIndexOfOption].selected = true;

}

function MM_jumpMenu2(selObj){
  	window.kurs_frame.location.href=selObj.options[selObj.selectedIndex].value;
  	var intIndexOfOption = 0; 
	document.getElementById("jumpMenu1").options[intIndexOfOption].selected = true;
}

function clear_form(){
	document.loginForm.submit();
	document.loginForm.reset();
}

function reshit(){
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  document.getElementById('kurs_frame').style.height=myHeight-360+'px';
}

function setMap(obj){
	window.kurs_frame.location.href=obj;	
}


