$(document).ready(function() {
	$(".hoverme").mouseover(
		function () {
			$(this).addClass('hovering');
	});
	
	$(".hoverme").mouseout(
		function () {
			$(this).removeClass('hovering');
	});
	
	$('.sliderimage').hover(
		function () {
			$(".sliderimage + .photo-meta-data > h3 > a").addClass('featuredhover');
	}, 
		function () {
			$(".sliderimage + .photo-meta-data > h3 > a").removeClass('featuredhover');
	});
	
	
	function setHeight1(h) {
		$("#browse").height(h);
	}
	
	if ( $(".matchheight").height() > 200 ) {
		setHeight1($(".matchheight").height() - 48);
	}
	
	function setHeight2(h) {
		$(".matched").height(h);
	}
	
	$( ".matched" ).each(function(){
		if ( $(".matched").height() < $(".matchthis").height() ) {
			setHeight2($(".matchthis").height());
		}
	});
	
	$("#sidebar-search > ul").tabs();
	$(".tabbed > ul").tabs();
	$(".imagetabs > ul").tabs({ fx: { opacity: 'toggle', duration: 100 } });
	 
	
	/*
	$('.featured-link').hover(
		function () {
			$(this).children('.icon').fadeIn('fast');
	}, 
		function () {
			$(this).children('.icon').fadeOut('fast');
	});
	
	
	$('.dimmed').hover(
		function () {
			$(this).children('.overlay').hide();
	}, 
		function () {
			$(this).children('.overlay').show();
	});
	
	$('.jqGSTitle').hide();
	
	$('.scroll_li > img').mouseover(
		function () {
			$('.scroll_li').children('.jqGSTitle').slideDown('fast');
	});
	
	$('.scroll_li > img').mouseout(
		function () {
			$('.scroll_li').children('.jqGSTitle').slideUp('fast');
	});
	
	*/
});
