
function WindowPrint(){ // PRINT FUNCTION
	window.print();
}

$(document).ready(function(){ // INCREASE - DECREASE FONT SIZE
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
  $(".resetFont").click(function(){
  $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 9);
    var newFontSize = currentFontSizeNum*1.2;
	$('html').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 9);
    var newFontSize = currentFontSizeNum*0.8;
	$('html').css('font-size', newFontSize);
	return false;
  });
}); 

$(document).ready(function() {  // ROLL OVER EFFECT TABLE ON MANAGEMENT PAGE
	$('#photos div').mouseover(function() {
		 $(this).addClass("overCell"); 
		 /*$('#photos div img').hide();*/
    });
	$('#photos div').mouseout(function() {
		 $(this).removeClass("overCell");	
		 $('#photos div img').show();
    });
	$('#photos div').click(function() {
		 $(this).addClass("activeCell");
		 $(this).siblings().removeClass("activeCell"); 
    });
});

$(document).ready(function() { // HIDE AND SHOW BIOGRAPHIES
    var hash = window.location.hash;
    
    (!hash) ?  
        hideAllExcept('#' + $('#bioToggleThis > div:first').attr('id')) 
            : hideAllExcept(window.location.hash);
    $('#photos div').click(function() {
        var bioInfo = "#bio-" + $(this).attr('id');
        
        hideAllExcept(bioInfo);
        return false; 
    });
	
	function hideAllExcept(el) {
	    $(el).removeClass('hide').siblings().addClass('hide');  
	}
});

$(document).ready(function() { // HIDE AND SHOW VIDEOS
    var hash = window.location.hash;
    
    (!hash) ?  
        hideAllExcept('#' + $('#videoToggleThis > div:first').attr('id')) 
            : hideAllExcept(window.location.hash);
    $('#interviews div').click(function() {
        var videoInfo = "#video-" + $(this).attr('id');
        
        hideAllExcept(videoInfo);
        return false; 
    });
	
	function hideAllExcept(el) {
	    $(el).removeClass('hide').siblings().addClass('hide');  
	}
});

/* INTERVIEWS */
$(document).ready(function() {  // ROLL OVER EFFECT TABLE
	$('#interviews div').mouseover(function() {
		 $(this).addClass("overCell");
    });
	$('#interviews div').mouseout(function() {
		 $(this).removeClass("overCell");
    });
	$('#interviews div').click(function() {
		 $(this).addClass("activeCell");
		 $(this).siblings().removeClass("activeCell"); 
    });
});

$(document).ready(function() { // HIDE AND SHOW COUNTRY INFORMATION
    var hash = window.location.hash;

    (!hash) ?  
        CountryhideAllExcept('#' + $('#countryToggleThis > div:first').attr('id')) 
            : CountryhideAllExcept("#country-" + hash.substring(1));
    $('a.countryToggle').click(function() {	   
		var countryInfo = "#country-" + $(this).attr('href');
		CountryhideAllExcept(countryInfo);
        return false; 
    });
    $('a.countryToggleLink').click(function() {	
		var countryInfo = "#country-" + $(this).attr('href');
		CountryhideAllExcept(countryInfo);
        return false; 
    });
    $('area.countryToggleMap').click(function() {							  
        var countryInfo = "#country-" + $(this).attr('href');   
        CountryhideAllExcept(countryInfo);
        return false; 
    });
	function CountryhideAllExcept(el) {
	    $(el).removeClass('hide').siblings().addClass('hide');  
	}
});

$(document).ready(function(){ // IMAGE LIBRARY
	$('#tabs div').hide();
	$('#tabs div:first').show();
	$('#tabs ul li:first').addClass('active');
	$('#tabs ul li a').click(function(){ 
	$('#tabs ul li').removeClass('active');
	$(this).parent().addClass('active'); 
	var currentTab = $(this).attr('href'); 
	$('#tabs div').hide();
	$(currentTab).show();
	return false;
	});
});



SSS_faq = { // HIDE AND SHOW FAQS
	init : function() {
		//$('div.faq .answer').not(':first').slideToggle('fast');
		$('div.faq-on .answer').show();
		$('div.faq-on .question').addClass('active');
		$('div.faq-on .question').click(function() { SSS_faq.toggle(this) });		
		$('div.faq-off .answer').slideToggle('fast');
		$('div.faq-off .question').click(function() { SSS_faq.toggle(this) });
		$('div.benefit .answer').slideToggle('fast');
		$('div.benefit .question').click(function() { SSS_faq.toggle(this) });
	},
	
	toggle : function(el) {
		$(el).toggleClass('active');
		$(el).siblings('.answer').slideToggle('fast');
	}
}

$(function() { 
	SSS_faq.init();
});


