$(document).ready(
    function(){
		showJScontent();
		enableClueTip();
		
		$('table.zebra tbody tr:odd').addClass('odd');
		
		/** Attempt to get a radius for the top-left border, if we can't, use the JS thing **/
		/*
		if (($('.b, .c').css('border-radius-topleft') == undefined) &&
		($('.b, .c').css('-moz-border-radius-topleft') == undefined) &&
		($('.b, .c').css('-webkit-border-top-left-radius') == undefined)) {
		*/
		
		if ($.browser.msie)
		{
			cornerSettings = {
				tl: {
					radius: 5
				},
				tr: {
					radius: 5
				},
				bl: {
					radius: 5
				},
				br: {
					radius: 5
				},
				antiAlias: true,
				autoPad: false,
				validTags: ["div"]
			}

			$('.b, .c, .d').corner(cornerSettings);
		}
		
		if ($('#userMsg')) {
			setTimeout(function(){
				$('#userMsg').slideUp(750, function(){
					$('#userMsg').remove()
				});
			}, 10000);
		}
		
		$('a[rel=external]').attr('target', '_blank');
		if ($("a[rel='summer-snaps']").size() > 0) {
			$("a[rel='summer-snaps']").colorbox({
				transition: 'elastic',
				speed: 500,
				overlayClose: true,
				opacity: 0.70,
				width: "500",
				height: "600",
				iframe: true
			});
		}
		
		if ($("a[rel='gallery']").size() > 0) {
			$("a[rel='gallery']").colorbox({
				transition: 'elastic',
				speed: 500,
				overlayClose: true,
				opacity: 0.70,
				width: "500",
				height: "600",
				iframe: true
			});
		}
		
		if ($('a.lightbox-language').size() > 0) {
			$('a.lightbox-language').colorbox({
				transition: 'elastic',
				speed: 500,
				overlayClose: true,
				opacity: 0.70,
				width: "630",
				height: "350",
				iframe: true
			});
		}
		
		if ($('#imgSlider').size() > 0) {
			$('#imgSlider').cycle({
				fx: 'fade',
				speed: 'fast',
				timeout: 0,
				next: '#next',
				prev: '#prev'
			});
		}
	}
);