
    function jsInclude(url)
    {
      document.write('<scr' + 'ipt type="text/javascript" src="' + url + '"></scr' + 'ipt>');
    }
    function cssInclude(url)
    {
      document.write('<link href="' + url + '" type="text/css" rel="stylesheet"></link>');
    }

	// skrypty strony
    
    
	// skrypty modułów
    $(document).ready(function() {
    if ($.cookie("User")==null) {
        $("#witaj").html("Witaj, <A href=http://www.galea.com.pl/79,Logowanie.aspx><b>Zaloguj się</b></a>");
    }
    else
    {
        var str=$.cookie("User");
        $("#witaj").html("Witaj, " + str.replace("+", " ") + ", <a id=wyloguj href=http://www.galea.com.pl/78,Twoje-Dane.aspx?Akcja=wyloguj>wyloguj</a>");
    }

    $("#SzukajButton").click(function() {
         var str = document.getElementById("SzukajtText").value;  
         var answer = ("http://www.galea.com.pl/s-sz-62-"+str+".aspx");  
         window.location= answer;
         return false;
    })

    $("#SzukajtText").keyup(function(event){
        if(event.keyCode == 13){
             $("#SzukajButton").click();
        }
    })

})

$(document).ready(function() {
//	$("#rabat_box1").scrollable({size: 1, speed: 700, circular: true}).autoscroll({interval: 10000});
	$("#device_list").scrollable({size: 1, speed: 700, circular: true});
//	$("a.prev").click(function(){return false;}); 
//	$("a.next").click(function(){return false;});
});

cssInclude('http://www.galea.com.pl/css/scrollable/scrollable-horizontal.css'); 
cssInclude('http://www.galea.com.pl/css/scrollable/scrollable-buttons.css'); 

$(function() {
        $(".scrollable").scrollable({circular: true}).autoscroll({ autoplay: true, interval: 2000}).click(function() {
	
});
});


    $(function() {
        $(".scrollable2").scrollable({ circular: true });
    });


$(function() {
   $('div.fb_box').hover( function() {  $('div.fb_box').stop().animate({ right: 0}, 900);  }, function(){   $('div.fb_box').stop().animate({ right: -302}, 900);  } );
})

jsInclude('http://www.galea.com.pl/css/jq.cookie.js'); 

function doToggle(id)
{
    if (document.getElementById(id)!=null) {
        var objId = document.getElementById(id);
        
        if (objId.style.display=='none')
        {
            $("#"+id).show(350);
            DodajDoLGM(id);
        }
        else
        {
            $("#"+id).hide(350);					
        }

    }

}

function DodajDoLGM(id) {
    $.cookie('cLGM', id, { expires: 7 });			
}

$(document).ready(function(){	

try {

    var mydata = $.cookie("cLGM").split(",");
                            
    for(var Pozycja in mydata){
      var KOSZ = mydata[Pozycja];
      if (KOSZ!==null) {
          $("#"+KOSZ).show(800);
      }
    }


      } catch(err) {}


$(".categories").hide();
$(".menu").css("cursor", "pointer");
$(".menu").click(function() {
     $(this).children().next().toggle();
})

        

try {
    $("#Grupa"+$("#skroter a").attr("id").split('-')[1]).next().show("slow");
} catch(err) {}

});	

