    var frameName = "pagina";
	
function openCatalog(obj) {
    var selectValue = obj;
    if (selectValue != "") {
        var file = "catalogo.html?opcion="+selectValue;
        var url = "";
        var page = getPage(selectValue);
        var win = window.open(url, 'ventana', 'toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=no,width=982,height=568');
        var title = "[[ papsa ]]: Cat&aacute;logo";
		var frameString = "<html><head><title>" + title + "</title><link rel='stylesheet' type='text/css' href='papsa.css' /></head>";
		frameString = frameString + "<frameset rows='47,*' framespacing='0' border='0' frameborder='0'>";
		frameString = frameString + "<frame name='cabeza' src='" + file + "' scrolling='no'>";
		frameString = frameString + "<frame name='" + frameName + "' src='" + page + "' scrolling='auto'>";
		frameString = frameString + "</frameset></html>";
		win.document.open();
        win.document.write(frameString);
        win.document.close();
    }
}
function getPage(option) {
	var page = "";
	var haworth = "http://www.haworth.com/Brix?";
	var rosenthal = "http://www.philip-moebelmanufaktur.de/en/products/";
	var spacesaver = "http://www.spacesaver.com/";
    var camino = "http://www.caminomodular.com/";
	var nienkamper = "http://www.nienkamper.com/";	
		
    switch (option) {
        case "H0":
            /*Haworth*/
            page = "http://www.haworth.com/Brix?";
            break;
        case "H1":
            /*Haworth Archiveros*/
            page = haworth + "pageID=148&catpage=16&category=122";
            break;
        case "H2":
            /*Haworth Iluminación*/
            page = haworth + "pageID=148&catpage=18&category=107";
            break;
        case "H3":
            /*Haworth Mesas*/
            page = haworth + "pageID=148&catpage=17&category=244";
            break;
        case "H4":
            /*Haworth Mobiliario*/
            page = haworth + "pageID=148&catpage=15&category=118";
            break;
        case "H5":
            /*Haworth Muros*/
            page = haworth + "pageID=148&catpage=12&category=102";
            break;
        case "H6":
            /*Haworth Pisos*/
            page = haworth + "pageID=148&catpage=13&category=103";
            break;
            
        /*--------------------------------------------------------------*/			
        case "R0":
            /*Rosenthal*/
            page = "http://www.philip-moebelmanufaktur.de/en/products/";
            break;	
		case "R1":
            /*Rosenthal Prisma*/
            page = rosenthal + "prisma.php";
            break;	
        case "R2":
            /*Rosenthal Ypsilon*/
            page = rosenthal + "ypsilon.php";
            break;		
        case "R3":
            /*Rosenthal Muevo*/
            page = rosenthal + "muevo.php";
            break;	
        case "R4":
            /*Rosenthal me*/
            page = rosenthal + "me.php";
            break;	
        case "R5":
            //Rosenthal me Conference
            page = rosenthal + "me_conference.php";
            break;	
        case "R6":
            /*Rosenthal Cetera*/
            page = rosenthal + "cetera.php";
            break;	
        case "R7":
            /*Rosenthal maxmax*/
            page = rosenthal + "maxmax.php";
            break;	
        case "R8":
            /*Rosenthal Life Service*/
            page = rosenthal + "life_service.php";
            break;	
        case "R9":
            /*Rosenthal one2one*/
            page = rosenthal + "one2one.php";
            break;	
        case "R10":
            //Rosenthal Quadrondo
            page = rosenthal + "quadrondo.php";
            break;	
        case "R11":
            /*Rosenthal folio*/
            page = rosenthal + "folio.php";
            break;	
        case "R12":
            /*Rosenthal solitaires*/
            page = rosenthal + "solitaires.phpp";
            break;		
        /*--------------------------------------------------------------*/			
        case "S0":
            /*Spacesaver*/
            page = spacesaver;
            break;	
        case "S1":
            /*Spacesaver archiveros*/
            page = spacesaver + "prod_cat.asp?cat_id=3";
            break;	
        case "S2":
            /*Spacesaver estanteria*/
            page = spacesaver + "prod_cat.asp?cat_id=4";
            break;
        case "S3":
            /*Spacesaver armarios*/
            page = spacesaver + "prod_cat.asp?cat_id=5";
            break;	
        /*--------------------------------------------------------------*/			
        case "C0":
            /*Camino*/
            page = camino;
            break;	
        case "C1":
            /*Camino pisos de acero*/
            page = camino + "oe_wc_series.html";
            break;	
        case "C2":
            /*Camino pisos falsos ETP*/
            page = camino + "oe_etp_series.html";
            break;
        case "C3":
            /*Camino pisos falsos LP*/
            page = camino + "oe_low_profile.html";
            break;
        /*--------------------------------------------------------------*/			
        case "N0":
            /*Nienkamper*/
            page = nienkamper;
            break;	
        case "N1":
            /*Nienkamper silleria*/
            page = nienkamper + "product.asp?cat=6";
            break;	
        case "N2":
            /*Nienkamper sillones*/
            page = nienkamper + "product.asp?cat=7";
            break;
        case "N3":
            /*Nienkamper estanteria*/
            page = nienkamper + "product.asp?cat=8";
            break;	
        case "N4":
            /*Nienkamper mesas*/
            page = nienkamper + "product.asp?cat=9";
            break;
    }
    return page;
}


