﻿window.log=function(){log.history=log.history||[];log.history.push(arguments);this.console&&console.log(Array.prototype.slice.call(arguments))};$(document).ready(function(){$("#search-box input").val("").focus(function(){$(this).removeClass("empty")}).blur(function(){jQuery.trim($(this).val()).length==0&&$(this).addClass("empty")});$(".right-block li").bind("mouseenter",function(){$(this).addClass("hover")}).bind("mouseleave",function(){$(this).removeClass("hover")});$(".expander .top").live("click",function(){$(this).closest("li").attr("title","click for more details");$(this).siblings(".bottom").slideToggle("fast")})});function trim(a){return a==undefined?"":a.replace(/^\s*/,"").replace(/\s*$/,"")}function switchCarousel(a){$('.carousel-container .image-box[rel != "'+a+'"]').fadeOut(function(){$(".carousel-container .image-box[rel='"+a+"']").fadeIn()});$(".carousel-btn").removeClass("active");$(".carousel-btn[rel='"+a+"']").addClass("active")}
