window.addEvent('domready', function() {
		new ScrollControl($('text-inner2'), {'createControls': true});
		new ScrollControl($('text-team'), {'htmlElementPrefix': 'control2_', 'createControls': true});
		new ScrollControl($('text-inner4'), {'htmlElementPrefix': 'control3_', 'createControls': true});
		}
		);




function cambiaFrame(param){
				/**
				 * param = frame di destinazione
				 */
				var myFrame = window.top.document.getElementById("textiframe");
				
				//Provo a cambiare il frame
				if(param.length > 0){
					myFrame.src = param;
				}else{
					//Altrimenti imposto quello predefinito
					myFrame.src = "void.php";
				}
			}

function cambiaFrame2(param){
				/**
				 * param = frame di destinazione
				 */
				var myFrame = window.top.document.getElementById("subiframe");
				
				//Provo a cambiare il frame
				if(param.length > 0){
					myFrame.src = param;
				}else{
					//Altrimenti imposto quello predefinito
					myFrame.src = "void.php";
				}
			}
			
function cambiaTutto(param, color){
				/**
				 * param = frame di destinazione
				 */
				var box = window.top.document.getElementById("box");
				var myFrame = window.top.document.getElementById("textiframe");
				var mysubFrame = window.top.document.getElementById("subiframe");
				var myMainFrame = window.top.document.getElementById("mainiframe");
				var movie = window.top.document.logoswf;
				if(param.length > 0){
					myMainFrame.src = "main.php?"+param;
					myFrame.src = "void.php?"+param;
					mysubFrame.src = "sub.php?"+param;
					window.top.document.body.style.background=color;
					box.style.background=color;
				 }
				if (color == "#ff4000"){
							movie.GotoFrame(1);
							movie.StopPlay();
							}else if (color == "#b6b8ba"){
							movie.GotoFrame(2);
							movie.StopPlay();
							}else if (color == "#5f6062"){
							movie.GotoFrame(2);
							movie.StopPlay();
							}else if (color == "#ffffff"){
							movie.GotoFrame(0);
							movie.StopPlay();
							}
			}

