// cycle slideshow
$(document).ready(function() {
    $('#fadeshow1').cycle({
		fx:           'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout:       6000,  // milliseconds between slide transitions (0 to disable auto advance) 
        speed:         2000,  // speed of the transition (any valid fx speed value) 
        next:          null,  // id of element to use as click trigger for next slide 
        prev:          null,  // id of element to use as click trigger for previous slide 
        before:        null,  // transition callback (scope set to element to be shown) 
        after:         null,  // transition callback (scope set to element that was shown) 
        height:       'auto', // container height 
        sync:          1,     // true if in/out transitions should occur simultaneously 
        fit:           0,     // force slides to fit container 
        pause:         0,     // true to enable "pause on hover" 
        delay:         0,     // additional delay (in ms) for first transition (hint: can be negative) 
        slideExpr:     null   // expression for selecting slides (if something other than all children is required) 
    });
});

// activate the Fancybox popup for any fancy images 
$(document).ready(function() {
	$("a.fancyimage").fancybox();
});

// activate the Fancybox popup for any inline html 
$(document).ready(function() {
	$("a.inlinefancybox").fancybox({
	'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'autoDimensions' : false,
	'width'     	:	500,
	'height'		:	350
	});
});

// activate the Fancybox popup for any YouTube video links
$(document).ready(function() {
	$("a.youtube").fancybox({
	'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'overlayShow'	:	false,
	'modal'     	:	false,
	'width'     	:	750,
	'height'		:	550,
	'scrolling'     :   'no'
	});
});

// round corners
$(document).ready(function(){
	$(".round-box").corner("cc:#fff 30px");
});	

// activate Fancybox to popup the mp3 player
$(document).ready(function() {
	$("a.mp3fancybox").fancybox({
	'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'overlayShow'	:	false,
	'modal'     	:	false,
	'width'     	:	300,
	'height'		:	60,
	'padding'       :   0,
	'margin'        :   0,
	'srolling'      :   'none',
	'type'          :   'iframe'
	});
});

// Fancybox pdf loader 
$(document).ready(function() {
	$("a.pdfpopup").fancybox({
	'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'overlayShow'	:	false,
	'modal'     	:	false,
	'width'     	:	800,
	'height'		:	600
	});
});

//$(document).ready(function() {
//	$("a[href$='verseoftheday.com/']").hide();
//	$('a[href*="verseoftheday"]').attr('href','javascript:void(0)').attr('target','');
//});

// supersleight fix for ie6/7 png transparency - doesn't work when you zoom in/out
//$(document).ready(function() {
// $('#sidebar').supersleight({shim: '/images/spacer.gif'});
//});

