﻿

window.onload = function() {
	var tg = 0;
	var myHeight3 = new fx.Height('crampton', {duration: 400, transition: fx.sineIn});
	hideForIE();  
	myHeight3.hide();
			$('show_crampton').onclick = function() {
  			myHeight3.toggle();
  			if (tg == 0) {
					document.getElementById('show_crampton').innerHTML="Hide Abstract -";
				 	tg = 1;
			} else {
				document.getElementById('show_crampton').innerHTML="Show Abstract +";
				tg = 0;
		};
	};
	var tgg = 0;
	var myHeight4 = new fx.Height('leckie', {duration: 400, transition: fx.sineIn});
	hideForIE();  
	myHeight4.hide();
			$('show_leckie').onclick = function() {
  			myHeight4.toggle();
  			if (tgg == 0) {
					document.getElementById('show_leckie').innerHTML="Hide Abstract -";
				 	tgg = 1;
			} else {
				document.getElementById('show_leckie').innerHTML="Show Abstract +";
				tgg = 0;
		};
	};
};


// function hides for IE older than 7.0
function hideForIE() {
  var browserName= navigator.appName; 
   //if (browserName=="Microsoft Internet Explorer")
   if (!window.XMLHttpRequest)
   {
    document.getElementById('show').innerHTML=" ";
	document.getElementById('crampton_show').innerHTML=" ";
  };
};
