
DynWeb = {		

	getHTTPObject: function()
	{
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
		   try {
		      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		   } catch (e) {
		      try {
		         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		      } catch (E) { xmlhttp = false; }
		   }
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		   try {
		      xmlhttp = new XMLHttpRequest();
		   } catch (e) { xmlhttp = false; }
		}
		return xmlhttp;
	},
	
	compiler: function(http,url,params){
		if (http) {
			http.open("post", url, true);
			http.onreadystatechange = function (){										
				if (http.readyState == 4) {													
					if (http.status == 200) {																
						if (http.responseText.indexOf('invalid') == -1) {							
							returnCode=http.responseText;														
							eval(returnCode);
						}
					}
				}
			};			
			http.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
			//http.setRequestHeader("charset", "utf-8");
			http.setRequestHeader("HTTP_DynWeb","application/x-www-form-urlencoded");			
			http.send("ms=" + new Date().getTime() + "&" + params);
		}
		return true;
	},
	
	isIE6: function()
	{
		return (typeof document.body.style.maxHeight == "undefined");
	},
	
	screen:
	{

		positionBody:0,

		positionDocument:0,

		show: function(iWidth,iHeight,sContent)
		{			
			var oScreen = document.getElementById('screen');
			var oBackScreen = document.getElementById('backScreen');
			var oTopScreen = document.getElementById('topScreen');		
			var oScreenContent = document.getElementById('screenContent');							
			
			if (!!DynWeb.isIE6())
			{
				DynWeb.screen.positionBody=document.body.scrollTop;
				DynWeb.screen.positionDocument=document.documentElement.scrollTop;
				document.body.scrollTop=0;
				document.documentElement.scrollTop=0;
				oScreen.style.position='absolute';
				document.body.style.overflow='hidden';	
				document.documentElement.style.overflow = 'hidden';

			}
				
			oTopScreen.style.width = iWidth + 'px';
			oTopScreen.style.height = iHeight + 'px';												
						
			oScreenContent.innerHTML = sContent;
						
			setTimeout(function(){DynWeb.screen.fadeIn(oScreen,oBackScreen,oTopScreen,0);},10);
									
		},
		
		fadeIn:function(oScreen,oBackScreen,oTopScreen,iOpacity)
		{
			var isfilterON = (document.all);
							
			if (!!isfilterON)
			{											
				oBackScreen.style.filter='alpha(opacity=' + iOpacity + ')';																				
			}else{				
				oBackScreen.style.opacity = (iOpacity/100);
				oBackScreen.style.MozOpacity = (iOpacity/100);
			}
			
			if (iOpacity==50)
			{
				oTopScreen.style.display = 'block';
			}else{
				oScreen.style.display = 'block';
				setTimeout(function(){DynWeb.screen.fadeIn(oScreen,oBackScreen,oTopScreen,(iOpacity+5));},10);
			}
		},
		
		hide: function()
		{
			var oScreen = document.getElementById('screen');						
			var oBackScreen = document.getElementById('backScreen');
			var oTopScreen = document.getElementById('topScreen');		
			
			if (!!DynWeb.isIE6())
			{
				document.body.style.overflow='visible';	
				document.documentElement.style.overflow = 'auto';
				document.body.scrollTop=DynWeb.screen.positionBody;
				document.documentElement.scrollTop=DynWeb.screen.positionDocument;
			}
			
			oTopScreen.style.display = 'none';
			
			setTimeout(function(){DynWeb.screen.fadeOut(oScreen,oBackScreen,oTopScreen,50);},10);
		},
		
		fadeOut:function(oScreen,oBackScreen,oTopScreen,iOpacity)
		{
			var isfilterON = (document.all);
							
			if (!!isfilterON)
			{											
				oBackScreen.style.filter='alpha(opacity=' + iOpacity + ')';																				
			}else{				
				oBackScreen.style.opacity = (iOpacity/100);
				oBackScreen.style.MozOpacity = (iOpacity/100);
			}
			
			if (iOpacity==0)
			{
				oScreen.style.display = 'none';				
			}else{
				setTimeout(function(){DynWeb.screen.fadeOut(oScreen,oBackScreen,oTopScreen,(iOpacity-5));},10);
			}
		}
	},
		
	screen2:
	{

		positionBody:0,

		positionDocument:0,

		show: function(iWidth,iHeight,sContent)
		{			
			var oScreen = document.getElementById('screen2');
			var oBackScreen = document.getElementById('backScreen2');
			var oTopScreen = document.getElementById('topScreen2');		
			var oScreenContent = document.getElementById('screenContent2');							
			
			if (!!DynWeb.isIE6())
			{
				DynWeb.screen2.positionBody=document.body.scrollTop;
				DynWeb.screen2.positionDocument=document.documentElement.scrollTop;
				document.body.scrollTop=0;
				document.documentElement.scrollTop=0;
				oScreen.style.position='absolute';
				document.body.style.overflow='hidden';	
				document.documentElement.style.overflow = 'hidden';

			}
				
			oTopScreen.style.width = iWidth + 'px';
			oTopScreen.style.height = iHeight + 'px';												
						
			oScreenContent.innerHTML = sContent;
						
			setTimeout(function(){DynWeb.screen2.fadeIn(oScreen,oBackScreen,oTopScreen,0);},10);
									
		},		
		
		fadeIn:function(oScreen,oBackScreen,oTopScreen,iOpacity)
		{
			var isfilterON = (document.all);
							
			if (!!isfilterON)
			{											
				oBackScreen.style.filter='alpha(opacity=' + iOpacity + ')';																				
			}else{				
				oBackScreen.style.opacity = (iOpacity/100);
				oBackScreen.style.MozOpacity = (iOpacity/100);
			}
			
			if (iOpacity==50)
			{
				oTopScreen.style.display = 'block';
			}else{
				oScreen.style.display = 'block';
				setTimeout(function(){DynWeb.screen2.fadeIn(oScreen,oBackScreen,oTopScreen,(iOpacity+5));},10);
			}
		},
		
		hide: function()
		{
			var oScreen = document.getElementById('screen2');						
			var oBackScreen = document.getElementById('backScreen2');
			var oTopScreen = document.getElementById('topScreen2');		
			
			if (!!DynWeb.isIE6())
			{
				document.body.style.overflow='visible';	
				document.documentElement.style.overflow = 'auto';
				document.body.scrollTop=DynWeb.screen.positionBody;
				document.documentElement.scrollTop=DynWeb.screen.positionDocument;
			}
			
			oTopScreen.style.display = 'none';
			
			setTimeout(function(){DynWeb.screen2.fadeOut(oScreen,oBackScreen,oTopScreen,50);},10);
		},
		
		fadeOut:function(oScreen,oBackScreen,oTopScreen,iOpacity)
		{
			var isfilterON = (document.all);
							
			if (!!isfilterON)
			{											
				oBackScreen.style.filter='alpha(opacity=' + iOpacity + ')';																				
			}else{				
				oBackScreen.style.opacity = (iOpacity/100);
				oBackScreen.style.MozOpacity = (iOpacity/100);
			}
			
			if (iOpacity==0)
			{
				oScreen.style.display = 'none';				
			}else{
				setTimeout(function(){DynWeb.screen2.fadeOut(oScreen,oBackScreen,oTopScreen,(iOpacity-5));},10);
			}
		}
				
	},	
	
	news:
	{
		state:1,

		fading:0,
		
		length:1,

		timer:null,

		timer_time:null,
		
		setState: function(sState)
		{
			DynWeb.news.state = sState;
		},
		
		getState: function()
		{
			return String(DynWeb.news.state);
		},

		init: function()
		{
			if (!!document.getElementById('news_start_time_in'))
			{
				DynWeb.news.setState(1);
				DynWeb.news.fading=0;			
				DynWeb.news.start();			
			}
		},

		start: function()
		{	
			DynWeb.news.stop();
			DynWeb.news.timer = setTimeout(function(){DynWeb.news.loop();},10000);			
			clearTimeout(DynWeb.news.timer_time);
			document.getElementById('news_start_time_in').style.background = '#272d7b';
			document.getElementById('news_start_time_in').style.width = '0px';
			document.getElementById('news_start_time_in2').style.background = document.getElementById('news_start_time_in').style.background;
			document.getElementById('news_start_time_in2').style.width = document.getElementById('news_start_time_in2').style.width;
			DynWeb.news.timer_time = setInterval(function(){document.getElementById('news_start_time_in').style.width = parseInt(document.getElementById('news_start_time_in').style.width.replace('px','')) + 1 + 'px';document.getElementById('news_start_time_in2').style.width =document.getElementById('news_start_time_in').style.width;},199);
			document.getElementById('news_start').src=document.getElementById('news_start').src.replace('start.gif','start3.gif');
			document.getElementById('news_start').src=document.getElementById('news_start').src.replace('start2.gif','start3.gif');
			document.getElementById('news_stop').src=document.getElementById('news_stop').src.replace('stop3.gif','stop.gif');			
			document.getElementById('news_start_time_text').innerHTML = 'Modo<br/>Automático';
			document.getElementById('news_start2').src=document.getElementById('news_start').src;
			document.getElementById('news_stop2').src=document.getElementById('news_stop').src;
			document.getElementById('news_start_time_text2').innerHTML = document.getElementById('news_start_time_text').innerHTML;
		},

		stop: function()
		{										
			clearTimeout(DynWeb.news.timer);
			clearTimeout(DynWeb.news.timer_time);
			DynWeb.news.timer = null;
			DynWeb.news.timer_time = null;
			document.getElementById('news_stop').src=document.getElementById('news_stop').src.replace('stop2.gif','stop3.gif');
			document.getElementById('news_stop').src=document.getElementById('news_stop').src.replace('stop.gif','stop3.gif');
			document.getElementById('news_start').src=document.getElementById('news_start').src.replace('start3.gif','start.gif');
			document.getElementById('news_start_time_in').style.background = '#cc0000';
			document.getElementById('news_start_time_text').innerHTML = 'Modo<br/>Manual';
			document.getElementById('news_stop2').src=document.getElementById('news_stop').src;
			document.getElementById('news_start2').src=document.getElementById('news_start').src;
			document.getElementById('news_start_time_in2').style.background = document.getElementById('news_start_time_in').style.background;
			document.getElementById('news_start_time_text2').innerHTML = document.getElementById('news_start_time_text').innerHTML;
		},

		previous: function()
		{
			var sId = parseInt(DynWeb.news.getState());
			sId--;
			if (sId<1)
				sId = DynWeb.news.length;

			DynWeb.news.stop();
			DynWeb.news.show(sId);
		},

		next: function()
		{
			var sId = parseInt(DynWeb.news.getState());
			sId++;
			if (sId>DynWeb.news.length)
				sId = 1;

			DynWeb.news.stop();
			DynWeb.news.show(sId);
		},

		loop: function()
		{				
			var sId = parseInt(DynWeb.news.getState()) + 1;
			if (sId>DynWeb.news.length)
				sId = 1;

			DynWeb.news.show(sId);
			DynWeb.news.start();
		},
		
		show: function(sId)
		{
			if ((DynWeb.news.fading==0) && (parseInt(DynWeb.news.getState())!=parseInt(sId)))
			{
				setTimeout(function(){DynWeb.news.fadeOut(sId,100);},1);
				DynWeb.news.fading=1;
			}
		},
				
		fadeOut:function(sId,iOpacity)
		{			
			var sIdOut = DynWeb.news.getState();
			if (sIdOut!=sId)
			{				
				var oNewsOut = document.getElementById('noticia_' + sIdOut);
				var oNewsOutCuadro = document.getElementById('noticia_' + sIdOut + '_cuadro');
				var isfilterON = (document.all);
							
				if (!!isfilterON)
				{				
					oNewsOutCuadro.style.filter='alpha(opacity=' + iOpacity + ')';
				}else{				
					oNewsOut.style.opacity = (iOpacity/100);
					oNewsOut.style.MozOpacity = (iOpacity/100);
				}												
			
				if (iOpacity==50)
				{
					var oNews = document.getElementById('noticia_' + sId);					
					oNewsOut.style.display = 'none';										
					setTimeout(function(){DynWeb.news.fadeIn(sId,0);},1);
										
					document.getElementById('noticias_back_' + sIdOut).className='preview_normal';
					document.getElementById('noticias_back_' + sId).className='preview_selected';					
				}else{																				
					setTimeout(function(){DynWeb.news.fadeOut(sId,(iOpacity-5));},10);
				}																
				
			}
		},
		
		fadeIn:function(sId,iOpacity)
		{			
			var oNews = document.getElementById('noticia_' + sId);			
			var oNewsOutCuadro = document.getElementById('noticia_' + sId + '_cuadro');
			oNews.style.display = 'block';
							
			var isfilterON = (document.all);
							
			if (!!isfilterON)
			{										
				oNewsOutCuadro.style.filter='alpha(opacity=' + iOpacity + ')';
			}else{				
				oNews.style.opacity = (iOpacity/100);
				oNews.style.MozOpacity = (iOpacity/100);
			}						
			
			if (iOpacity==100)
			{								
				DynWeb.news.fading=0;
				DynWeb.news.setState(sId);
			}else{														
				setTimeout(function(){DynWeb.news.fadeIn(sId,(iOpacity+5));},10);
			}				
														
		},
		
		over:function(sId)
		{
			if (parseInt(DynWeb.news.getState())!=parseInt(sId) && DynWeb.news.fading==0)
				document.getElementById('noticias_back_' + sId).className='preview_over';
		},

		out:function(sId)
		{
			if (parseInt(DynWeb.news.getState())!=parseInt(sId) && DynWeb.news.fading==0)
				document.getElementById('noticias_back_' + sId).className='preview_normal';
		}
		
	},	

	areas:
	{

		fading:0,
		
		timer:null,
		
		
		toggle: function()
		{
			var oThis = document.getElementById('areas_info');
			if (DynWeb.areas.fading==0)
			{
				if (oThis.style.display=='none')
				{
					setTimeout(function(){DynWeb.areas.fadeIn(oThis,50);},1);
				}else{
					setTimeout(function(){DynWeb.areas.fadeOut(oThis,100);},1);
				}
				DynWeb.areas.fading=1;
			}
		},
				
		fadeOut:function(oThis,iOpacity)
		{			
			var isfilterON = (document.all);
						
			if (!!isfilterON)
			{	
				oThis.style.filter='alpha(opacity=' + iOpacity + ')';
			}else{				
				oThis.style.opacity = (iOpacity/100);
				oThis.style.MozOpacity = (iOpacity/100);
			}												
		
			if (iOpacity==50)
			{
				oThis.style.display = 'none';										
				DynWeb.areas.fading=0;
			}else{																				
				setTimeout(function(){DynWeb.areas.fadeOut(oThis,(iOpacity-1));},10);
			}																
		},

		fadeIn:function(oThis,iOpacity)
		{			
			var isfilterON = (document.all);
						
			if (!!isfilterON)
			{	
				oThis.style.filter='alpha(opacity=' + iOpacity + ')';
			}else{				
				oThis.style.opacity = (iOpacity/100);
				oThis.style.MozOpacity = (iOpacity/100);
			}												

			if (iOpacity==50)
			{
				oThis.style.display = 'block';												
				DynWeb.areas.fading=0;
			}
		
			if (iOpacity!=100)																			
				setTimeout(function(){DynWeb.areas.fadeIn(oThis,(iOpacity+1));},10);
		}		
		
		
	},
	
	banners:
	{
		state:0,
		
		setState: function(sState)
		{
			DynWeb.banners.state = sState;
		},
		
		getState: function()
		{
			return DynWeb.banners.state;
		},
		
		show: function()
		{
			var oPublicidades = document.getElementById('banners_derecha');	
			if (!!oPublicidades)
			{
				var vPublicidades = oPublicidades.getElementsByTagName('DIV');	
	
				for (i=0;i<vPublicidades.length;i++)
				{
					vPublicidades[i].style.top = (i) * 151 + 'px';		
				}		
	
				DynWeb.banners.setState(0);
				document.getElementById('banners_derecha').style.height = document.getElementById('banners_derecha').parentNode.offsetHeight + 'px';
				DynWeb.banners.slide();						
			}
		},
				
		slide: function()
		{
			if (DynWeb.banners.getState()==0)						
			{
				var oPublicidades = document.getElementById('banners_derecha');		
				var vPublicidades = oPublicidades.getElementsByTagName('DIV');

				for (i=0;i<vPublicidades.length;i++)
				{
					vPublicidades[i].style.top = vPublicidades[i].style.top.replace('px','') -1 + 'px';			
					if (vPublicidades[i].style.top.replace('px','') == -151)			
						vPublicidades[i].style.top = parseInt(vPublicidades[i].style.top.replace('px','')) + (vPublicidades.length) * 151 + 'px';							
									
				}		
			}
			setTimeout(function(){DynWeb.banners.slide();},24);
		}
	},
	
	functions:
	{			
		
		addFavorite: function(sTitle , sUrl)
		{
			if (window.sidebar){
				window.sidebar.addPanel(sTitle, sUrl,'');
			}else if( window.external ){
				window.external.AddFavorite(sUrl, sTitle);
			}else if(window.opera && window.print) {
				return true; 
			}
		},
		
		showMenu: function(sMenu)
		{
			var oMenus = document.getElementById('menu').getElementsByTagName('DIV');			
			for(i=0;i<oMenus.length;i++)
			{				
				oMenus[i].className = '';
				var oMenuItems = document.getElementById('menuItems_' + oMenus[i].id.replace('menu_',''));
				oMenuItems.style.display = 'none';
			}
			
			var oMenu = document.getElementById('menu_' + sMenu);
			oMenu.className = 'selected';

			var oMenuItem = document.getElementById('menuItems_' + sMenu);			
			oMenuItem.style.display = 'block';
		},
		
		showpopup: function(sSite,sImage,sLink)
		{
			var sContent ='';			
			sContent+='	<center>';
			if (sLink!='')
				sContent+='	<a href="' + sLink + '" target="_blank">';
			sContent+='	<img src="' + sImage + '" align="absmiddle" border="0"/>';
			if (sLink!='')
				sContent+='	</a>';
			sContent+='	</center>';						
			sContent+='	<div><br/>';			
			sContent+='		<input type="button" name="cerrar" id="cerrar" value="Cerrar" class="button2" onclick="DynWeb.screen2.hide();"/>';			
			sContent+='	</div>';
			DynWeb.screen2.show(360,360,sContent);			
			
			setTimeout("DynWeb.screen2.hide();",5000);
		},

		showpopup2: function(sSite,sImage,sLink)
		{
			var sContent ='';			
			sContent+='	<center>';
			if (sLink!='')
				sContent+='	<a href="' + sLink + '" target="_blank">';
			sContent+='	<img src="' + sImage + '" align="absmiddle" border="0"/>';
			if (sLink!='')
				sContent+='	</a>';
			sContent+='	</center>';						
			sContent+='	<div><br/>';			
			sContent+='		<input type="button" name="cerrar" id="cerrar" value="Cerrar" class="button2" onclick="DynWeb.screen2.hide();"/>';			
			sContent+='	</div>';
			DynWeb.screen2.show(515,535,sContent);			
			
			setTimeout("DynWeb.screen2.hide();",10000);
		},
		
		showpopup3: function(sSite,sImage,sLink)
		{
			var sContent ='';			
			sContent+='	<center>';
			if (sLink!='')
				sContent+='	<a href="' + sLink + '" target="_blank">';
			sContent+='	<img src="' + sImage + '" align="absmiddle" border="0"/>';
			if (sLink!='')
				sContent+='	</a>';
			sContent+='	</center>';						
			sContent+='	<div><br/>';			
			sContent+='		<input type="button" name="cerrar" id="cerrar" value="Cerrar" class="button2" onclick="DynWeb.screen2.hide();"/>';			
			sContent+='	</div>';
			DynWeb.screen2.show(450,360,sContent);			
			
			setTimeout("DynWeb.screen2.hide();",10000);
		},
		
		showVideo: function(sTitle,sVideo)
		{
			var sContent ='';
			sContent+='<div class="titulo" style="font-size:12px;height:60px;">'+ sTitle +'</div>';						
			sContent+='	<div style="text-align:center;width:400px;" id="player_video_pop"></div>';			
			sContent+='	<br/>';			
			sContent+='	<input type="button" name="cancelar" id="enviar_colega_cancelar" value="Cerrar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			DynWeb.screen.show(400,450,sContent);		
			
			var s1 = new SWFObject('http://www.cac.com.ar/inc/mediaplayer.swf','mediaplayer','330','264','8');
			s1.addParam('allowfullscreen','true');
			s1.addVariable('width','330');
			s1.addVariable('height','264');			s1.addVariable('file',sVideo);
			s1.write("player_video_pop");	
		},
				
		search: function(sSite)
		{
			var sContent ='';
			sContent+='<div class="titulo">Búsqueda de información</div>';
			sContent+='<div class="subtitulo">Ingrese su búsquda</div>';
			sContent+='	<br/>';
			sContent+='	Ingrese el texto a buscar';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="busqueda_texto" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';									
			sContent+='	<b><u>Seleccione la categoría donde desea buscar:</u></b>';
			sContent+='	<div>';
			sContent+='		<input type="radio" class="input" name="busqueda_categoria" value="NOVEDADES" checked />';
			sContent+='		NOVEDADES';
			sContent+='	</div>';
			sContent+='	<div>';
			sContent+='		<input type="radio" class="input" name="busqueda_categoria" value="INSTITUCIONAL" />';
			sContent+='		INSTITUCIONAL';
			sContent+='	</div>';
			sContent+='	<div>';
			sContent+='		<input type="radio" class="input" name="busqueda_categoria" value="ACTIVIDADES" />';
			sContent+='		ACTIVIDADES';
			sContent+='	</div>';
			sContent+='	<div>';
			sContent+='		<input type="radio" class="input" name="busqueda_categoria" value="PUBLICACIONES" />';
			sContent+='		PUBLICACIONES';
			sContent+='	</div>';			
			sContent+='	<br/>';
			sContent+='	<div>';
			sContent+='		<input type="button" name="enviar" id="busqueda_aceptar" value="Aceptar" class="button" onclick="DynWeb.functions.searchSend(\''+ sSite + '\');"/>';
			sContent+='		<input type="button" name="cancelar" id="busqueda_cancelar" value="Cancelar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			sContent+='	</div>';
			DynWeb.screen.show(400,400,sContent);			
		},
		
		searchSend: function(sSite)		
		{			
			var sUrl = sSite + 'busqueda/';
			var sParams ='';
			
			var sTexto = document.getElementById('busqueda_texto').value;
			
			if (sTexto.length>=4)
			{
				var oCategorias = document.getElementsByName('busqueda_categoria');				
				for (i=0;i<oCategorias.length;i++)
				{
					if (oCategorias[i].checked)
						sCategorias=oCategorias[i].value;
				}
																
				if(sCategorias!='')
				{
					sParams += escape(sCategorias);
					sParams += ',' + escape(sTexto);			
			
					window.location.href=sUrl + sParams;									
						
					document.getElementById('busqueda_aceptar').style.display = 'none';												
				}else{
					document.getElementById('busqueda_aceptar').value = 'Debe seleccionar una o más categorías.';
					document.getElementById('busqueda_aceptar').className = 'buttonError';
				}
			}else{				
				document.getElementById('busqueda_aceptar').value = 'El texto a buscar debe ser superior a 3 caracteres.';
				document.getElementById('busqueda_aceptar').className = 'buttonError';
			}
		},
		
		shareNews: function(sTitle,sLink)
		{
			var sContent ='';
			sContent+='<div class="titulo">Envíar la noticia a un colega</div>';
			sContent+='<div class="subtitulo">'+ sTitle +'</div>';
			sContent+='	<br/>';
			sContent+='	Ingrese su nombre y apellido';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';			
			sContent+='	Ingrese su correo electrónico';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el nombre y apellido de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el correo electrónico de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	<input type="button" name="enviar" id="enviar_colega_enviar" value="Enviar" class="button" onclick="DynWeb.functions.shareNewsSend(\'' + escape(sTitle) + '\',\'' + escape(sLink) + '\');"/>';
			sContent+='	<input type="button" name="cancelar" id="enviar_colega_cancelar" value="Cancelar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			DynWeb.screen.show(400,360,sContent);			
		},
		
		shareNewsSend: function(sTitle,sLink)
		{
			var sUrl = document.location.href.toLowerCase().replace('/noticias/','/enviar_noticia/');
			var sParams ='';
			sParams += 'emisor=' + escape(document.getElementById('enviar_colega_emisor').value);			
			sParams += '&emisor_correo=' +  escape(document.getElementById('enviar_colega_emisor_correo').value);
			sParams += '&receptor=' +  escape(document.getElementById('enviar_colega_receptor').value);
			sParams += '&receptor_correo=' +  escape(document.getElementById('enviar_colega_receptor_correo').value);
			var httpWindow = DynWeb.getHTTPObject();
			DynWeb.compiler(httpWindow,sUrl,sParams);						
			
			document.getElementById('enviar_colega_enviar').style.display = 'none';			
		},
		
		shareContent: function(sTitle,sLink)
		{
			var sContent ='';
			sContent+='<div class="titulo">Envíar el contenido a un colega</div>';
			sContent+='<div class="subtitulo">'+ sTitle +'</div>';
			sContent+='	<br/>';
			sContent+='	Ingrese su nombre y apellido';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';			
			sContent+='	Ingrese su correo electrónico';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el nombre y apellido de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el correo electrónico de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	<input type="button" name="enviar" id="enviar_colega_enviar" value="Enviar" class="button" onclick="DynWeb.functions.shareContentSend(\'' + escape(sTitle) + '\',\'' + escape(sLink) + '\');"/>';
			sContent+='	<input type="button" name="cancelar" id="enviar_colega_cancelar" value="Cancelar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			DynWeb.screen.show(400,360,sContent);			
		},
		
		shareContentSend: function(sTitle,sLink)
		{
			var sUrl = document.location.href.toLowerCase().replace('/institucional/','/enviar_institucional/');
			var sParams ='';
			sParams += 'emisor=' + escape(document.getElementById('enviar_colega_emisor').value);			
			sParams += '&emisor_correo=' +  escape(document.getElementById('enviar_colega_emisor_correo').value);
			sParams += '&receptor=' +  escape(document.getElementById('enviar_colega_receptor').value);
			sParams += '&receptor_correo=' +  escape(document.getElementById('enviar_colega_receptor_correo').value);
			var httpWindow = DynWeb.getHTTPObject();
			DynWeb.compiler(httpWindow,sUrl,sParams);						
			
			document.getElementById('enviar_colega_enviar').style.display = 'none';			
		},
		
		shareActivity: function(sTitle,sLink)
		{
			var sContent ='';
			sContent+='<div class="titulo">Envíar la actividad a un colega</div>';
			sContent+='<div class="subtitulo">'+ sTitle +'</div>';
			sContent+='	<br/>';
			sContent+='	Ingrese su nombre y apellido';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';			
			sContent+='	Ingrese su correo electrónico';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el nombre y apellido de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el correo electrónico de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	<input type="button" name="enviar" id="enviar_colega_enviar" value="Enviar" class="button" onclick="DynWeb.functions.shareActivitySend(\'' + escape(sTitle) + '\',\'' + escape(sLink) + '\');"/>';
			sContent+='	<input type="button" name="cancelar" id="enviar_colega_cancelar" value="Cancelar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			DynWeb.screen.show(400,360,sContent);			
		},
		
		shareActivitySend: function(sTitle,sLink)
		{
			var sUrl = document.location.href.toLowerCase().replace('/actividad/','/enviar_actividad/');
			var sParams ='';
			sParams += 'emisor=' + escape(document.getElementById('enviar_colega_emisor').value);
			sParams += '&emisor_correo=' +  escape(document.getElementById('enviar_colega_emisor_correo').value);
			sParams += '&receptor=' +  escape(document.getElementById('enviar_colega_receptor').value);
			sParams += '&receptor_correo=' +  escape(document.getElementById('enviar_colega_receptor_correo').value);
			var httpWindow = DynWeb.getHTTPObject();
			DynWeb.compiler(httpWindow,sUrl,sParams);						
			
			document.getElementById('enviar_colega_enviar').style.display = 'none';			
		},				
		
		sharePublication: function(sTitle,sLink)
		{
			var sContent ='';
			sContent+='<div class="titulo">Envíar la publicación a un colega</div>';
			sContent+='<div class="subtitulo">'+ sTitle +'</div>';
			sContent+='	<br/>';
			sContent+='	Ingrese su nombre y apellido';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';			
			sContent+='	Ingrese su correo electrónico';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_emisor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el nombre y apellido de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	Ingrese el correo electrónico de su colega';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="enviar_colega_receptor_correo" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';
			sContent+='	<input type="button" name="enviar" id="enviar_colega_enviar" value="Enviar" class="button" onclick="DynWeb.functions.sharePublicationSend(\'' + escape(sTitle) + '\',\'' + escape(sLink) + '\');"/>';
			sContent+='	<input type="button" name="cancelar" id="enviar_colega_cancelar" value="Cancelar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			DynWeb.screen.show(400,360,sContent);			
		},
		
		sharePublicationSend: function(sTitle,sLink)
		{			
			var sUrl = document.location.href.toLowerCase().replace('/publicaciones/','/enviar_publicacion/');
			var sParams ='';
			sParams += 'emisor=' + escape(document.getElementById('enviar_colega_emisor').value);
			sParams += '&emisor_correo=' +  escape(document.getElementById('enviar_colega_emisor_correo').value);
			sParams += '&receptor=' +  escape(document.getElementById('enviar_colega_receptor').value);
			sParams += '&receptor_correo=' +  escape(document.getElementById('enviar_colega_receptor_correo').value);
			var httpWindow = DynWeb.getHTTPObject();
			DynWeb.compiler(httpWindow,sUrl,sParams);						
			
			document.getElementById('enviar_colega_enviar').style.display = 'none';			
		},
		
		suscribe: function(sSite)
		{
			var sContent ='';
			sContent+='<div class="titulo">Suscripción a nuestras publicaciones</div>';
			sContent+='<div class="subtitulo">Suscripción gratuita</div>';
			sContent+='	<br/>';
			sContent+='	Ingrese su nombre y apellido';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="suscripcion_nombre" value="" maxlength="50" size="60"/>';
			sContent+='	<br/>';
			sContent+='	<br/>';			
			sContent+='	Ingrese su correo electrónico';
			sContent+='	<br/>';
			sContent+='	<input type="text" class="input" id="suscripcion_correo" value="" maxlength="50" size="60"/>';			
			sContent+='	<br/>';			
			sContent+='	<br/>';
			sContent+='	<div>';			
			sContent+='		<input type="button" name="enviar" id="suscripcion_aceptar" value="Aceptar" class="button" onclick="DynWeb.functions.suscribeSend(\'' + sSite+ '\');"/>';
			sContent+='		<input type="button" name="cancelar" id="suscripcion_cancelar" value="Cancelar" class="button2" onclick="DynWeb.screen.hide();"/>';			
			sContent+='	</div>';
			DynWeb.screen.show(400,400,sContent);			
		},
		
		suscribeSend: function(sSite)
		{			
			var sUrl = sSite + 'suscripcion_publicaciones/';
			var sParams ='';
			
			var oAreas = document.getElementsByName('suscripcion_area');
			var sAreas ='';
			for (i=0;i<oAreas.length;i++)
			{
				if (oAreas[i].checked)
					sAreas+=';' + oAreas[i].value;
			}
															
							
			sParams += 'nombre=' + escape(document.getElementById('suscripcion_nombre').value);
			sParams += '&correo=' +  escape(document.getElementById('suscripcion_correo').value);
			sParams += '&areas=' +  escape(sAreas);
						
			var httpWindow = DynWeb.getHTTPObject();
			DynWeb.compiler(httpWindow,sUrl,sParams);										
				
			document.getElementById('suscripcion_aceptar').style.display = 'none';												
		},
		
		navigate: function(sLink,sParams)
		{
			var oBody = document.body;
			var oForm = document.createElement('FORM');				
				oForm.setAttribute('action',sLink);
				oForm.setAttribute('method','post');				
				
				var sTempInnerHTML = sParams;
				sTempInnerHTML = sTempInnerHTML.replace('=','" VALUE="');
				sTempInnerHTML = sTempInnerHTML.replace('&','"/><input TYPE="hidden" name="');
				
				var sInnerHTML = '<input TYPE="hidden" name="' + sTempInnerHTML + '"/>';												
								
				oForm.innerHTML = sInnerHTML;												
				oResult = oBody.appendChild(oForm);	
				/*
				oEl = document.createElement('input');
				oEl.type='hidden';
				oEl.name='c';
				oEl.value='cac';				
				oResult.appendChild(oEl);
				*/
				//alert(oResult.getElementsByTagName('input')[0].value);
				//alert(oResult.innerHTML);
				oResult.submit();
		}
		
	}		
}

