﻿// Gallery script.
// With image cross fade effect for those browsers that support it.
// Script copyright (C) 2004 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.
function LoadGallery(pictureName,imageFile)
{
//function LoadGallery(pictureName,imageFile,titleCaption,captionText)
  var picture = document.getElementById(pictureName);
  if (picture.filters)
  {
    picture.style.filter="blendTrans(duration=1)";
    picture.filters.blendTrans.Apply();
    picture.border = "1px";
  }
  picture.src = imageFile;
  if (picture.filters)
  {
    picture.filters.blendTrans.Play();
  }
  //document.getElementById(titleCaption).innerHTML=captionText;
}


//script for the floating meny

var xV1 = 0;
	
	function stayHome(){	

		var nV = 0;
		if (!document.body.scrollTop){nV = document.documentElement.scrollTop}
		else {nV = document.body.scrollTop}
		document.getElementById('floatMenu').style.top = xV1+nV+"px";
		setTimeout("stayHome()",50);
	}

	function init(){

		xV1 = document.getElementById('floatMenu').offsetTop;
		stayHome();
	}

	window.onload=init;