- Video não existe
if(!$_COOKIE['current_style']) $_COOKIE['current_style'] = 'grid_view'; { } $('.user_login').hide(); $('#user_login').toggle( function() { $('.user_login').slideDown('normal'); }, function() { $('.user_login').slideUp('normal'); } ); $("#searchSelectWrapper ul li a").bind({ click : function(event) { event.preventDefault(); $("#searchType").val($(this).attr('id')); $('#selectedText').text($(this).text()); $(this).parent().parent().children().removeClass('selected'); $(this).parent().addClass('selected') $('#searchSelectWrapper').hide(); } }); /*$('.tabs li').click( function() { $('.tabs li').removeClass('selected') $(this).addClass('selected'); } );*/ $('.tabs li').each(function(index, value){ $(value).click(function(){ { $(this).parent().children().filter('.selected').removeClass('selected'); $(this).addClass('selected'); } }) }); $('#lang_selector').click(function(){ //do redirection }); $('#lang_selector').change(function(){ var optionSelectedValue = $('#lang_selector option:selected').val(); if(optionSelectedValue) window.location = "?set_site_lang="+optionSelectedValue; }); }); function ToggleView(obj) { var obj = $(obj), obj_id = obj.attr('id'), parent = obj.parent().attr('id'), target = $("#"+parent).next().attr('id'); //alert('#'+parent+' #'+target+' .grid_view'); if(obj_id == "grid") { $('#'+parent+' + #'+target+' .grid_view').removeClass('list_view'); $.cookie("current_style","grid_view") $('.vid_sp').hide(); $('.truncatedtitle').hide(); $('.fulltitle').show(); } else { $('#'+parent+' + #'+target+' .grid_view').addClass('list_view'); $.cookie("current_style","list_view") $('.vid_sp').show(); $('.truncatedtitle').show(); $('.fulltitle').hide(); } }