//--------------------- flash -------------------------------------//

function banner_flash(src,ancho,alto){
document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width='+ancho+' height='+alto+'>'); 
document.write('<param name=movie value='+src+'>'); 
document.write('<param name=quality value=high>'); 
document.write('<param name=wmode value=transparent>'); 
document.write('<embed src='+src+' quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width='+ancho+' height='+alto+' wmode=transparent></embed>'); 
document.write('</object>'); 
}

//------------ventanas ajax --------------------//


function ventana(theme,url,w,h,tit){
		
		win = new Window('default', {className: theme,
						             title: tit, 
								  	  bottom:0, 
									  left:0, 
									  width:w, 
									  height:h, 
								      resizable: false, 
								      draggable: false, 
								      minimizable: false, 
								      maximizable: false, 
									  ok:true,
								      url: url, 
								      showEffectOptions: {duration:0.1} })
		win.showCenter(true);
		win.setDestroyOnClose();
		return true;
}


// cargar contenido //
function Request(loadid,page)
{
	$(loadid).innerHTML = '<center>Loading...<br><br><img src="img/load.gif"><center>';
	new Ajax.Updater(loadid, page, {asynchronous:true, evalScripts:true});
}

function v2(theme,url,w,h,tit){
Dialog.alert({url: url, options: {method: 'get'}}, {className: theme, width:w, height:h,okLabel: "cerrar"});

}





