<!-- Web Generada con Mis Productos.net http://www.misproductos.net (Licencia 972C - 1394 - E85B)--> 



function replace(originalString,searchText,replaceText) { 
var strLength = originalString.length; 
var txtLength = searchText.length; 
if ((strLength == 0) || (txtLength == 0)) 
{ return originalString; } 
var i = originalString.indexOf(searchText); 
if ((!i) && (searchText != originalString.substring(0,txtLength))) 
{ return originalString; } 
if (i == -1) 
{ return originalString; } 
var newstr = originalString.substring(0,i) + replaceText; 
if (i+txtLength < strLength) 
{ newstr += replace(originalString.substring(i+txtLength,strLength),searchText,replaceText); } 
return newstr;} 


function currency(anynum) {
   //-- Returns passed number as string in $xxx,xxx.xx format.
   anynum=eval(anynum)
   
   workNum=Math.abs((Math.round(anynum*100)/100));
   workStr=replace(""+workNum,".",",")
   if (workStr.indexOf(",")==-1){workStr+=",00"}
   dStr=workStr.substr(0,workStr.indexOf(","));dNum=dStr-0
   pStr=workStr.substr(workStr.indexOf(","))
   while (pStr.length<3){pStr+="0"}

   //--- Adds comma in thousands place.
   if (dNum>=1000) {
      dLen=dStr.length
      dStr=parseInt(""+(dNum/1000))+"."+dStr.substring(dLen-3,dLen)
   }

   //-- Adds comma in millions place.
   if (dNum>=1000000) {
      dLen=dStr.length
      dStr=parseInt(""+(dNum/1000000))+"."+dStr.substring(dLen-7,dLen)
   }
   retval = dStr + pStr 
   //-- Put numbers in parentheses if negative.
   if (anynum<0) {retval="- "+retval}
   return retval
}
function isCat(Category,ListCategory){
var result=0;
var arrCat = ListCategory.split("-");
for (ind=0;ind <arrCat.length; ind++){
   if (arrCat[ind]==Category){
       result=1;
   }
}
return result;
}

function buscar (CodCatB,Importe1B,Importe2B) 
{
     
       var html="";
       var cl = "";
       var sw = 0;
       var c=0;
       var url=""       
     
     

      

       for (var ind=0; ind < CategoryID.length; ind++) {
            

          //  if (CategoryID[ind] == CodCatB || CodCatB == "") {
              if (isCat(CategoryID[ind] ,CodCatB) || CodCatB == "") {
               if (Import1[ind] > parseInt(Importe1B, 10) || Importe1B == "") {  
                   if (Import1[ind] < parseInt(Importe2B, 10) || Importe2B == "")  {
                
            //generamos una linea de la taula
             
               c++;
               url = "<a href='" + CodReg[ind] + "ES.html' class='smalltext'>" ;
     html=html+"<table width=166 cellspacing=0 cellpadding=3>";
     html=html+"<tr><td height='1' class=lineasup></td></tr>";
     html=html+"<tr><td class=titolproducte><b>" + CategoryDesc[ind] + "</b></td></tr>";
     html=html+"<tr><td height='1' class=lineasup></td></tr>";
     html=html+"<tr><td><a href='" +  CodReg[ind] +"ES.html'><img border=0 src='" + ImageList[ind] + "-sm2.jpg' width=160 height=120></a></td></tr>";
     html=html+"<tr><td class=lnkproducte><a href='%%PRODUCTID%%ES.html' style='FONT-SIZE: 11px;'>"+ Descripcion[ind]  +"</a></td></tr>";
     html=html+"<tr><td height='1' class=lineasup></td></tr>";

      html=html+"</table>";	 
            html=html+"</td>";
              html=html+"<td valign='top'>";



                 if (sw < 2) {
                    html = html + "</td><td>";
                   sw++;
                  }else{
                    html = html + "</td></tr><tr><td>";
                    sw = 0;
                  }            

 

                  }
               }
           
       }
   }  
          html = html + "</tr></td></table>";
 html="<table border=0 width=500><tr><td colspan=5 align=center class=normaltext> Se han encontrado <b>" + c + "</b> resultados.<br>&nbsp;<TR><TD>" + html;
       return(html);
}

