﻿    function zoomTextNews(Accion)
    {                        
        //inicializacion de variables y parámetros 
        var obj1 = document.getElementById("comment");        
        var max = 200 //tamaño máximo del fontSize
        var min = 70 //tamaño mínimo del fontSize        
        
        if (obj1.style.fontSize == ""){
            obj1.style.fontSize = "100%";            
        }
        
        actual1 = parseInt(obj1.style.fontSize); //valor actual del tamaño del texto         
        incremento = 10;// el valor del incremento o decremento en el tamaño

        //accion sobre el texto 
        //if( Accion=="reestablecer" ){
        //    obj1.style.fontSize="100%"
        //}
        if( Accion == "aumentar" && ((actual1 + incremento) <= max )){
            valor = actual1 + incremento;
            obj1.style.fontSize = valor + "%"            
        }
        
        if( Accion == "disminuir" && ((actual1 + incremento) >= min )){
            valor = actual1 - incremento;
            obj1.style.fontSize = valor + "%"            
        }                                   
    }

    function zoomTextStatic(Accion)
    {                        
        //inicializacion de variables y parámetros
        var obj = document.getElementById("comment2");
        var max = 200 //tamaño máximo del fontSize
        var min = 70 //tamaño mínimo del fontSize        
        
        if (obj.style.fontSize == ""){
            obj.style.fontSize = "100%";        
        }
        
        actual = parseInt(obj.style.fontSize); //valor actual del tamaño del texto 
        incremento = 10;// el valor del incremento o decremento en el tamaño
        
        if( Accion == "aumentar" && ((actual + incremento) <= max )){
            valor = actual + incremento;
            obj.style.fontSize = valor + "%"        
        }
        
        if( Accion == "disminuir" && ((actual + incremento) >= min )){
            valor = actual - incremento;
            obj.style.fontSize = valor + "%"        
        }                                   
    }
    
    function previewPrint(codigo){
        window.open('http://www.gebaerdenwelt.at/print/?id=' + codigo,'','toolbar=no,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600');
    }
    
    function ClickSuchen(){
        document.frmSuchen.action = 'http://www.gebaerdenwelt.at/suchen/';
        document.frmSuchen.hddSuchen.value = "1";        
        document.frmSuchen.submit();
    }
    
    function IntroSuchen(e){
        var keynum = F_KeyNum(e);            
        
        if (keynum == 13)
        {
            ClickSuchen();
        }
    }
    
    function F_KeyNum(e){
        var keynum;        
        
        // Decide browser version
        var ie4 = document.all && !document.getElementById;
        var ie5 = document.all && document.getElementById;
        var ns6 = !document.all && document.getElementById;
        var ns4 = document.layers;
        
        if(ie4 || ie5) // IE
        {
            keynum = event.keyCode
        }            
        else // if(ns4) // Netscape/Firefox/Opera
        {
            keynum = e.which             
        }                
        
        return keynum;                
    }
    
    function CursorFoto(valor)
        {
            NextPage = (NextPage + valor);
            ActualPage = (ActualPage + valor);
                                                                          
            if (NextPage == fotos.length)
            {                
                NextPage = 0;
                ActualPage = 1;           
            }
            else if(NextPage == -1)
            {              
                NextPage = fotos.length - 1;
                ActualPage = fotos.length;
            }
                        
            document.images["foto"].src = fotos[NextPage];
            document.getElementById("texto").innerHTML = textos[NextPage];
            document.getElementById("firmaFoto").innerHTML = firmaFotos[NextPage];
            document.getElementById("page").innerHTML = ActualPage + " von " + fotos.length;
        }
        
        function KeyCursor(e)
        {            
            var keynum;
                        
            keynum = F_KeyNum(e)                        
            
            if (keynum == 37)
            {
                CursorFoto(-1);
            }
            else if(keynum == 39)
            {
                CursorFoto(1);
            }           
        }
        
        /**********************************************/
        function LoadCabecera()
        {
            var contenido; 
            
            contenido = "<div id='logoI'>"
            contenido += "  <a href='http://www.gebaerdenwelt.at'><img src='http://www.gebaerdenwelt.at/App_Themes/2008/images/logo.jpg' width='145px' height='96px' title='HOME, Geb&auml;rdenwelt' alt='HOME, Geb&auml;rdenwelt'/></a>"
            contenido += "</div>"
            contenido += "<div id='menu'>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/community'><div class='menu1'><span id='m1' class='title1'>cOMMUNITY</span></div></a>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/leben'><div class='menu2'><span id='m2' class='title2'>lEBEN</span></div></a>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/kultur'><div class='menu3'><span id='m3' class='title3'>KULTUR</span></div></a>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/nachrichten'><div class='menu4'><span id='m4' class='title4'>NACHRICHTEN</span></div></a>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/sport'><div class='menu5'><span id='m5' class='title5'>SPORT</span></div></a>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/wissen'><div class='menu6'><span id='m6' class='title6'>WISSEN</span></div></a>"
            contenido += "  <a href='http://www.gebaerdenwelt.at/wirtschaft'><div class='menu7'><span id='m7' class='title7'>WIRTSCHAFT</span></div></a>"
            contenido += "</div>"
            contenido += "<form name='frmSuchen' method='post' action=''>"
            contenido += "  <div class='submenuI'>"
            contenido += "      <span class='OrangeTitle'>Home</span>"
            contenido += "      <span class='SubmenuTitle'><a href='http://www.gebaerdenwelt.at/videosapa/' class='leftsubmenu'>Videos APA</a><a href='http://www.gebaerdenwelt.at/termine/kalender.aspx' class='submenu'>Kalender</a><a href='http://www.gebaerdenwelt.at/wetter/' class='submenu'>Wetter</a></span>"
            contenido += "      <input type='text' class='t_suchen' onkeydown='javascript:IntroSuchen(event);' name='txtSuchen' value='' maxlength='40'/>"
            contenido += "      <a href='javascript:ClickSuchen();' class='a_suchen'></a>"
            contenido += "      <input type='hidden' name='hddSuchen' value='0' />"
            contenido += "  </div>"
            contenido += "</form>"
            
            document.getElementById("cabecera").innerHTML = contenido;
        }
        
        function LoadFoot()
        {
            var contenido; 
            
            contenido = "<div class='footLink'>";
	        contenido += "  <a href='http://www.gebaerdenwelt.at/static/willkommen.html' class='leftsecciones'>Willkommen</a>";
	        contenido += "  <a href='http://www.gebaerdenwelt.at/static/impressum.html' class='secciones'>Impressum</a>";
            contenido += "  <a href='http://www.gebaerdenwelt.at/static/offenlegung.html' class='secciones'>Offenlegung</a>";
            contenido += "  <a href='http://www.gebaerdenwelt.at/static/einschicken.html' class='secciones'>Texte einschicken</a>";
            contenido += "  <a href='http://www.gebaerdenwelt.at/static/sales.html' class='secciones'>Sales</a>";
            contenido += "  <a href='http://www.gebaerdenwelt.at/rss/rss.xml' class='secciones'><img src='Http://www.gebaerdenwelt.at/App_Themes/2008/images/rss03.jpg'></a>";
            contenido += "</div>"
            
            document.getElementById("dvFoot").innerHTML = contenido;
        }
 

