// JavaScript Document



$(document).ready(function(){		
	
	
	if ( $('#tabs').length > 0 ) {
		
		$('#tabs').tabs();
		
	};
	
	if ( $('.Accordian').length > 0 ) {
	
		$('.Accordian').accordion({ 
			collapsible: true, 
			autoHeight: false 
		});
	
	};
	

	$(".More").click(function(){
		$(this).parents(".TeamContent").find(".content").slideDown(1000);
		$(this).hide();			  
	});
	
	$(".Hide").click(function(){
		$(this).parents(".TeamContent").find(".content").slideUp(1000);
		$(this).parents(".TeamContent").find(".More").show();
	});
	
	$( "#cr-accordion" ).accordion({autoHeight: false,navigation: true});
	
});
// Shadowbox 

Shadowbox.init({language: 'en', players:  ['iframe']});

// Banner 

var flashvars = {showRegistration: "false", showLogo: "false", dataFile: "/monoslideshowXML.php"};
var params = {allowscriptaccess: "sameDomain", allowfullscreen: "false", allownetworking: "all"};
var attributes = {id: "monoslideshow", name: "monoslideshow", bgcolor: "FFFFFF"};
swfobject.embedSWF("/Flash/monoslideshow.swf", "flashContent", "960", "282", "10", false, flashvars, params, attributes);

// sIFR

/*var bliss = {
      src: '/Flash/bliss2bold.swf'
      ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

sIFR.activate(bliss);

sIFR.replace(bliss, {
      selector: 'h1, h2, .SubNavText'
      ,css: [
        '.sIFR-root { text-align: left; font-weight: bold; font-size:18px;  }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #CCCCCC; }'
      ]
	  ,wmode: 'transparent'
});*/

///////////////////
