 $(document).ready( function(){ 
 	
 	/**
 	
 	Snippet used as link to change tabs to second through href
 	
 	$('#result').hide();$('#proof').show();$('#entryDetail').hide();$('#intro .third').addClass('current');$('#intro .first').removeClass('current');$('#intro .second').removeClass('current');$('#intro .first em').hide();$('#intro .second em').hide();$('#intro .third em').show(); window.scrollTo(0,120)
 	**/
 	
 	$('#intro .first').addClass('current');
 	
 	$('#result').hide();
	$('#proof').hide();
 	$('#intro .second em').hide();
	$('#intro .third em').hide();
	$('#proof .second em').hide();
 	
 	
 	$('#intro .first').click(function() {
 		$('#result').hide();
		$('#proof').hide();
 		$('#entryDetail').show();
 		$(this).addClass('current');
 		$('#intro .second').removeClass('current');
		$('#intro .third').removeClass('current');
  		$('#intro .first em').show();		
   		$('#intro .second em').hide();
		$('#intro .third em').hide();	 		
 		return false;
 	});
 	
 	
 	$('#intro .second').click(function() {
 		$('#result').show();
		$('#proof').hide();
 		$('#entryDetail').hide();
 		$(this).addClass('current');
 		$('#intro .first').removeClass('current'); 	
		$('#intro .third').removeClass('current');
  		$('#intro .first em').hide();		
   		$('#intro .second em').show();	
		$('#intro .third em').hide();			
 		return false; 		
 	});
	
	$('#intro .third').click(function() {
 		$('#proof').show();
 		$('#entryDetail').hide();
		$('#result').hide();
 		$(this).addClass('current');
 		$('#intro .first').removeClass('current'); 	
		$('#intro .second').removeClass('current');
  		$('#intro .first em').hide();		
		$('#intro .second em').hide();	
   		$('#intro .third em').show();			
 		return false; 		
 	});
 	
 	
 	
$(function(){
if (document.location.href.indexOf('showdiv=yes') > 0){
 		$('#result').show();
 		$('#entryDetail').hide();
 		$('#intro .second').addClass('current');
 		$('#intro .first').removeClass('current'); 	
 		} else {
 		$('#result').hide();
 		$('#entryDetail').show();
 		$('#intro .first').addClass('current');
 		$('#intro .second').removeClass('current');
 		}
}); 
	
	// *** Used to add keyline borders to images *** //
	
	jQuery('img.keyline-right').each( function(){ 
		//jQuery(this).wrap('<div style="position:relative" />');
		jQuery(this).wrap('<div class="keyline-right-wrap" />'); 
	
	}) ;
	
	jQuery('.keyline-right-wrap').each( function(){ 
		jQuery(this).html(jQuery(this).html()+'<div class="Curve tlCurve">&nbsp;</div><div class="Curve trCurve">&nbsp;</div><div class="Curve blCurve">&nbsp;</div><div class="Curve brCurve">&nbsp;</div>') ;
	});
	
	jQuery('img.keyline-left').each( function(){ 
		//jQuery(this).wrap('<div style="position:relative" />');
		jQuery(this).wrap('<div class="keyline-left-wrap" />'); 
	
	}) ;
	
	jQuery('.keyline-left-wrap').each( function(){ 
		jQuery(this).html(jQuery(this).html()+'<div class="Curve tlCurve">&nbsp;</div><div class="Curve trCurve">&nbsp;</div><div class="Curve blCurve">&nbsp;</div><div class="Curve brCurve">&nbsp;</div>') ;
	});
	
 	
 }); 
 