$(document).ready(function(){
$('#homeslider').bxSlider({
mode: 'fade',   
controls: false,
pager: false, 
auto: true,                        // true, false - make slideshow change automatically
autoDirection: 'next',
pause: 7000,

});


$("span.addinfo").animate({opacity: 0.4});
$("li.insetType a.active span").animate({opacity: 1});
$("li.insetType a").hover(
function(){$(this).children("span.addinfo").fadeTo('fast', 1);},
function(){
if (!$(this).hasClass('active'))
$(this).children("span.addinfo").fadeTo('fast', 0.4);
}
);




$(".ebspopup").colorbox({transition:"fade"});
$(".ebsiframe").colorbox({iframe:true, innerWidth:340, innerHeight:480});
$("#ebsnews").colorbox({iframe:true, innerWidth:800, innerHeight:600});
$('#btnClose').click(function () {
$.fn.colorbox.close();
return false;
});





$("img.homelogo").hover(
function() {
$(this).stop().animate({"opacity": "0.5"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});

});

