function Produse(img)
{
newWin = window.open ("large_produse.php?img=" + img, "ProduseWin" + img,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeLampiStr(string) {
//NewWinLImg = string.substring(45, 48);
NewWinLImg = string.match(/[0-9]{3}/);
return NewWinLImg;
}
function largeLampi(id)
{
newWin = window.open ("large_lampi.php?id=" + id, "LampiWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeMaterialeStr(string) {
//NewWinMImg = string.substring(42, 45);
NewWinMImg = string.match(/[0-9]{3}/);
return NewWinMImg;
}
function largeMateriale(id)
{
newWin = window.open ("large_materiale.php?id=" + id, "MatWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeGeamStr(string) {
//NewWinGImg = string.substring(44, 47);
NewWinGImg = string.match(/[0-9]{3}/);
return NewWinGImg;
}
function largeGeam(id)
{
newWin = window.open ("large_geam.php?id=" + id, "GeamWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeOrnaStr(string) {
//NewWinOImg = string.substring(42, 45);
NewWinOImg = string.match(/[0-9]{3}/);
return NewWinOImg;
}
function largeOrna(id)
{
newWin = window.open ("large_ornamente.php?id=" + id, "OrnaWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeVitraliiStr(string) {
//NewWinVImg = string.substring(41, 44);
NewWinVImg = string.match(/[0-9]{3}/);
return NewWinVImg;
}
function largeVitralii(id)
{
newWin = window.open ("large_vitralii.php?id=" + id, "VitraliiWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeOglinziStr(string) {
//NewWinOgImg = string.substring(40, 43);
NewWinOImg = string.match(/[0-9]{3}/);
return NewWinOImg;
}
function largeOglinzi(id)
{
newWin = window.open ("large_oglinzi.php?id=" + id, "OglinziWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}
function largeBisericiStr(string) {
//NewWinBImg = string.substring(41, 44);
NewWinBImg = string.match(/[0-9]{3}/);
return NewWinBImg;
}
function largeBiserici(id)
{
newWin = window.open ("large_biserici.php?id=" + id, "BisericiWin" + id,
    "location=0,status=0,scrollbars=0,titlebar=0,width=250,height=250");
newWin.moveTo(screen.width / 2 - 150,100);
}

function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

