function playNow(){
	startTimer();
	document.getElementById('playnow').style.display="none";
	document.getElementById('playnow').setAttribute('style', 'display:none');
	document.getElementById('nuevocont').style.display="block";
	document.getElementById('nuevocont').setAttribute('style', 'display:block');
}

var id="";var tf=15;var interval;

function update(){
	tf--;
	if(document.getElementById("tetime")){
		document.getElementById("tetime").innerHTML=tf;
	}
	if (tf==0){
		clearInterval(interval);
		continueGame();
	}
}
	
function startTimer(){
	interval = this.setInterval(update,2000);
	if(document.getElementById("tetime")){
		document.getElementById("tetime").innerHTML=tf;
	}
}
	

// JavaScript Document

            var defaultWidth = null;
            var defaultHeight = null;
            var zoomt = 50;


            function amplia(){

                if (defaultWidth == null){defaultWidth = $('#player').width();}
                if (defaultHeight == null){defaultHeight = $('#player').height();}

                //window.alert(defaultHeight);

                var newZoom = zoomt + 5;
                var newWidth = defaultWidth * (newZoom / 50);
                var newHeight = defaultHeight * (newZoom / 50);

                // window.alert(newHeight);

                if ((newWidth <= 800) && (newHeight <= 850)){

                    $('#player').animate({
                        width: newWidth,
                        height: newHeight
                    }, 800 );


                    //$('#player').width(newWidth);
                    //$('#player').height(newHeight);
                    zoomt = newZoom;
                }

            }

            function reduce(){

                if (defaultWidth == null){defaultWidth = $('#player').width();}
                if (defaultHeight == null){defaultHeight = $('#player').height();}

                //window.alert(zoom)

                var newZoom = zoomt - 5;
                var newWidth = defaultWidth * (newZoom / 50);
                var newHeight = defaultHeight * (newZoom / 50);

                if ((newWidth >= 300) && (newHeight >= 250)){

                    $('#player').animate({
                        width: newWidth,
                        height: newHeight
                    }, 800 );

                    //$('#player').width(newWidth);
                    //$('#player').height(newHeight);

                    zoomt = newZoom;
                }

            }

