// jQueryCycle
$('#feature_carousel').cycle({ 
    fx:     'scrollHorz', 
    speed:   500, 
    timeout: 4000, 
    pager:  '#nav'
});
$(document).ready(function() {
     $(".navpause").click(function() {
          $('#feature_carousel').cycle('toggle');
          $(".navpause a").toggle();
     });
});



// JCaption

$(document).ready(function(){
	$('#post .content img').jcaption({
		autoWidth: true
	});
	$('#post .pagecontent img').jcaption({
		autoWidth: true
	});
	$('#post .img-wrapper img').jcaption({
		copyStyle: true,
		animate: true,
		show: {height: "show"},
		hide: {height: "hide"}
	});


});

// Colorbox definitions


$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$(".leaduserform").colorbox({iframe:true, innerWidth:500, innerHeight:780, opacity:0.6});
				$(".followusform").colorbox({iframe:true, innerWidth:640, innerHeight:700, opacity:0.6, title:false});
				$(".newsletterhtml").colorbox({iframe:true, innerWidth:640, innerHeight:500, opacity:0.6, title:false});
				$(".livewebcast").colorbox({iframe:true, innerWidth:500, innerHeight:390, opacity:0.6, title:false});
				$(".enlargeimage").colorbox({transition:'fade', opacity:0.6, title:false});
				$(".feedburnerform").colorbox({iframe:true, innerWidth:580, innerHeight:480, opacity:0.6, title:false});
				$(".manualpreview").colorbox({iframe:true, innerWidth:600, innerHeight:425, opacity:0.6, title:false});
				$("a[rel='colorboxnormal']").colorbox({transition:"fade", opacity:0.6});
				
			});






