function show(url) 
{ 
    new_win = window.open(url,'_blank','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); 
}

$(window).load(function() {
	if (ie == 1) {
	    $("div#slogan").corner();
	    $("div#menu").corner();
	    $("div#searchbox").corner();
	    $("div#tweetbox").corner();
	    $("h2.contentheading").corner();
	    $("div.frontpagebox").corner();
	}

	$("div#slider").each(function (i){
		$(this).children()[0].addClass("active");
		$(this).append('<div class="nivo-directionNav"><a class="nivo-prevNav"></a><a class="nivo-nextNav"></a></div>');
	    });

	$("div#slider a.nivo-nextNav").live( 'click', function() {
		var slider = $(this).parent().parent();
		var active = slider.children('img.active');
		if (active.next('img').length > 0) {
		    active.removeClass('active'); 
		    active.next('img').addClass('active');
		}
	    });

	$("div#slider a.nivo-prevNav").live( 'click', function() {
		var slider = $(this).parent().parent();
		var active = slider.children('img.active');
		if (active.prev('img').length > 0) {
		    active.removeClass('active');
		    active.prev('img').addClass('active');
		}
	    });


	$("div#splashpicture").corner('15px');
	$("div#sidepicture").corner('15px');
	$("div.roundedpicture").corner('15px');

	$('ul.menu li ul').hide();
        $('ul.menu li ul li.current-menu-item').parent().show();
        $('ul.menu li.current-menu-item ul').slideDown();

	$('div#tweetbox').hover(function(){$(this).animate({backgroundColor:'#ccc'},100);},
				function(){$(this).animate({backgroundColor:'#ddd'},100);});

	$('div.frontpagebox').hover(function(){$(this).animate({backgroundColor:'#ccc'},100);},
				    function(){$(this).animate({backgroundColor:'#ddd'},100);});

	$('div#searchbox').hover(function(){$(this).animate({backgroundColor:'#ccc'},100);},
				 function(){$(this).animate({backgroundColor:'#ddd'},100);});

	loadCalendar('https://www.google.com/calendar/feeds/continuumchurch.com_m4plivnqnh78qnltkbcfjav4io%40group.calendar.google.com/public/full');
    });
