function openSpeedInfo(){
	if(document.getElementById){
		objSInfo = document.getElementById("speedinfotxt")
		if(objSInfo.style.visibility=="visible")
			objSInfo.style.visibility ="hidden"
		else
			objSInfo.style.visibility ="visible"
	}
}
function openImgWin(path,txt){
	window.open('/img.aspx?img='+path+'&imgtxt='+txt,'winImg','width=402px,height=400px,left=50,resizable=yes,scrollbars=yes')
}

function set_icon( el ){
  var pos = el.src.indexOf( "_over" );
  el.src = ( pos > -1 ) 
         ? el.src.substr( 0, pos ) + el.src.substr( el.src.lastIndexOf( "." ), el.src.length )
         : el.src.substr( 0, el.src.lastIndexOf( "." ) )+ "_over" + el.src.substr( el.src.lastIndexOf( "." ), el.src.length );
}

function setHeights(){
 
  var menu = document.getElementById( "DOMMenu-root" );
  var content = document.getElementById( "content" );
  var column = document.getElementById( "column" );
  mHeight = menu.offsetHeight;
  conHeight = content.offsetHeight;
  colHeight = column .offsetHeight - mHeight;

  height = mHeight > conHeight ? mHeight : conHeight;
  height = height > colHeight ? height : colHeight;
  
  if( menu.style.minHeight != null ){
    menu.style.minHeight = height + "px";
    content.style.minHeight = height + "px";
    column.style.minHeight = (height + 200) + "px";
  }
  else{
    menu.style.height = height + "px";
    content.style.height = height + "px";
    column.style.height = (height + 200) + "px";
  }
}

/*****************************************************
Slideshow
******************************************************/
/*** FRONTPAGE - JOIN OUR WORLD ***/
var arrFrontPageImages = []
var started;
var num = 0
var currentImage;
var tim=10
var tim2 = 10

//Check here
//onload=joinOurWorld;

joinImage = ""

function joinOurWorld(){
	if(!document.getElementById) return;
	loadImage();
}
function loadImage(){
	if(num >= arrFrontPageImages.length)
			num=0

	clearTimeout(tim)
	clearTimeout(tim2)
	currentImage = new Image()
	currentImage.src = arrFrontPageImages[num]
	currentImage.onload=loopImages;
	tim = setTimeout("extraCheck("+num+")",3500)
}
function extraCheck(nn){
	if(nn==num){ //Image probably not loaded
		currentImage.onload = ""
		loopImages()
	}
}


function loopImages(){
	if( num >= arrFrontPageImages.length )
		num=0

  img = document.getElementById("frontpageImage")
  if(document.all && img.filters){
	  img.style.filter="blendTrans(duration=1.5)"
	  img.filters.blendTrans.Apply();
  }

  img.src = arrFrontPageImages[num]
  if(document.all && img.filters) img.filters.blendTrans.Play();
  bant = new Image()
  num++
  bant.src = arrFrontPageImages[num]
  tim2=setTimeout("loadImage()",2500)
}
