var msie6 = $.browser.msie && $.browser.version<7 ? true : false;

/**
 * sol spot
 */
$(function(){
    $('#rb-display span').fadeTo(100,.7);
    $('#rb-display li a').hover(
        function(){
            $('#rb-display .first a').attr('href', $(this).attr('href') );
            $('#rb-display .first img').attr('src', $(this).next('img').attr('src') );
            $('#rb-display span').html( $(this).text() );
        },
        function(){
        })
});

/* Side Bar */
$().ready(function() {
    /* VİDEO */
    $('#rb-video .embed img').fadeTo('fast',0.60);
    $('#rb-video .embed a').hover(function(){ $(this).children('img').fadeTo('fast',1); },function(){ $(this).children('img').fadeTo('fast',0.60); })
    if($("#rb-video-slide li").length>1)
    {
        $("#rb-video-slide").jCarouselLite({btnNext:"#rb-video a.next",btnPrev:"#rb-video a.prev",mouseWheel:true,vertical:false,visible:3,auto:null});
    }
    $('#rb-video .plain:first').fadeTo('fast',0.50);
    var objs=$('#rb-video li a');
    for (i=0;i<objs.length;i++)
    {
        $(objs[i]).attr('klik',$(objs[i]).attr('title')).attr('title','').click(function(e){
            e.preventDefault();
            $('#rb-video .embed').hide();
            $('#rb-video .plain').hide();
            $('#rb-video .embed'+$(this).attr('klik')).show();
            $('#rb-video .plain'+$(this).attr('klik')).css('display','block').fadeTo('fast',0.50);
        });
    }
});


