// JavaScript Document

<!--
var SIZESMALL = 1;
var SIZEBIG = 2;
var SIZE;
if ('' == SIZESMALL)
SIZE = SIZESMALL
else
SIZE = SIZEBIG;
var browserName = 'name_' + navigator.appName;
var browserVer = 'version' + navigator.appVersion;
var lNS4 = false;
var lNS5 = false;
var x=0;
var y=0;
function changeCell(myObject)
{
	myObject.bgColor='#000000';
}
function changeCellBack(myObject)
{
	myObject.bgColor='#FFFFFF';
}
if ((browserName.indexOf('Netscape') > 0) && (browserVer.indexOf('4') > 0))
  lNS4 = true;
if ((browserName.indexOf('Netscape') > 0) && (browserVer.indexOf('5') > 0))
  lNS5 = true;
function switchImgSize(nSize) {
  document.selectionheaderform.SIZE.value = nSize;
  document.selectionheaderform.submit();
}
function reloadPage(init) { 
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);
function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function showBig(id, image){
document.images(id).src=image
}

// Define the path to the full size images and extension
function changeInfoImage(pImgNr) {
  var imgPath = 'thumbnails/' + pImgNr + '_large.jpg';
  swapImage('LargeImage','',imgPath,1)
}
function jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function moveBackgroundPosition(){
	var backgroundXPos=0;
	var backgroundYPos=69;
	var clip=12;
	var clipYPos=backgroundYPos+clip;
	var scrollTop=getScrollTop();
	var newYPos=scrollTop-1-clip;
	if(scrollTop>clipYPos)
	{
		setScrollTop(backgroundXPos,newYPos);
	} else {
		if(scrollTop<backgroundYPos)
		{
			 setScrollTop(backgroundXPos,backgroundYPos);
		}
	}
}
function initScrollEvent(){
  if (lNS4 == false)
  {
setInterval("moveBackgroundPosition()",250);
}
}
function setScrollTop(backgroundXPosIn,newYposIn,debug)
{
	if(lNS5==true)
	{
		var tekst=""+backgroundXPosIn+"px "+newYposIn+"px";
		document.body.style.backgroundPosition=tekst;
	} else {
		if(lNS4 ==true){
		} else {
			document.body.style.backgroundPosition=backgroundXPosIn+" "+newYposIn;
		}
	}
}
function getScrollTop()
{
	var scrollTop=0;
	if(lNS5==true)
	{
		scrollTop=window.pageYOffset;
	} else {
		if(lNS4 ==true){
		} else {
			scrollTop=document.body.scrollTop
		}
	}
	return scrollTop;
}

function drawLayer(MenuHTML) { 
  if (lNS4 == true)
    drawNS4Layer(MenuHTML)
  else
	if (lNS5 == true)
	  drawNS5Layer(MenuHTML)
	else
	  drawIELayer(MenuHTML)
  return true;
}
function move(id,xIn,yIn){
/*	if(lNS4==true){
		document.layers[id].left=xIn;
		document.layers[id].top=yIn;
	} else {
		if(lNS5==true){
			document.getElementById(id).style.top=y;
			document.getElementById(id).style.left=x;
		}
	}*/
}
function getY(id){
	var yOut=0;
	if(lNS4==true){
		yOut=document.layers[id].left;
	} else {
		if(lNS5==true){
			yOut=document.getElementById(id).offsetLeft;
		}
	}
	return yOut;
}
function getX(id){
	var xOut=0;
	if(lNS4==true){
		xOut=document.layers[id].left;
	} else {
		if(lNS5==true){
			xOut=document.getElementById(id).offsetLeft;
		}
	}
	return xOut;
}
function setY(id,yIn){
	if(lNS4==true){
		document.layers[id].top=yIn;
	} else {
		if(lNS5==true){
			document.getElementById(id).style.top=yIn;
		} else {
			document.getElementById(id).style.top=yIn;
		}
	}
}
function setX(id,xIn){
	/*if(lNS4==true){
		document.layers[id].left=xIn;
	} else {
		if(lNS5==true){
			document.getElementById(id).style.left=xIn;
		} else {
			document.getElementById(id).style.left=xIn;
		}
	}*/
}
function show(id){
	if(lNS4==true){
		document.layers[id].visibility="show";
	} else {
		if(lNS5==true){
			document.getElementById(id).style.visibility="visible";
		}
	}
}
function hide(id){
	if(lNS4==true){
		document.layers[id].visibility="hidden";
	} else {
		if(lNS5==true){
			document.getElementById(id).style.visibility="hidden";
		}
	}
}
function getHeight(id){
	var hOut=0;
	if(lNS4==true){
		hOut=document.layers[id].document.height;
	} else {
		if(lNS5==true){
			hOut=document.getElementById(id).offsetHeight;
		}
	}
	return hOut;
}
function drawNS4Layer(MenuHTML) {
	//document.writeln("<layer name='staticbanner' position='absolute'>");
	document.writeln(MenuHTML);
    //document.writeln("</layer>");
}
function drawIELayer(MenuHTML) { 
    document.writeln("<div id='staticbanner' style='POSITION: absolute'>");
document.writeln(MenuHTML);
    document.writeln("</div>");
}
function drawNS5Layer(MenuHTML) {
    document.writeln("<div id='staticbanner' style='POSITION: absolute'>");
	document.writeln(MenuHTML);
    document.writeln("</div>");
}
//-->
