	$(function() {
		// set opacity to nill on page load
		$("#header ul span").css("opacity","0");
		// on mouse over
		$("#header ul span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
	});

function getInternetExplorerVersion() {
    var rv = -1; 
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var ua = navigator.userAgent;
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec(ua) != null)
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}
var x= getInternetExplorerVersion();
if(x==8){
//codul tau pentru ie8
}else
{
//cod pentru orice alt browser


// DE SCOS DACA NU SE GASESTE SOLUTIE SA NU RULEZE PE IE8
$(function() {
		// set opacity to nill on page load
		$(".switch a span").css("opacity","0");
		// on mouse over
		$(".switch a").hover(function () {
			// animate opacity to full
			$(".switch a span")
				.animate({opacity: 1}, "fast");
},
		// on mouse out
		function () {
			// animate opacity to nill
			$(".switch a span")
				.stop().animate({opacity: 0}, "slow");
		});
});

}

$(document).ready(function()
{
	$("tr:nth-child(odd)").addClass("odd");
	

    $(".gallery a span").hover(function () {
         $(this).css('background-image', 'url(../../img/common/photo_mask_hover.png)');
																				 },
			function () {
				$(this).css('background-image', 'url(../../img/common/photo_mask.png)');
    });

});
