/*
 *	Custom JavaScript Functions
*/

/* IE Hover Hack */
ieHover = function() {
	var sfEls = document.getElementById("sub_menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" iehover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", ieHover);

jQuery(document).ready(function() {

	setup_fancybox();
});

function setup_fancybox(){
	/* This is basic - uses default settings */
	
	jQuery("a.single_image").fancybox();
	
	/* Using custom settings */
	
	jQuery("a.inline").fancybox({
		'hideOnContentClick': true
	});

	jQuery("a.group").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'titlePosition'	:	'over'
	});
}

