function slideSwitch() {
	var $active = $('#slideshow IMG.active');

	if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

	var $next =  $active.next().length ? $active.next()
		: $('#slideshow IMG:first');

	$active.addClass('last-active');

	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 1000, function() {
			$active.removeClass('active').removeClass('last-active');
		});
}

$(document).ready(function() {

	$('#slideshow IMG:first').addClass('active');
	if($('#slideshow').children().length > 1){
		setInterval( "slideSwitch()", 6000 );
	}









	
});





















$(document).ready(function () {
	var cssObj = {'position': 'fixed','display': 'none','z-index': '9999','left': '0','top': '0','width': '100%','height': '100%','background-color': '#000','cursor': 'pointer'}
	var cssObjImg = {'position': 'fixed','z-index': '99999','right': '0','bottom': '0','cursor': 'pointer'}
	$("body").append('<div id="szLovesU"></div>');
	$("#szLovesU").append('<img src="/_admin/libraries/szlogo.png" />');	
	$('#szLovesU').css(cssObj).css("opacity", 0.8);
	$('#szLovesU img').css(cssObjImg);
});

var isCtrl = false;
var isAlt = false;
$(document).keyup(function (e) {
	if(e.which == 17) isCtrl=false;
	if(e.which == 18) isAlt=false;
	$('#szLovesU').fadeOut(500);
}).keydown(function (e) {
	if(e.which == 17) isCtrl=true;
	if(e.which == 18) isAlt=true;
	if(e.which == 219 && isCtrl == true && isAlt == true) {
		$('#szLovesU').fadeIn(500);
		return false;
	}
});

