$(function(){
$('.thumb').click(function() {
var image = $(this).attr('rel');
$('#big-image').hide();
$('#big-image').fadeIn('slow');
$('#big-image').html('
');
return false;
});
$("#slideshow div.active").css({ opacity: 0.0 });
$('#slideshow img').imagesLoaded( function( $images ) {
$("#slideshow div.active").animate({opacity: 1.0});
});
function slideSwitch(who) {
var active = $('#slideshow div.active');
//if ( $active.length == 0 ) $active = $('#slideshow div:last');
//var next = active.next().length ? active.next() : $('#slideshow div:first');
var next = $('#' + who);
active.addClass('last-active');
next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 400, function() {
active.removeClass('active last-active');
});
}
$("#mega-1 li a").mouseover(function() {
var who = $(this).text();
slideSwitch(who);
});
$("#submenu-page li a").mouseover(function() {
var who = $(this).text();
slideSwitch(who);
});
$("#submenu-page li a").wrapInner('');
// $('#submenu').popMenu();
$('#mega-1').dcVerticalMegaMenu({
direction: 'left'
});
var cssObj = {
color: "#80AE18",
fontWeight: "normal",
fontSize: "125%",
lineHeight: "1.4"
};
$(".entrybody p:first").css(cssObj);
$('a.back').click(function(){
parent.history.back();
return false;
});
});