

function  abrirCatalogo(cod)
{
    try
    {
        document.getElementById("titulo").innerHTML=catalogo[cod][0];
        document.getElementById("link1_pdf").href=catalogo[cod][1];
        document.getElementById("link2_pdf").href=catalogo[cod][1];
        if( typeof( window.innerWidth ) == 'number' ) {
            document.getElementById("fuente").innerHTML='<object  style="width:610px;height:564px;"><param id="firefox"  name="movie" value="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf?mode=embed'+catalogo[cod][2]+'&amp;username=Ticnova&amp;backgroundColor=FFFFFF&amp;showFlipBtn=true" /><param name="allowFullScreen" value="true" /><embed id="explorer" src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowFullScreen="true" style="width:610px;height:564px;" flashvars="mode=embed'+catalogo[cod][2]+'&amp;username=Ticnova&amp;backgroundColor=FFFFFF&amp;showFlipBtn=true" /></object>';
        }else{
           
            document.getElementById("fuente").innerHTML='<object  style="width:0px;height:0px;">';
            document.getElementById("fuente").innerHTML=document.getElementById("fuente").innerHTML+'<embed id="explorer" src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowFullScreen="true" style="width:610px;height:564px;" flashvars="mode=embed'+catalogo[cod][2]+'&amp;username=Ticnova&amp;backgroundColor=FFFFFF&amp;showFlipBtn=true" /></object>';
        }
       
        theObjects = document.getElementById("fuente").getElementsByTagName("object");
        for (var i = 0; i < theObjects.length; i++ ) {
            
            theObjects[i].outerHTML = theObjects[i].outerHTML;
        }
    }catch(err){
        
    }
}
