// Start this method at body onInit
function init() {

	// If method at parent not available...show button, else, do not show
	if(parent.isHidden == null) {
		// alert("null method");
		document.getElementById("ninoLauncher").style.visibility = "visible";
	} else {
		if(parent.isHidden() == true) {
			// alert("showing button");
			document.getElementById("ninoLauncher").style.visibility = "visible";
		} else {
			// alert("removing button");
			// Hide buttons if Nino is not hidden
			document.getElementById("ninoLauncher").style.visibility = "hidden";
		}
    }
}

// Redirects to Nino showing current webpage
function launchNino() {

	// Only launch if not present
	if(parent.showNino == null) {
		
		// Production
		window.location = "http://www.isoco.com/?showUrl="+location.href;
		
	} else {
		// Show nino if parent exists
		parent.showNino();
	}
}

//Redirects to Nino showing current webpage
function launchNino(language) {

	// Only launch if not present
	if(parent.showNinoLang == null) {
		
		// Production
		window.location = "http://www.isoco.com/?showUrl="+location.href+"&lang="+language;
		
	} else {
		// Show nino if parent exists
		parent.showNinoLang(language);
	}
}