// JavaScript Document
function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
	f = getFlashMovieObject(objStr);
	if(f!=null && f!=undefined){
		if(cmdName=="Play"){
			eval('f.' + cmdName + '();');
		} else {	
			eval('f.' + cmdName + '(' + frameNum + ');');
		}
	}
}

function getFlashMovieObject(movieName){
	if (window.document[movieName]){
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1){
		if (document.embeds && document.embeds[movieName]){
			return document.embeds[movieName];
		}
	}
	else{
		return document.getElementById(movieName);
	}
}

function chg(pietro){
	var movie = window.document.schemat;
	MM_controlShockwave('schemat','','SetVariable','"pnr","'+pietro+'"');
	MM_controlShockwave('schemat','','GotoFrame','20');
	MM_controlShockwave('schemat','','Play','0');

	var rows = window.document.getElementsByTagName("tr");  
	for(i = 0; i < rows.length; i++){          
		rows[i].className = "";
	}
	window.document.getElementById("k"+pietro).className = "selected";
}


function chg2(pietro){
	var movie = window.document.schemat;
	MM_controlShockwave('schemat','','SetVariable','"pnr","'+pietro+'"');
	MM_controlShockwave('schemat','','GotoFrame','20');
	MM_controlShockwave('schemat','','Play','0');

	var rows = window.document.getElementsByTagName("td");  
	for(i = 0; i < rows.length; i++){          
		rows[i].className = "";
	}
	window.document.getElementById("k"+pietro).className = "selected";
}

