function runSWF(pag){
  // ---sólo hay que modificar los parametros ----------------
  // --inicio parametros--------------------------------------------------  
	var archivo=pag; // nombre de la pelicula swf que quieres incluir (incluir ruta si es necesario)
	var ancho="100%"; // ancho de la peli swf en píxeles o en porcentaje
 	var alto="100%"; // alto de la peli swf en píxeles o en porcentaje
 	var version="6,0,29,0"; // version del flash player
	var quality="high"; // calidad de visualización de la peli
	var bgcolor="#330033"; // color de fondo de la peli
  // --fin parametros--------------------------------------------------
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" id="formulario" width='+ancho+' height='+alto+'>\n');
	document.write('<param name="movie" value='+archivo+' >\n');
	document.write('<param name="quality" value='+quality+'>\n');
	document.write('<param name="bgcolor" value='+bgcolor+'>\n');
	document.write('<param name="menu" value="false">\n');	
	document.write('<param name="SCALE" value="noscale">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" >\n');	
	document.write('<embed src='+archivo+' bgcolor='+bgcolor+' quality='+quality+' allowscriptaccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" name="formulario"  SWFLiveConnect="true" type="application/x-shockwave-flash" width='+ancho+' height='+alto+'></embed>');
	document.write('</object>\n');
}

function runSWFGestion(pag){
  // ---sólo hay que modificar los parametros ----------------
  // --inicio parametros--------------------------------------------------  
	var archivo=pag; // nombre de la pelicula swf que quieres incluir (incluir ruta si es necesario)
	var ancho="994"; // ancho de la peli swf en píxeles o en porcentaje
 	var alto="100%"; // alto de la peli swf en píxeles o en porcentaje
 	var version="6,0,29,0"; // version del flash player
	var quality="high"; // calidad de visualización de la peli
	var bgcolor="#FFFFFF"; // color de fondo de la peli
  // --fin parametros--------------------------------------------------
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" id="formulario" width='+ancho+' height='+alto+'>\n');
	document.write('<param name="movie" value='+archivo+' >\n');
	document.write('<param name="quality" value='+quality+'>\n');
	document.write('<param name="bgcolor" value='+bgcolor+'>\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<param name="menu" value="false">\n');
	document.write('<param name="SCALE" value="noscale">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" >\n');	
	document.write('<embed src='+archivo+' bgcolor='+bgcolor+' quality='+quality+' allowscriptaccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" name="formulario"  SWFLiveConnect="true" type="application/x-shockwave-flash" width='+ancho+' height='+alto+'></embed>');
	document.write('</object>\n');
}



// abre pagina a pantalla completa
function fullScreen(){
	
	top.window.moveTo(0,0);
	
	if (document.all) {
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	
	else if (document.layers||document.getElementById) {
		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth = screen.availWidth;
		}
	}
}

// abre un popup
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}



function newSize(datoX,datoY) {
	if(document.all && !document.getElementById) {
 		document.all['miFlash'].style.pixelWidth = datoX;
 		document.all['miFlash'].style.pixelHeight = datoY;
	}else{
		document.getElementById('miFlash').style.width = datoX;
		document.getElementById('miFlash').style.height = datoY;
	}
	//alert(datoX+" "+datoY);
}

function scorri(){
		wheel(event);
	}

function wheel(event){
        var delta = 0;
        if (!event) /* For IE. */
                event = window.event;
        if (event.wheelDelta) { /* IE/Opera. */
                delta = event.wheelDelta/120;
                /** In Opera 9, delta differs in sign as compared to IE.
                 */
                if (window.opera)
                        delta = -delta;
        } else if (event.detail) { /** Mozilla case. */
                /** In Mozilla, sign of delta is different than in IE.
                 * Also, delta is multiple of 3.
                 */
                delta = -event.detail/3;
        }
        /** If delta is nonzero, handle it.
         * Basically, delta is now positive if wheel was scrolled up,
         * and negative, if wheel was scrolled down.
         */
        if (delta)
                handle(delta);
        /** Prevent default actions caused by mouse wheel.
         * That might be ugly, but we handle scrolls somehow
         * anyway, so don't bother here..
         */
        if (event.preventDefault)
                event.preventDefault();
	event.returnValue = false;
}
function handle(delta) {
	window.scrollBy(0,(delta*-15));
alert(delta+"_"+delta);
}
function saluta()
{
	alert('tepozzino');	
}
/*
function BrowserCheck(){
		var b = navigator.appName;
		if (b == "Netscape") this.b = "NN";
		else if (b == "Microsoft Internet Explorer") this.b = "IE";
		else this.b = b;
		this.version = navigator.appVersion;
		this.vSub = navigator.vendorSub;
		this.userAgent = navigator.userAgent;
		this.appVersion = navigator.appVersion;
		this.v = parseInt(this.version);
		this.vs = parseFloat(this.vSub);
		
		this.NN = (this.b == "NN");
		this.NN3 = (this.b == "NN" && this.v == 3);
		this.NN4 = (this.b == "NN" && this.v == 4);
		this.NN6x = (this.b == "NN" && this.v == 5 && this.vs >= 6.01);
		this.NN6 = (this.b == "NN" && this.v == 5);
		this.NN7 = (this.b == "NN" && this.v == 5 && this.vs >= 7);
		
		this.IE = (this.b == "IE");
		this.IE3 = (this.userAgent.indexOf('MSIE 3')>0);
		this.IE45 = (this.userAgent.indexOf('MSIE 4.5')>0);
		this.IE401 = (this.userAgent.indexOf('MSIE 4.01')>0);
		this.IE4 = (this.userAgent.indexOf('MSIE 4')>0);
		this.IE51 = (this.userAgent.indexOf('MSIE 5.1')>0);
		this.IE512 = (this.userAgent.indexOf('MSIE 5.12')>0);
		this.IE514 = (this.userAgent.indexOf('MSIE 5.14')>0);
		this.IE52 = (this.userAgent.indexOf('MSIE 5.2')>0);
		this.IE5 = (this.userAgent.indexOf('MSIE 5')>0);
		this.IE6 = (this.userAgent.indexOf('MSIE 6')>0);
		
		this.Opera = (this.userAgent.indexOf('Opera', 0) != -1);
		
		this.Win = (this.userAgent.indexOf('Win',0) != -1);
		this.Mac = (this.userAgent.indexOf('Mac',0) != -1);
		this.MacOSX = (this.userAgent.indexOf('Mac OS X',0) != -1);
		if(this.IE512 || this.IE52){
			this.MacOSX=true;
		}
		else if(this.IE514){
			if (navigator.plugins) {
				for (i=0; i < navigator.plugins.length; i++ ) {
					if (navigator.plugins[i].name.indexOf('QuickTime') >= 0 && navigator.plugins[i].filename.indexOf('.plugin')!=-1){
						this.MacOSX=true;
					}
				}
			}
		}
		this.Unix = (this.appVersion.indexOf('X11',0) != -1);
}

var checkB = new BrowserCheck();
*/


