<!--

// Thumbnail Script
// (c) RJHM van den Bergh/comweb.nl, 2001
// support@comweb.nl
// 
// This script opens a enlarge picture of a thumbnail.
// With the onUnload you can close the enlarged thumbnail when the user leaves the page.
//

var popupHandle;

function popup(picUrlString, windowWidth, windowHeight, info)
{

  // always close the old one , so only one at a time is open
  if(popupHandle || popupHandle!=null)
  {
    if (!popupHandle.closed) popupHandle.close();
  }
  popupHandle=null;

  // create a feature string for the popup
  var x=(screen.width-windowWidth)/2
  var y=(screen.height-windowHeight)/2
  var featureString = "toolbar=no,scrollbars=no,resizable=no"
  featureString = ',left='+x + ',top='+y
  featureString += ',width='+windowWidth+',height='+windowHeight

  // open the popup
  // We use a php script to work arround some browser specific problems
  // Opera doesn't seem to handle document.close() correctly on the popup.
  popupHandle = window.open( "popup.php?windowWidth="+windowWidth+"&windowHeight="+windowHeight+"&picUrlString="+picUrlString+"&info="+info ,"popup",featureString)
  return popupHandle;

}

function video_popup(video, windowWidth, windowHeight, info)
{

  // always close the old one , so only one at a time is open
  if(popupHandle || popupHandle!=null)
  {
    if (!popupHandle.closed) popupHandle.close();
  }
  popupHandle=null;

  // create a feature string for the popup
  var windowHeight2 = 20 + parseInt(windowHeight);
  var x=(screen.width-windowWidth)/2
  var y=(screen.height-windowHeight2)/2
  var featureString = "toolbar=no,scrollbars=no,resizable=no"
  featureString = ',left='+x + ',top='+y
  featureString += ',width='+windowWidth+',height='+windowHeight2

  // open the popup
  // We use a php script to work arround some browser specific problems
  // Opera doesn't seem to handle document.close() correctly on the popup.
  popupHandle = window.open( "video.php?windowWidth="+windowWidth+"&windowHeight="+windowHeight+"&video="+video+"&info="+info ,"popup",featureString)
  return popupHandle;

}

function winclose()
{
  if (window.popupHandle!=null && !window.popupHandle.closed)
  {
    window.popupHandle.close();
    }
}

function doNothing(){} // does nothing but required by JavaScript in this case
//-->



function show_more_info()
{
	Effect.Fade('fade', { to: 0.1 });
	setTimeout("document.getElementById('more_info').style.visibility='visible'", 100);
	setTimeout("document.getElementById('fade2').style.visibility='hidden'", 1000);
	Effect.Fade('more_info', { to: 1.0, duration: 1});
}

function hide_more_info()
{
	setTimeout("document.getElementById('fade2').style.visibility='visible'", 100);
	setTimeout("document.getElementById('more_info').style.visibility='hidden'", 1600);
	Effect.Fade('more_info', { to: 0.1, duration: 2});
	Effect.Fade('fade', { to: 1.0, duration: 2 });
}

function show_thanks(curPage)
{
	document.getElementById('inner_div').style.display='none';
	document.getElementById('inner_div2').style.display='inline';
	show_more_info();
}


function hide_more_info2(curPage)
{
	setTimeout("document.getElementById('fade2').style.visibility='visible'", 100);
	setTimeout("document.getElementById('more_info').style.visibility='hidden'", 1600);
	Effect.Fade('more_info', { to: 0.1, duration: 2});
	Effect.Fade('fade', { to: 1.0, duration: 2 });
	document.getElementById('inner_div2').style.display='none';
	document.getElementById('inner_div').style.display='inline';
}