/*********************
*  Igniter Function  *
*********************/
	igniter = function() {
		// If the chooseProject div exists on the page, then call this function
			if (document.getElementById("ideasHolder")) {
				locationImagePop();
				centerPop();
			}
	}
/********************/	
/************************
*  Center Pop Function  *
************************/
	centerPop = function() {
		// This code will keep the popup div centered on the page at all times.
			pw = document.getElementById("ideasHolder");
			if( /Opera|Safari/.test(navigator.userAgent) ) { // If Opera or Safari
				browserHeight = window.innerHeight; // Gets Browser Height for Opera & Safari
				pw.style.top = ( ( ( ( browserHeight - 130 ) / 2 ) - 130 ) + document.body.scrollTop ) + 'px';
			} else { // Else any other browser we support
				browserHeight = document.documentElement['clientHeight']; // Gets Browser Height for all other browsers
				pw.style.top = ( ( ( ( browserHeight - 130 ) / 2 ) - 130 ) + document.documentElement['scrollTop'] ) + 'px';
			}
	}
/***********************/
/********************************
*  Location Image Pop Function  *
********************************/
	locationImagePop = function() {
			pw = document.getElementById("ideasHolder");
			
		// Closes the pop up image window upon clicking the close button	
			document.getElementById("ideasX").onclick = function() {
				pw.style.display = "none"; // Closes!
		  }
	}

/**************************/
// Once page has loaded, start the Igniter function
	window.onload = igniter;
	window.onresize = centerPop;
	window.onscroll = centerPop;