/**
 * @author Kristaps Karlsons <kristaps@wedidthis.lv>
 * @requires >= jQuery 1.4.4
 * @version 0.1a
 */

$(document).ready(function(){
	/**
	 * Attach Progressive Internet Explorer (PIE) functionality to needed elements
	 */
    if (window.PIE) {
        $('.iefix, #menu').each(function() {
            PIE.attach(this);
        });
    }

	/**
	 * Lightbox 2
	 */

	if(jQuery().lightBox) {
		$('a[rel=gallery]').lightBox();
	}

	/**
	 * Affiliates
	 */

	affiliates = $('#affiliates');

	affiliate = affiliates.find('li a');

	affiliate.live({
		mouseover: function(){
			$(this).stop().animate({
				opacity: 1
			}, 100);
		},
		mouseout: function(){
			$(this).stop().animate({
				opacity: 0.5
			}, 100);
		}
	});
});
