<!-- Begin
/////////////////////////////////////////////////////////////////////////
// Common JavaScript for shared pages
// Site development available at  cor.creative.com
/////////////////////////////////////////////////////////////////////////



// Function to toggle a hidden block
     function toggleBlock(targetBlock) {
          if (document.getElementById) {
          	var abra = document.getElementById(targetBlock).style;
          	if (abra.display == "block") {
          	abra.display = "none";
          	} else {
          	abra.display = "block"
          	} 
          	return false
          	} else {
          	return true
          	}
          }


// -------------------------------------------------------

//======================================================

// functions to show and hide the Find it Fast form

      function ShowQuote(){
      FIFdiv = document.getElementById('FindItFastBkgrndBlkout');
      FIFform = document.getElementById('FindItFastPopupBox');
      CenterInWindowWidth = findLivePageWidth()/2 - 326;
      CenterInWindowHeight = findLivePageHeight()/2 - 154;
      // alert ('window width is: ' + CenterInWindow + ' pixels');
      FIFdiv.style.display='block';
      FIFform.style.display='block';
      FIFform.style.left= CenterInWindowWidth + 'px';
      FIFform.style.top= CenterInWindowHeight + 'px';
      }
      
     function HideQuote(){
      FIFdiv = document.getElementById('FindItFastBkgrndBlkout');
      FIFform = document.getElementById('FindItFastPopupBox');
      FIFdiv.style.display='none';
      FIFform.style.display='none';
      }
     

	function findLivePageWidth() {
		if (window.innerWidth)
		return window.innerWidth;
		if (document.body.clientWidth)
		return document.body.clientWidth;
		return (null);
		}
		
	function findLivePageHeight() {
		if (window.innerHeight)
		return window.innerHeight;
		if (document.body.clientHeight)
		return document.body.clientHeight;
		return (null);
		}


//======================================================



// End -->
