

$(document).ready(function() {

  $("#kurzyvalut-webnoviny-sk").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk h2").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk table").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk td").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk img").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk span").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk div").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk a").removeAttr("style");
  $("#kurzyvalut-webnoviny-sk h2").unwrap();
  $(".pointer div").css("padding","0");
  

	//superfish menu
	$("#nav").superfish();
	
	// fancybox
	$("a.fancybox").fancybox({
    	'zoomSpeedIn': 0,
        'zoomSpeedOut': 0,
        'overlayShow': false,
        'hideOnContentClick': true 
    });

	//odsadenie prveho boxu .real
	$("div.real:first").addClass("first");
	
	// menu
//    var originalBG = $("#nav li a").css("background-color");
//    var fadeColor = "#a54686";

//    $("#nav li a").hover(function () {
//        $(this).fadeOut(50, function () {
//            $(this).fadeIn(50);
//      });
//    });

//    $("#nav li").hover( function () {
//        $(this).animate( { backgroundColor:fadeColor}, 100 );
//    },
//    function () {
//        $(this).animate( {backgroundColor:"#d8d6d9"}, 100 );
//    }
//    );
    
    
    
    
      $('div.slider marquee').marquee('pointer').mouseover(function () {
        $(this).trigger('stop');
        }).mouseout(function () {
            $(this).trigger('start');
        }).mousemove(function (event) {
            if ($(this).data('drag') == true) {
                this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
            }
        }).mousedown(function (event) {
            $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
        }).mouseup(function () {
            $(this).data('drag', false);
        });
    
      
	
});
