$(document).ready(
	function() {

		// Open links with rel="external" in new window - like ye ole' target="_blank"
		$('a[rel="external"]').click(function() {window.open( $(this).attr('href') ); return false;});


		// Zebra-stripe data tables
		$("table.data tbody").each(function() {
			$(this).removeClass("odd even");
			$("tr:odd", this).addClass("odd");
			$("tr:even", this).addClass("even");
		});

        var ddlValue = $("select.categorydropdown option:selected").val();
        if (ddlValue == "multiple") {
            $('#selectMultipleBox').show();
        }

        $('select.categorydropdown').change(function() {
            var str = $("select.categorydropdown option:selected").val();

            if (str == "multiple") {
                $('#selectMultipleBox').show('slow');
            } else {
                setTimeout('__doPostBack(\'cmtMain$ctl00$ddlEventCategories\',\'\')', 0);
            }
        });

		// Initialize Lightbox
		//$(".lightbox").lightbox();


		// sIFR Replace Content Headlines
		//sIFR.replaceElement(named({sSelector:"h2", sFlashSrc:"/flash/archerlight.swf", sColor:"#993300", sLinkColor:"#993300", sBgColor:"#993300", sHoverColor:"#993300", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0}));

	}
);

