// #require jquery-1.x.x.js
// #for IE8 only (other browsers works with CSS)
(function ($) {
	if (!$)	return;
	if (!/*@cc_on!@*/0)	return;
	if (!(document.documentMode && document.documentMode >= 8))	return;
//	alert('ie8 standard mode');
	$(function () {
		$.each($('.brightover'), function () {
			var item = $(this);
			var descendant = item.find('*');
			item.hover(function () {
//				if (window.console)	console.log(0.7);
				item.css('opacity', 0.7);
				descendant.css('opacity', 0.7);
			},
			function () {
//				if (window.console)	console.log(1.0);
				item.css('opacity', 1.0);
				descendant.css('opacity', 1.0);
			});
		});
		//
		$.each($('.brightover_rev'), function () {
			var item = $(this);
			var descendant = item.find('*');
			item.css('opacity', 0.7);
			descendant.css('opacity', 0.7);
			item.hover(function () {
//				if (window.console)	console.log(1.0);
				item.css('opacity', 1.0);
				descendant.css('opacity', 1.0);
			},
			function () {
//				if (window.console)	console.log(0.7);
				item.css('opacity', 0.7);
				descendant.css('opacity', 0.7);
			});
		});
	});
})(window.jQuery);

