var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('.menu-nav li').hover(
function() {
$j(this).addClass("active");
$j(this).find('> .ulwrapper').stop(false, true).fadeIn();
},
function() {
$j(this).removeClass("active");
$j(this).find('div').stop(false, true).fadeOut('fast');
}
);
$j('.ulwrapper').hover(
function() {
$j('.parent').addClass("active_tab");
},
function() {
$j('.parent').removeClass("active_tab");
}
);
$j('.ulwrapper .ulwrapper').hover(
function() {
$j('.ulwrapper .parent').addClass("active_tab2");
},
function() {
$j('.ulwrapper .parent').removeClass("active_tab2");
}
);
});
preloadImages([
'templates/theme595/images/button1_hover.png',
'templates/theme595/images/read_more_hover.gif',
'templates/theme595/images/slide_b_hover.png'
]);
$j(window).load(function(){
$j.fn.cycle.defaults.timeout = 6000;
$j(function() {
// run the code in the markup!
$j('table pre code').not('#skip,#skip2').each(function() {
eval($j(this).text());
});
$j('#s4').before('<div id="nav" class="nav">').cycle({
fx: 'fade',
speed: 'slow',
autostopCount: 4,
autostop: 4,
timeout: 6000,
pager: '#nav'
});
});
});
$j(window).load(function(){
$j('#carousel1').bxCarousel({
display_num: 5,
move: 2,
prev_image: 'templates/theme595/images/icon_arrow_left.gif',
next_image: 'templates/theme595/images/icon_arrow_right.gif',
margin: 7
});
});
