/**
 * flag icons
 */

function languageNav(){
   
   var activeButtonStrg = activeLanguage.toUpperCase() + "_1";
	jQuery("#languageNav img").hover(function(){
		if (this.src.indexOf(activeButtonStrg) == -1)
			this.src = this.src.replace("_1", "_2");
		setActiveLanguageFlag();	
    }, function(){
        if (this.src.indexOf(activeButtonStrg) == -1)
			this.src = this.src.replace("_2", "_1");
		setActiveLanguageFlag();	
    });
	setActiveLanguageFlag();	
	
}

function setActiveLanguageFlag() {
	// set active icon
    // active_language is set in template via TS
	jQuery("#languageNav img").each(function () {
		this.src = this.src.replace(activeLanguage.toUpperCase() + "_1", activeLanguage.toUpperCase() + "_2");
		});
}

