$(document).ready(
    function()
    {
        showJScontent();
        enableClueTip();
			
        $('table.zebra tbody tr:odd').addClass('odd');

		/** Attepmt 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 ) )
        {
            cornerSettings = {
                tl: { radius: 5 },
                tr: { radius: 5 },
                bl: { radius: 5 },
                br: { radius: 5 },
                antiAlias: true,
                autoPad: false,
                validTags: ["div"]
            }
            $.getScript( "/assets/palringo/js/jquery/jquery.curvycorners-2.0.4.min.js", function() {
                $('.b, .c').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:"270", iframe:true});
        }
    }
);