function stripcars(string)
{
 if (string=="") return "";
 else {
  string = ""+string;
  string = string.toLowerCase();
  var string2 = "";
  for(var i=0,n=string.length;i<n;i++) 
     string2 += (string.charAt(i)>="0" && string.charAt(i)<="9") || (string.charAt(i)>="a" && string.charAt(i)<="z") ? string.charAt(i) : "-";
  n=string2.length;
  string2 = string2.split("--").join("-");
  while (n!=string2.length)
  {
     string2 = string2.split("--").join("-");
     n = string2.length;
  }
  return string2;
 }
}

var tmp = ""+window.location.pathname;
var tmp2 = tmp.split("/");
var fichier = tmp2[tmp2.length-1];
if (fichier=="index.html"||fichier==""||fichier=="."||fichier=="default.htm"||fichier=="default.asp") fichier="./";

var obj = document.getElementById("sel");
if (obj && obj.selectedIndex>=0 
        && obj.options[obj.selectedIndex].value==fichier)
{

    var portfolio_metics = [
    		{maxsize:900, cols:4, rows:3}, // venise nocturnes
    		{maxsize:800, cols:4, rows:3}, // new york
    		{maxsize:800, cols:4, rows:3}, // paris
    		{maxsize:800, cols:4, rows:3}, // california nocturnes
    		{maxsize:800, cols:4, rows:3}, // california
    		{maxsize:800, cols:4, rows:3}, // california signs
    		{maxsize:800, cols:4, rows:3}, // motomania
    		{maxsize:1200, cols:4, rows:3}, // venise night sensations
    		{maxsize:1400, cols:3, rows:3} // me myself
    ];
	
	var nom = obj.options[obj.selectedIndex].text;
    var portfolio_name = stripcars(nom);
    var portfolio_maxsize = portfolio_metics[obj.selectedIndex].maxsize;
    var portfolio_cols = portfolio_metics[obj.selectedIndex].cols;
    var portfolio_rows = portfolio_metics[obj.selectedIndex].rows;
}


