//**************************************************
//****** BARRA DE ESTADO ***************************
//**************************************************

var scrtxt=":: enric hermosa :: disseny multimèdia ::                           ";
var lentxt=scrtxt.length;
var width=900;
var count=0;
var left=0;
var abc=0;
function scroll() {
  var txt="";
  var scroller="";
  if (abc>0) {
    if ((abc%2)==1) {
      window.status="";
    } else {
      window.status=scrtxt;
    }
    abc++;
    if (abc==8) abc=0;
  } else {
    if (count>0) {
      scroller=scrtxt.substring(0,count);
      txt=scrtxt.substring(count,count+2);
    } else {
      txt=scrtxt.substring(0,2);
    }
    if ((width-left)>2) {
      left+=(width-left)/2;
    } else { left++; }
    for (var i=0; i<(width-left); i++) {
      scroller=scroller+" ";
    }
    if (left>=width) {
      count+=2;
      left=count*2;
    }
    if (count>=lentxt) {
      pos=count=0;
      abc=1;
    }
    scroller=scroller+txt;
    window.status=scroller;
  }
  setTimeout("scroll()",0);
}
scroll();



//**************************************************
//****** FAVORITOS *********************************
//**************************************************

 function favoritos() {
  window.external.AddFavorite('http://www.enrichermosa.com','.:enrichermosa :: disseny multimèdia:.');
 }






//**************************************************
//****** RESCALADO DE VENTANA **********************
//**************************************************




 		function JumpPage()
			{
				window.location.href = 'minimestatic.htm';
				if ( navigator.userAgent.indexOf("AOL") > 0 )
				{
					resizeTo(128,96);
				}
				else
				{
					resize(128,96);
				}
			}
			function resize( width, height )
			{
			
			var count = 0;
				do
				{
					var currentwidth;
					var currentheight;
					var dx = 0;
					var dy = 0;
					var smoothing = 5;
					
					if( document.all )
					{
						currentwidth = document.body.clientWidth;
						currentheight = document.body.clientHeight;
					}
					else
					{
						//currentwidth = window.outerWidth;
						//currentheight = window.outerHeight;
						currentwidth = window.innerWidth;
						currentheight = window.innerHeight;
					}
	
					
					if( currentwidth > width )
					{
						dx = Math.round(( width - currentwidth ) / smoothing );
						if( dx == 0 )
						{
							dx = -1;
						}
					}
					else if( currentwidth < width )
					{
						dx = Math.round(( width - currentwidth ) / smoothing );
						if( dx == 0 )
						{
							dx = 1;
						}
					}
	
					if( currentheight > height )
					{
						dy = Math.round(( height - currentheight ) / smoothing );
						if( dy == 0 )
						{
							dy = -1;
						}
					}
					else if( currentheight < height )
					{
						dy = Math.round(( height - currentheight ) / smoothing );
						if( dy == 0 )
						{
							dy = 1;
						}
					}
					
					if ( navigator.userAgent.indexOf("Mac") > 0 && navigator.userAgent.indexOf("MSIE") > 0 && navigator.userAgent.indexOf("AOL") < 0 )
					{
						count = count + 1;
						if ( count <= 7 )
						{
							top.moveBy( - dx / 2, - dy / 2 );
						}
						top.resizeBy(dx,dy);
						
						if ( currentheight <= 200 || currentwidth <= 289 || count > 100 )
						{
							dx = 0;
							dy = 0;
						}
					}
					else
					{
						top.moveBy( -dx/2, -dy/2 );
						top.resizeBy(dx,dy );
						count = count + 1;
						if ( count >= 500 ){ dx=0; dy=0;}
					}
					
					
				}
				while( dx != 0 && dy != 0 );
			}


//**************************************************
//****** abrir nwe window **********************
//**************************************************


  function adios() { 
window.open('http://www.gassattack.com/vota.htm','t','resizable=no,scrollbars=no,toolbar=no'); 
  } 

function curriculum(URLtoOpen,windowName, windowFeatures) {
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