function showPage(obj) {
    var page = "";
    var selectValue = obj;
    if (selectValue != "") {
        page = getPage(selectValue);
	    top.frames[1].location = page;
    }
}

function writeCatalog(strFuncion, strOption){
    var strSelected = "";
	var strDivision = '<option value="">_______________________</option>';	

    document.write('<select name="slcCatalogo" style="width:155px" onchange="' + strFuncion + '">');
    document.write('<option value="">&raquo; Cat&aacute;logo</option>');
    document.write(strDivision);	
    (strOption == 'H0') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H0" class="option-title" ' + strSelected + '>Haworth</option>');
    (strOption == 'H1') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H1" class="option-rojo" ' + strSelected + '>&nbsp;&nbsp;Archiveros</option>');
    (strOption == 'H2') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H2" class="option-rojo" ' + strSelected + '>&nbsp;&nbsp;Iluminación</option>');
    (strOption == 'H3') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H3" class="option-rojo" ' + strSelected + '>&nbsp;&nbsp;Mesas</option>');
    (strOption == 'H4') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H4" class="option-rojo" ' + strSelected + '>&nbsp;&nbsp;Mobiliario</option>');
    (strOption == 'H5') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H5" class="option-rojo" ' + strSelected + '>&nbsp;&nbsp;Muros</option>');
    (strOption == 'H6') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="H6" class="option-rojo" ' + strSelected + '>&nbsp;&nbsp;Pisos</option>');
    document.write(strDivision);	
    (strOption == 'R0') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="R0" class="option-title" ' + strSelected + '>PHILIP Möbelmanufaktur</option>');
    (strOption == 'R1') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R1" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Prisma</option>');
    (strOption == 'R2') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R2" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Ypsilon</option>');
    (strOption == 'R3') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R3" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Muevo</option>');
    (strOption == 'R4') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R4" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;me</option>');
    (strOption == 'R5') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R5" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;me Conference</option>');
    (strOption == 'R6') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R6" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Cetera</option>');
    (strOption == 'R7') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R7" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;maxmax</option>');
    (strOption == 'R8') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R8" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Life-Service</option>');
    (strOption == 'R9') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R9" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;One2one</option>');
    (strOption == 'R10') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R10" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Quadrondo</option>');
    (strOption == 'R11') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R11" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Folio</option>');
    (strOption == 'R12') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="R12" class="option-cyan" ' + strSelected + '>&nbsp;&nbsp;Solitaires</option>');
    document.write(strDivision);	
    (strOption == 'S0') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="S0" class="option-title" ' + strSelected + '>Spacesaver</option>');
    (strOption == 'S1') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="S1" class="option-amarillo" ' + strSelected + '>&nbsp;&nbsp;Archiveros</option>');
    (strOption == 'S2') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="S2" class="option-amarillo" ' + strSelected + '>&nbsp;&nbsp;Estanter&iacute;a</option>');
    (strOption == 'S3') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="S3" class="option-amarillo" ' + strSelected + '>&nbsp;&nbsp;Armarios</option>');
    document.write(strDivision);	
    (strOption == 'C0') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="C0" class="option-title" ' + strSelected + '>Piso falso</option>');
    (strOption == 'C1') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="C1" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Pisos de acero</option>');
    (strOption == 'C2') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="C2" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Pisos falsos ETP</option>');
    (strOption == 'C3') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="C3" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Pisos falsos LP</option>');
    document.write(strDivision);	
    (strOption == 'N0') ? strSelected = "selected" : strSelected = "";
    document.write('<option value="N0" class="option-title" ' + strSelected + '>Nienk&auml;mper</option>');
    (strOption == 'N1') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="N1" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Sillas</option>');
    (strOption == 'N2') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="N2" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Sillones</option>');
    (strOption == 'N3') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="N3" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Estantes</option>');
    (strOption == 'N4') ? strSelected = "selected" : strSelected = "";
	document.write('<option value="N4" class="option-gris" ' + strSelected + '>&nbsp;&nbsp;Mesas</option>');
    document.write('</select>');
}