// JavaScript Document

function launchr() {
//	$(document).ready(function() {
//	});		

	<!--
	var browserName=navigator.appName; 
	//alert(browserName);
	//-->
				   

	// swfobject flash embed
		var flashvars = {};
		var params = {};
		var attributes = {};
		params.allowscriptaccess = "always"; 
//		swfobject.embedSWF("mp3player.swf", "mediabox", "600", "16", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		swfobject.embedSWF("http://www.builtbycruzat.com/bay/psuno/mp3player.swf", "mediabox", "600", "16", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

	// tabbed content
		var tabs;
		 // Address handler
		$.address.init(function(event) {
		   // Tabs setup
		   	if(browserName!="Microsoft Internet Explorer")	{
				tabs = $('#swapbox').tabs(	{ fx: { height: 'show', duration: 'slow' }}).css('text-indent', '0');
			}	else {
				tabs = $('#swapbox').tabs().css('text-indent', '0');
			}
				// Content filter
				//load: function(event, ui) {
				   // $(ui.panel).html($('#tabs div:first', ui.panel).html());
				//},
				//selected: $('#tabs ul:first a').index($('a[rel=address:' + event.value + ']'))
									  
//             }).css('display', 'block'); }
		}).change(function(event) {
			var selection = $('a[rel=address:' + event.value + ']');
			tabs.tabs('select', selection.attr('href'));
		   // $.address.title($.address.title().split(' | ')[0] + ' | ' + selection.text());
		});
		// Graceful FOUC
		document.write('<style type="text/css"> #swapbox { text-indent:-999999; } </style>');
//		document.write('<style type="text/css"> #swapbox { display:none; } </style>');


	// photo gallery
		if(browserName!="Microsoft Internet Explorer")	{	//alert('not the shittay');	
			var gallery = $('#pics').galleriffic('#thumbs', {
				delay:                  5000, // in milliseconds
				numThumbs:              24, // The number of thumbnails to show page
				preloadAhead:           40, // Set to -1 to preload all images
				enableTopPager:         false,
				enableBottomPager:      false,
				imageContainerSel:      '#slideshow', // The CSS selector for the element within which the main slideshow image should be rendered
				controlsContainerSel:   '#controls', // The CSS selector for the element within which the slideshow controls should be rendered
				captionContainerSel:    '#caption', // The CSS selector for the element within which the captions should be rendered
				loadingContainerSel:    '', // The CSS selector for the element within which should be shown when an image is loading
				renderSSControls:       true, // Specifies whether the slideshow's Play and Pause links should be rendered
				renderNavControls:      true, // Specifies whether the slideshow's Next and Previous links should be rendered
				playLinkText:           'Play',
				pauseLinkText:          'Pause',
				prevLinkText:           'Previous',
				nextLinkText:           'Next',
				nextPageLinkText:       'Next &rsaquo;',
				prevPageLinkText:       '&lsaquo; Prev',
				enableHistory:          false, // Specifies whether the url's hash and the browser's history cache should update when the current slideshow image changes 
				autoStart:              false, // Specifies whether the slideshow should be playing or paused when the page first loads 
				onChange:               undefined, // accepts a delegate like such: function(prevIndex, nextIndex) { ... }
				onTransitionOut:        undefined, // accepts a delegate like such: function(callback) { ... }
				onTransitionIn:         undefined, // accepts a delegate like such: function() { ... }
				onPageTransitionOut:    undefined, // accepts a delegate like such: function(callback) { ... }
				onPageTransitionIn:     undefined  // accepts a delegate like such: function() { ... }
			});
		} else {
			$('.thumbs').css('display', 'block');
			$('#caption').css('display', 'none');	
			$('#slideshow').css('display', 'none');		//	
			$('#controls').css('display', 'none');			
		}/**/

	//Twitter Activation
		getTwitters('twert', { 
			id: 'psalmone', 
			count: 1, 
			enableLinks: true, 
			ignoreReplies: true, 
			clearContents: true,
			template: '"%text%" <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>'
		});	
		
	//Flash Pop-Ups
		function bringList() {
			alert('bringList seen');
		}
		function sendList() {
			
		}
		function bringInfo() {
			alert('bringInfo seen');
			
		}
		function sendList() {
			
		}
		
    function callJavascript(str) {
    alert(str)
    return "ExternalInterface is a new Flash Player 8 API."
    }
		
		
		
}