function main(){
CodReg = new Array('mai-ling-10003','surigao-10002','jutta-scrannage-10008','denis-jeanson-10007','cheval-10006','jimmi-jacinto-10005','consolation-10004','secrets-de-femmes-10001' );
Descripcion = new Array('Maï Ling','Surigao','Jutta SCRANNAGE','Denis JEANSON','Cheval','jimmi jacinto','Consolation','Secrets de femmes' );
Import1= new Array(0,0,0,0,0,0,0,0 );
ImageList=new Array('1000300','1000200','1000800','1000700','1000600','1000500','1000400','1000100' );

CategoryID= new Array('27015','27015','1F517','2FA18','23C16','2F718','27015','27015' );
CategoryDesc= new Array('Pintura/Agnès BOULERY','Pintura/Agnès BOULERY','Pintura/Jutta SCRANNAGE','Fotografia/Denis Jeanson','Escultura/Michel FIORI','Fotografia/Jimmi Jacinto','Pintura/Agnès BOULERY','Pintura/Agnès BOULERY' );
 
var urlTmp = location.href;
UrlArr = urlTmp.split("?",2);
var param=UrlArr[1];
arrparam=param.split("&",50);
var category = "";
var poblacion = "";
var importe1 = "";
var importe2 = "";
var valor = "";
   for(var ind = 0; ind < arrparam.length; ind++) { 
        
          identifi = arrparam[ind].split("=",2); // tipovivienda=v
          if(identifi.length >= 1){
             valor = identifi[1];
                }
         switch(identifi[0])  { 
                case "cat":
                    category = valor;
                   
                    break;
                
                case "importe1":
	            importe1 = valor;
                    break;
                case "importe2":
                    importe2 = valor;
                    break;
          }
        
      } 


document.writeln('<html>');
document.writeln('');
document.writeln('<head>');
document.writeln('<title>Galeria Demostración - Galeria Arte, Pintura y fotografia</title>');
document.writeln('<LINK REL="stylesheet" HREF="style.css" TYPE="text/css">');
document.writeln('</head>');
document.writeln('');
document.writeln('<body style="margin:0"><BR>');
document.writeln('<table width=100% cellspacing=0 cellpadding=0 border=0>');
document.writeln('    <tr><td height=1 class="lineasup"></td></tr>');
document.writeln(' <tr><td bgcolor="#779BBF"><table  cellspacing=0 cellpadding=0 border=0><tr><td  height=96 width=160 bgcolor="FFFFFF"><a href="/"><img src="corplogo.jpg"  border=0 alt="Galeria Demostración"></a></td><td  width=626 style="BACKGROUND: url(headerblau.jpg) no-repeat left" valign=top align=right><p style="margin-top:10; margin-right:20"><a href="indexES.html" class=headertext><b>Galeria Demostración<BR>Galeria Arte, Pintura y fotografia</b></a></p></td><td></tr></table></td></tr>');
document.writeln('	<tr><td height=1 class="lineasup"></td></tr>');
document.writeln('	<tr><td class="mnuhorizontal">');
document.writeln('<!--MENU HORIZONTAL-->');
document.writeln('			<table border=0 width=698 class="mnuhorizontal" height=25>');
document.writeln('			    <tr>');
document.writeln('			    <td width=160 class=bottonInfo></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="indexES.html">&nbsp;Página Principal&nbsp;</a></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="aboutusES.html">&nbsp;Quiénes somos&nbsp;</a></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="findusES.html">&nbsp;Dónde estamos&nbsp;</a></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="contactES.html">&nbsp;Contactar&nbsp;</a></td></tr>');
document.writeln('			</table>');
document.writeln('<!--FINAL MENU HORIZONTAL-->');
document.writeln('	</td></tr>');
document.writeln('	<tr><td>');
document.writeln('		<table border=0 width=698 cellspacing=0 cellpadding=0>');
document.writeln('			<tr><td width=160 class="bgmnuvertical" valign=top>');
document.writeln('			    	<!--MENU VERTICAL-->');



document.writeln('<table width=100% cellspacing=0 cellpadding=0> <TR>');
document.writeln('<TD id="cEscultura" width=20></TD>');
document.writeln('<TD onmouseover="cEscultura.className=\'boxover\'" onmouseout="cEscultura.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=23C16" style="MARGIN-LEFT: 5px"><B>Escultura</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s23C16 width=20></TD>');
document.writeln('<TD onmouseover="s23C16.className=\'boxover\'" onmouseout="s23C16.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=23C16" style="MARGIN-LEFT: 15px" >Michel FIORI</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('<TR>');
document.writeln('<TD id="cFotografia" width=20></TD>');
document.writeln('<TD onmouseover="cFotografia.className=\'boxover\'" onmouseout="cFotografia.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=2FA18-2F718" style="MARGIN-LEFT: 5px"><B>Fotografia</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s2FA18 width=20></TD>');
document.writeln('<TD onmouseover="s2FA18.className=\'boxover\'" onmouseout="s2FA18.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=2FA18" style="MARGIN-LEFT: 15px" >Denis Jeanson</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s2F718 width=20></TD>');
document.writeln('<TD onmouseover="s2F718.className=\'boxover\'" onmouseout="s2F718.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=2F718" style="MARGIN-LEFT: 15px" >Jimmi Jacinto</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('<TR>');
document.writeln('<TD id="cPintura" width=20></TD>');
document.writeln('<TD onmouseover="cPintura.className=\'boxover\'" onmouseout="cPintura.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=27015-1F517" style="MARGIN-LEFT: 5px"><B>Pintura</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s27015 width=20></TD>');
document.writeln('<TD onmouseover="s27015.className=\'boxover\'" onmouseout="s27015.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=27015" style="MARGIN-LEFT: 15px" >Agnès BOULERY</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s1F517 width=20></TD>');
document.writeln('<TD onmouseover="s1F517.className=\'boxover\'" onmouseout="s1F517.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=1F517" style="MARGIN-LEFT: 15px" >Jutta SCRANNAGE</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('</table>');



document.writeln('			    	<!--FINAL MENU VERTICAL-->');
document.writeln('			    </td>');
document.writeln('			  <td width=1 class="mnuhorizontal"></td> <!--LINEA VERTICAL-->');
document.writeln('			      <td valign=top class=normaltext width=537><!--PARTCENTRAL-->');
document.writeln('			      	     			      	      <!--INFO EMPRESA-->');
document.writeln('			      	      <p style="margin-left: 30; margin-top: 20" align="justify">');


document.writeln(buscar(category,importe1, importe2));

document.writeln('');
document.writeln('	<br>');
document.writeln('						  </p>');
document.writeln('			      </td>');
document.writeln('			  </tr>');
document.writeln('	    </table>');
document.writeln('	</td></tr>');
document.writeln('	');
document.writeln('	<tr><td class="mnuhorizontal"><p align=center class=bottonInfo>');
document.writeln('	<b>Galeria Demostración</b><br><a href="mailto:info@innova22.com" class=bottonInfo>info@innova22.com</a> - 93 123 45 67 - c/ Demostración, 15 - Barcelona');
document.writeln('	</p>');
document.writeln('	</td></tr>');
document.writeln('	<tr><td heigth=0 class="lineasup"></td></tr>');
document.writeln('</table>');
document.writeln('<table border=0 cellspacing=0 cellpadding=0><tr><td class=lnkproducte>&nbsp;&nbsp;<a href="http://www.misproductos.net" target=_blank style="FONT-SIZE: 10px;">Creada con MisProductos.net</a></td></tr></table>');
document.writeln('</body>');
document.writeln('');
document.writeln('</html>');
document.writeln('');
document.writeln('');

return true;
}  
