/* ALWAYS ON TOP FLOATING LAYER POP-UP
   Copyright 2003, Sandeep Gangadharan -->
   For more free scripts go to http://sivamdesign.com/scripts/ -->
*/
var y1 = 0;   // change the # on the left to adjust the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

function hide() {
  if (dom) {document.getElementById('mission').style.visibility='hidden';}
  if (dom) {document.getElementById('who_attend').style.visibility='hidden';}
  if (dom) {document.getElementById('why_attend').style.visibility='hidden';}
  if (dom) {document.getElementById('travel').style.visibility='hidden';}
  if (dom) {document.getElementById('schedule').style.visibility='hidden';}
  if (dom) {document.getElementById('workshop').style.visibility='hidden';}
  if (dom) {document.getElementById('matchmaking').style.visibility='hidden';}
  if (dom) {document.getElementById('contact').style.visibility='hidden';}
  if (dom) {document.getElementById('pictures').style.visibility='hidden';}
  if (dom) {document.getElementById('past').style.visibility='hidden';}
}

function showMission() {
  hide();
  if (dom) {document.getElementById('mission').style.visibility='visible';}
}

function showWhoAttend() {
  hide();
  if (dom) {document.getElementById('who_attend').style.visibility='visible';}
}

function showWhyAttend() {
  hide();
  if (dom) {document.getElementById('why_attend').style.visibility='visible';}
}


function showTravel() {
  hide();
  if (dom) {document.getElementById('travel').style.visibility='visible';}
}

function showSchedule() {
  hide();
  if (dom) {document.getElementById('schedule').style.visibility='visible';}
}

function showWorkshop() {
  hide();
  if (dom) {document.getElementById('workshop').style.visibility='visible';}
}

function showMatchmaking() {
  hide();
  if (dom) {document.getElementById('matchmaking').style.visibility='visible';}
}

function showContact() {
  hide();
  if (dom) {document.getElementById('contact').style.visibility='visible';}
}

function showPictures() {
  hide();
  if (dom) {document.getElementById('pictures').style.visibility='visible';}
}

function showPast(){
	hide();
	if(dom && document.getElementById('past')!='undefined'){
		document.getElementById('past').style.visibility='visible';
	}
}

function placeIt() {
/*  if (dom && !document.all) {document.getElementById('mission').style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1)) + "px";}*/
  if (document.all && document.all['mission']!="undefined") {document.all['mission'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['who_attend']!="undefined") {document.all['who_attend'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['why_attend']!="undefined") {document.all['why_attend'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['travel']!="undefined") {document.all['travel'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['schedule']!="undefined") {document.all['schedule'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['workshop']!="undefined") {document.all['workshop'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['matchmaking']!="undefined") {document.all['matchmaking'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['contact']!="undefined") {document.all['contact'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['pictures']!="undefined") {document.all['pictures'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
  if (document.all && document.all['past']!="undefined") {document.all['past'].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}	
}