
// following two functions kindly provided by Jonathan Howard
$.fn.pause = function(milli,type) {
	milli = milli || 1000;
	type = type || "fx";
	return this.queue(type,function(){
		var self = this;
		setTimeout(function(){
			$.dequeue(self);
		},milli);
	});
};

$.fn.clearQueue = $.fn.unpause = function(type) {
	return this.each(function(){
		type = type || "fx";
		if(this.queue && this.queue[type]) {
			this.queue[type].length = 0;
		}
	});
};
 
/////////// 
 
 
 $(document).ready(function(){
   $('.pics').hide();
  
  $('#architecturetext').hide();
  $('#designtext').hide();
  $('#constructiontext').hide();
  $('#verntext').hide();
  $('#amandatext').hide();
  $('#nanoutext').hide();
  $('#robintext').hide();
  $('#rodneytext').hide();
  $('#nancytext').hide();
  $('#alextext').hide();
  $('#ryantext').hide();
  $('#andrewtext').hide();
  
   
   // stops the hourglass mouse pointer flicker
   if ( $.browser.msie ) {
		document.execCommand("BackgroundImageCache", false, true) 
    	 
   }
   
 $('#architecturetrigger').click(function()  {  
		if ( $('#architecturetext').css('display') == 'none') {
			$('#architecturetext').ScrollTo(800);
			$('#architecturetext').fadeIn();  
			$('#architecturetrigger').html('hide &gt;&gt;');
		} else {
			$('#architecturetext').fadeOut();  
			$('#architecturetrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		
		return false;
}

);

$('#designtrigger').click(function()  {  
		if ( $('#designtext').css('display') == 'none') {
			$('#designtext').ScrollTo(800);
			$('#designtext').fadeIn();  
			$('#designtrigger').html('hide &gt;&gt;');
		} else {
			$('#designtext').fadeOut();  
			$('#designtrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);

$('#constructiontrigger').click(function()  {  
		if ( $('#constructiontext').css('display') == 'none') {
			$('#constructiontext').ScrollTo(800);
			$('#constructiontext').fadeIn();  
			$('#constructiontrigger').html('hide &gt;&gt;');
		} else {
			$('#constructiontext').fadeOut();  
			$('#constructiontrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);

$('#verntrigger').click(function()  {  
		if ( $('#verntext').css('display') == 'none') {
			$('#verntext').ScrollTo(800);
			$('#verntext').fadeIn();  
			$('#verntrigger').html('hide &gt;&gt;');
		} else {
			$('#verntext').fadeOut();  
			$('#verntrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 
 $('#amandatrigger').click(function()  {  
		if ( $('#amandatext').css('display') == 'none') {
			$('#amandatext').ScrollTo(800);
			$('#amandatext').fadeIn();  
			$('#amandatrigger').html('hide &gt;&gt;');
		} else {
			$('#amandatext').fadeOut();  
			$('#amandatrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 
 $('#nanoutrigger').click(function()  {  
		if ( $('#nanoutext').css('display') == 'none') {
			$('#nanoutext').ScrollTo(800);
			$('#nanoutext').fadeIn();  
			$('#nanoutrigger').html('hide &gt;&gt;');
		} else {
			$('#nanoutext').fadeOut();  
			$('#nanoutrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 $('#robintrigger').click(function()  {  
		if ( $('#robintext').css('display') == 'none') {
			$('#robintext').ScrollTo(800);
			$('#robintext').fadeIn();  
			$('#robintrigger').html('hide &gt;&gt;');
		} else {
			$('#robintext').fadeOut();  
			$('#robintrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 $('#rodneytrigger').click(function()  {  
		if ( $('#rodneytext').css('display') == 'none') {
			$('#rodneytext').ScrollTo(800);
			$('#rodneytext').fadeIn();  
			$('#rodneytrigger').html('hide &gt;&gt;');
		} else {
			$('#rodneytext').fadeOut();  
			$('#rodneytrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 $('#nancytrigger').click(function()  {  
		if ( $('#nancytext').css('display') == 'none') {
			$('#nancytext').ScrollTo(800);
			$('#nancytext').fadeIn();  
			$('#nancytrigger').html('hide &gt;&gt;');
		} else {
			$('#nancytext').fadeOut();  
			$('#nancytrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 $('#alextrigger').click(function()  {  
		if ( $('#alextext').css('display') == 'none') {
			$('#alextext').ScrollTo(800);
			$('#alextext').fadeIn();  
			$('#alextrigger').html('hide &gt;&gt;');
		} else {
			$('#alextext').fadeOut();  
			$('#alextrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 $('#andrewtrigger').click(function()  {  
		if ( $('#andrewtext').css('display') == 'none') {
			$('#andrewtext').ScrollTo(800);
			$('#andrewtext').fadeIn();  
			$('#andrewtrigger').html('hide &gt;&gt;');
		} else {
			$('#andrewtext').fadeOut();  
			$('#andrewtrigger').html('More &gt;&gt;');
			$('body').ScrollTo(800);
		}
		return false;
}

);
 
 
 
    
    // trigger off the fading
	 setTimeout("fade()", 10);
   
 });
	 
	
	 

 


	

