if(typeof jQuery=='undefined'){var jQ=document.createElement('script');jQ.type='text/javascript';jQ.onload=runthis;jQ.src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';document.body.appendChild(jQ);}else{mainfunction();}
function mainfunction(){$('.imageCaption').fadeTo(0,.001);}
$("img").mouseenter(function(){if($(this).prev().hasClass('imageCaption')){$(this).prev().fadeTo(100,1);}})
$("img").mouseleave(function(){if($(this).prev().hasClass('imageCaption')){$(this).prev().fadeTo(100,.01);if($(this).prev().mouseover()){}}})
$(function(){$('img.captify').captify({speedOver:'fast',speedOut:'normal',hideDelay:500,animation:'slide',prefix:'',opacity:'0.95',className:'caption-bottom',position:'bottom',spanWidth:'80%'});});function toggleGrid(){if(document.body){if(document.body.style.backgroundImage){document.body.style.backgroundImage="";document.body.style.backgroundColor='#ffffff';$("a#gridToggle").css("color","#9180ff");$("#headerContainer").css("background-color","#ffffff");$("#navigation").css("background-color","#ffffff");$("img.titleImage").css("background-color","#ffffff");$(".filler").css("background-color","#ffffff");}
else{document.body.style.backgroundImage="url(img/grid.png)";$("#headerContainer").css("background-color","transparent");$("#navigation").css("background-color","transparent");$("a#gridToggle").css("color","#fc3d3d");$("img.titleImage").css("background-color","transparent");$(".filler").css("background-color","transparent");}}}
$('a.scroll').click(function(e){$.scrollTo(this.hash,1500,{offset:-100});e.preventDefault();});
