
var $j = jQuery.noConflict();

$j(document).ready(function() {

	if($j.cookie('shnur') == '1'){
				$j("#img_bw").animate({
					opacity: "hide"
				}, "slow");
	}
	
	var dragSlider1 = false;
	var dragSlider2 = false;
	var mouseOffsetX;

    $j("#shnur").mousedown(function() {
		$j.cookie('shnur','1',{expires:7, path:"/"});	
	
        $j(this).animate({
            "margin-top": "40px"
        }, "fast");

        if ($j("#img_bw").css("display") == "none") {
            $j("#img_bw").animate({
                opacity: "show"
            }, "fast");
        } else {
            $j("#img_bw").animate({
                opacity: "hide"
            }, "fast");
        }		
		
    })


    $j("#shnur").mouseup(function() {
        $j(this).animate({
            "margin-top": "0px"
        }, "fast");
    })

    $j(document).mousemove(function(e) {
        pos = (e.pageX - $j(document).width() / 2) / 30;
        $j("#shnur").css({
            "margin-left":pos
        })
    })

    $j("#cal").mouseover(function() {
        $j("#cal").animate({
            "margin-left": "-290px"
        }, "normal");
    })

    $j("#cal").mouseout(function() {
        $j("#cal").animate({
            "margin-left": "-300px"
        }, "normal");
    })

});

