$(document).ready(
			
				  
	function() {
		
		$('#slideshow').cycle({ 
			fx:     'fade', 
			speed:  'slow', 
			timeout: 8000,  
			next:   'a#next'
		});
		
		
		// Initialize jquery.media.js
		$('a.media').media( { width: 300, height: 24 } );

		// 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");
		});
	
		// Initialize Lightbox
		$(".lightbox").lightbox();
		
		$(".facebook a").mouseenter(function() { $('#facebookbubble').show("fast"); });
		$(".facebook a").mouseleave(function() { $('#facebookbubble').hide("fast"); });
		
		// Initialize the JasonGraphixJAMZ MP3 player
		var xspfButtonPlayerUrl = "/flash/musicplayer.swf";
		$("a.mp3button").each(function(){
			var url = xspfButtonPlayerUrl + "?song_url="+escape($(this).attr("href"))+"&song_title="+escape($(this).text());
			code_str = '<span><object class="mp3button" type="application/x-shockwave-flash" ';
			code_str += 'data="'+url+'" width="17" height="17">';
			code_str += '<param name="movie" value="'+url+'" /><param name="wmode" value="transparent" /></object></span>';
			$(this).replaceWith(code_str);
		});
		
		// 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}));

	}
	
	
);

