$(document).ready(function() {

    $('.thumb li, .movie li').mouseover(function() {
        text = $(this).find('span').html();
        
         $.cursorMessage(text, {hideTimeout:0});

    })

    $('.thumb li, .movie li').mouseout(function() {
            $.cursorMessage($.hideCursorMessage);
    })

    $('.galleryInner a').lightbox('title','yy');

    $('#tabs').each(function() {

       tab = [];
       tr = [];
       $('li', this).each(function() {
           attr = $(this).attr('class');
           tt = attr.split("_");
           kr = tt[0] + '_active';
           if(attr == kr) {
                $(this).css('opacity', 1);
                tr[0] = attr;
           } else {
               $(this).css('opacity', 0.70);
           }
       })
       
       $('li', this).mouseover(function() {
           attr = $(this).attr('class');
           tab[0] = attr;
           klas = attr + '_active';
           tt = attr.split("_");
           if(attr == tt[0]) {
                $(this).removeClass(attr).fadeTo("50", 1);
                $(this).addClass(klas).fadeTo("50", 1);
           }
       });
       
       $('li', this).mouseout(function() {
           attr = $(this).attr('class');
           t = tab[0];
           tt = t.split("_");
           kr = tt[0] + '_active';
           if(tr[0] == kr) {

           } else {
                $(this).removeClass(attr).fadeTo("50", 0.70);
                $(this).addClass(tab[0]).fadeTo("50", 0.70);
           }
       });
    });
});

swfobject.embedSWF("http://starevents.pl/templates/defaults/flash/glow.swf", "Flash_GLOW", "300", "83", "9.0.0");
swfobject.embedSWF("http://starevents.pl/templates/defaults/flash/baner.swf", "Flash_BANERM_events", "556", "240", "9.0.0");
swfobject.embedSWF("http://starevents.pl/templates/defaults/flash/baner2.swf", "Flash_BANERM_promotion", "556", "240", "9.0.0");
swfobject.embedSWF("http://starevents.pl/templates/defaults/flash/baner3.swf", "Flash_BANERM_gifts", "556", "240", "9.0.0");
