


// Fix z-index in ie

$(function() {
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
});


// Fix :hover in ie

sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// Follow me image

// $(document).ready(function(){
//     var offset = $("#image").offset();
//     var topPadding = 0;
//     $(window).scroll(function() {
//         if ($(window).scrollTop() > offset.top) {
//             $("#image").stop().animate({
//                 marginTop: $(window).scrollTop() - offset.top + topPadding
//             });
//         } else {
//             $("#image").stop().animate({
//                 marginTop: 0
//             });
//         };
//     });
// });


// Homepage slideshow
// Kill noLink


$(document).ready(function(){

	$('.noLink').click(function() {
		return false;
	});
});

