function browserLessThanIE(){
   return (/MSIE ((5\\.5)|6|7)/.test(navigator.userAgent) && navigator.platform == "Win32");
}
$(document).ready(function() {
$(".thumb").yoxview({lang: "ir",backgroundColor: "#CCC"});

if(browserLessThanIE() == true){
	$('#infobar').show();
}else{
 $(".thumb a").hover(function() {	
	$(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/ 
		$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
			.animate({
				marginTop: '-110px', /* The next 4 lines will vertically align this image */ 
				marginLeft: '-110px',
				top: '50%',
				left: '50%',
				width: '174px', /* Set new width */
				height: '174px', /* Set new height */
				padding: '2px'
			}, 200); 
		} , function() {
		$(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
	//		var postion1 = $(this).attr('tab');
	//		postion2 = postion1.split('|');
		$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
			.animate({
				marginTop: '0', /* Set alignment back to default */
				marginLeft: '0',
				top: '0',
				left: '0',
				width: '50px', /* Set width back to default */
				height: '50px', /* Set height back to default */
				padding: '1px'
			}, 400);
	
	});
 }
 
});

