//****************************************************************
// popup FYI page
//****************************************************************
$(document).ready(function(){
	
	$(".FYI_button, .FYI_button_large").bind("click", function(){
		if ( !this.savedHref ) {
			this.savedHref = this.href + " .fyiPopup";
			this.href = "#";
		}
		popup( $('#fyiPopup'), this.savedHref);
		
	});
	
});


//****************************************************************
// popup
//****************************************************************
function popup(holder, contentpath) {
	try {
		$(holder).load(contentpath).show(); 
		}
	catch (error) {
		window.status = "popup: " + error.description;
		}
	}
	
	
//****************************************************************
// closePopup
//****************************************************************
function closePopup( id ) {
	try {
		$(id).hide();
		}
	catch (error) {
		window.status = "closePopup: " + error.description;
		}
	}
		

	
//****************************************************************
// swapVocabularyLanguage
//****************************************************************
function swapVocabularyLanguage( lang ) {
	try {
	
		if (lang=="en") {
			$("#enTabContent").attr({className: "langContentSelected"});
			$("#spTabContent").attr({className: "langContent"});
			$("#enTab").attr({className: "langTabSelected"});
			$("#spTab").attr({className: "langTab"});
			}
		
		if (lang=="sp") {
			$("#enTabContent").attr({className: "langContent"});
			$("#spTabContent").attr({className: "langContentSelected"});
			$("#enTab").attr({className: "langTab"});
			$("#spTab").attr({className: "langTabSelected"});
			}
		
		}
	catch (error) {
		window.status = "swapVocabularyLanguage: " + error.description;
		}
	}


