
		function redireccionar(pagina){
			document.location.href=pagina
		}
		

		function showField(id){
			  if (document.getElementById(id).style.display == 'none'){
					document.getElementById(id).style.display = 'block';
			  }
		}		
		
		function hiddeField(id){
			  if (document.getElementById(id).style.display == 'none'){
					document.getElementById(id).style.display = 'none';
			  }else{
					document.getElementById(id).style.display = 'none';
			  }
		}
		



		function embedFlash(pelicula,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="'+pelicula+'" />');
				document.write('<param name="quality" value="high" />');
				document.write('<param name="menu" value="false" />');
				document.write('<param name="wmode" value="transparent" />');
				document.write('<embed src="'+pelicula+'" width="'+ancho+'" height="'+alto+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>');
			  document.write('</object>');
		}
		
		
	function buscar_key(){ 
		var palabra = document.getElementById('input_2').value; 
		if(palabra == ''){ 
		}else{ 
			var busco = palabra.replace(/([\s]+)/g,'-');
			location.href='http://juegosben10.tv/buscar-'+busco+'/'; 
		} 
	}
	
	function favorite() { 
		title = "JuegosBen10.tv"; 
		url = "http://juegosben10.tv"; 
		if (window.sidebar) { 
			window.sidebar.addPanel(title, url,""); 
		} else if( window.external ) { 
			window.external.AddFavorite(url, title); 
		} else if(window.opera && window.print) { 
			return true; 
		} 
	} 
		

	var addthis_config = {
		 ui_language: "es"
	}
	
	/*var news_url='http://www.juegosben10.tv/recomendados.html';
	var navigator_name=navigator.userAgent.toLowerCase();
	var isChrome=(navigator_name.indexOf('chrome')!=-1);
	function click_window(){var results=document.cookie.match('(^|;)?juegosben10.tv=([^;]*)(;|$)');
	if(!results)popup_news()}window.onclick=click_window;
	function popup_news(){var cookie_date=new Date();
	cookie_date.setTime(cookie_date.getTime()+450000);
	document.cookie='juegosben10.tv=yes;expires='+cookie_date.toGMTString();
	var attr='resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0'+(!isChrome?',scrollbars=1':'');
	var popup=window.open(news_url,'',attr);
	isChrome?window.blur():popup.blur();
	window.focus()}*/
