﻿
// DOM functions
var mintLast=3
var mintFirst=1
var mintCount;
var mstrProduct;

function setPageHeight()
{
    //debugger;
    //l_lngContainerHeight = document.getElementById('centerpanel').offsetHeight;
    //l_lngContainerHeight = document.getElementById('container').offsetHeight;
    //h = document.documentElement.clientHeight;
    //    l_objCenterPanel = document.getElementById('centerpanel');
    //    
    //    l_objCenterPanel.style.height = (l_lngContainerHeight-40) + "px"; 
    //l_objRightShadeDIV = document.getElementById('rightshade');
    //l_objRightShadeDIV.style.height = (l_lngContainerHeight  ) + "px"; 
    //h = (typeof window.innerHeight != 'undefined' ? window.innerHeight : document.body.offsetHeight);

    
}

function showProduct(pstrCompleteImageURL)
{
    //debugger;
    file = getFileNameFromURL(pstrCompleteImageURL);
    var fileName = new String();
    fileName = file.split('.')[0] + '_big.jpg';
    document.getElementById('product').style.backgroundImage = 'url(products/'+fileName+')';
    document.getElementById('productdetail').innerHTML = mstrProduct[(file.split('.')[0].split('_')[2])-1]
    

}
function setProductName()
{
    
    document.getElementById('productdetail').innerHTML = mstrProduct[0]
}
function forwardMove()
{
    //debugger;
    
    if (mintLast < mintCount)
    {
        mintLast=mintLast+1;
        mintFirst =  mintFirst + 1
        //file = getFileNameFromURL(pstrCompleteImageURL);
        var fileName = new String();
        fileName = document.images['p3'].src.split('_');
        document.images['p3'].src = fileName[0] + '_' + fileName[1] + '_' + mintLast + '.jpg';
        document.images['p2'].src = fileName[0] + '_' + fileName[1] + '_' + (mintLast-1) + '.jpg';
        document.images['p1'].src = fileName[0] + '_' + fileName[1] + '_' + mintFirst + '.jpg';
    }

}

function backwardMove()
{
    //debugger;
    //if 
  
    if( mintFirst>1)
    {
        mintLast=mintLast-1;
        mintFirst =  mintFirst - 1;
        var fileName = new String();
        fileName = document.images['p3'].src.split('_');
        document.images['p3'].src = fileName[0] + '_' + fileName[1] + '_' + mintLast + '.jpg';
        document.images['p2'].src = fileName[0] + '_' + fileName[1] + '_' + (mintLast-1) + '.jpg';
        document.images['p1'].src = fileName[0] + '_' + fileName[1] + '_' + mintFirst + '.jpg';
    }

}

function getFileNameFromURL(pstrCompleteImageURL)
{
    if (pstrCompleteImageURL.lastIndexOf('/') !=-1)
    {
        firstpos=pstrCompleteImageURL.lastIndexOf('/')+1;
        lastpos=pstrCompleteImageURL.length;
        imageName=pstrCompleteImageURL.substring(firstpos,lastpos);
        return imageName;

    }

}

function setProductDetailArray()
{
    //images count and product details for each category
    //debugger;
    pstrCurrentPage = getFileNameFromURL(location.href);
    if(pstrCurrentPage.indexOf('living_fabric_sofa.html')!= -1)
    {
        //************** Living--> fabric sofa ****************
        mintCount = 6;
        mstrProduct= new Array(6)
        mstrProduct[0]='CHILLIN By Bruhel';
        mstrProduct[1]='SABELLA From Objekt';  
        mstrProduct[2]='ENDRINO From Objekt';
        mstrProduct[3]='SABELLA By Bruhel';
        mstrProduct[4]='CHILLIN From Objekt';
        mstrProduct[5]='CHILLIN By Bruhel';
        mstrProduct[6]='CHILLIN By Bruhel';
    }
       
    
    if(pstrCurrentPage.indexOf('living_leather_sofa.html')!= -1)
    {
        //************** Living--> leather sofa ****************
        mintCount = 11;
        mstrProduct= new Array(11)
        mstrProduct[0]='Avensis By Fjords';
        mstrProduct[1]='C788 By Contempo';
        mstrProduct[2]='Cal091 By Calia Italia';
        mstrProduct[3]='C1031 by Contempo';
        mstrProduct[4]='CAL601 By Calia Italia';
        mstrProduct[5]='CAL226 By Calia Italia';
        mstrProduct[6]='Cal226 By Calia Italia';
        mstrProduct[7]='Cal091 By Calia Italia';
        mstrProduct[8]='Andhra By Simmons';
        mstrProduct[9]='Lahore Homecinema By Simmons';
        mstrProduct[10]='Appolo By Simmons';
        mstrProduct[11]='Appolo By Simmons';
        

    }
    if(pstrCurrentPage.indexOf('living_relax_chair.html')!= -1)
    {
        //************** Living--> relax chair ****************
        mintCount = 5;
        mstrProduct= new Array(5)
        mstrProduct[0]='Select By Swedese';
        mstrProduct[1]='Admiral By Fjords';
        mstrProduct[2]='Tinde By Fjords';
        mstrProduct[3]='Appolo By Simmons';
        mstrProduct[4]='Lahore By Simmons';
        mstrProduct[5]='Select By Swedese';
       

    }
     if(pstrCurrentPage.indexOf('living_unique_pieces.html')!= -1)
    {
        //************** Living--> unique pieces ****************
        mintCount = 19;
        mstrProduct= new Array(19)
        mstrProduct[0]='Lamino By Swedese';
        mstrProduct[1]='Amorini By Swedese';
        mstrProduct[2]='Amorini By Swedese';
        mstrProduct[3]='Ambrogina By Missoni';
        mstrProduct[4]='Papageno By Leolux';
        mstrProduct[5]='Papageno By Leolux';
        mstrProduct[6]='Palone By Leolux';
        mstrProduct[7]='Kikko By Leolux';
        mstrProduct[8]='Gisa By Leolux';
        mstrProduct[9]='Akka By leolux';
        mstrProduct[10]='Cocos By Frag';
        mstrProduct[11]='Cal200 by Calia Italia';
        mstrProduct[12]='Bigarm by Bruehl';
        mstrProduct[13]='Bigarm by Bruehl';
        mstrProduct[14]='Chillin By Bruehl';
        mstrProduct[15]='Cal200 by Calia Italia';
        mstrProduct[16]='Baloo By Fjords';
        mstrProduct[17]='Baloo By Fjords';
        mstrProduct[18]='Chillin By Bruehl';
       

    }
    
    if(pstrCurrentPage.indexOf('living_coffee_tables.html')!= -1)
    {
        //************** Living--> coffee and corner tables ****************
        mintCount = 10;
        mstrProduct= new Array(10)
        mstrProduct[0]='Wave By Fjords';
        mstrProduct[1]='Sabre By EDA';
        mstrProduct[2]='Moving By EDA';
        mstrProduct[3]='Lys 3Level By Eda';
        mstrProduct[4]='Butterfly By Ciacci';
        mstrProduct[5]='Tray By Calligaris';
        mstrProduct[6]='Shell By Calligaris';
        mstrProduct[7]='Shell By Calligaris';
        mstrProduct[8]='Real By Calligaris';
        mstrProduct[9]='Kaleidiscope By Calligaris';
        mstrProduct[10]='Kaleidiscope By Calligaris';
        mstrProduct[11]='Kaleido By Calligaris';
        mstrProduct[12]='Lys 3Level By Eda';
        mstrProduct[13]='Tray By Calligaris';
        mstrProduct[14]='Joy Square By Calligaris';
        mstrProduct[15]='Joy Round By Calligaris';
        mstrProduct[16]='Flower By Swedese';
        mstrProduct[17]='A03 By Fjords';
        mstrProduct[18]='Vex Square By EDA';
       

    }
    
    if(pstrCurrentPage.indexOf('living_corner_tables.html')!= -1)
    {
        //************** Living--> console and other tables ****************
        mintCount = 8;
        mstrProduct= new Array(8)
        mstrProduct[0]='Eda Lys';
        mstrProduct[1]='Tray By Calligaris';
        mstrProduct[2]='Joy Square By Calligaris';
        mstrProduct[3]='Joy Round By Calligaris';
        mstrProduct[4]='Swedese Flower';
        mstrProduct[5]='A03 by Fjords';
        mstrProduct[6]='Vex by Eda';
        mstrProduct[7]='BMB Glass Nest';
   
     
    }
    
	  if(pstrCurrentPage.indexOf('living_complimentary.html')!= -1)
    {
        //************** Living--> console and other tables ****************
        mintCount = 8;
        mstrProduct= new Array(8)
        mstrProduct[0]='Glass Bar by Calligaris';
        mstrProduct[1]='Landscape Table by Calligaris';
        mstrProduct[2]='Living Bar by Calligaris';
        mstrProduct[3]='Tray by Calligaris';
        mstrProduct[4]='Round Tray by Calligaris';
        mstrProduct[5]='Sleep by Eda';
        mstrProduct[6]='ARI by Frag';
        mstrProduct[7]='ARI by Frag';
   
     
    }
	
	
     if(pstrCurrentPage.indexOf('living_display.html')!= -1)
    {
        //************** Living--> display ****************
        mintCount = 13;
        mstrProduct= new Array(13)
        mstrProduct[0]='LOFT by Calligaris';
        mstrProduct[1]='MODUS by Calligaris';
        mstrProduct[2]='SEATTLE by Calligaris';
        mstrProduct[3]='SEATTLE SHELVES by Calligaris';
        mstrProduct[4]='STATION SINGLE by Calligaris';
        mstrProduct[5]='STEP by Calligaris';
        mstrProduct[6]='TALL BEND by Calligaris';
        mstrProduct[7]='TALL BEND by Calligaris';
        mstrProduct[8]='MADRID by EDA';
        mstrProduct[9]='SAIL by EDA';
        mstrProduct[10]='ZINE by EDA';
        mstrProduct[11]='PARTOUT COLLECTION By Gwinner';
        mstrProduct[12]='MORGAN by Porada';
    }

    if(pstrCurrentPage.indexOf('living_hifitv.html')!= -1)
    {
        //************** Living--> HiFi/TV ****************
        mintCount = 16;
        mstrProduct= new Array(16)
        mstrProduct[0]='Panel 152 By Spectral';
        mstrProduct[1]='Move 3002 By Spectral';
        mstrProduct[2]='Lumnaire By Spectral';
        mstrProduct[3]='Curve Collection By Spectral';
        mstrProduct[4]='Closed Collection By Spectral';
        mstrProduct[5]='Closed Collection By Spectral';
        mstrProduct[6]='Closed Collection By Spectral';
        mstrProduct[7]='CL130 By Spectral';
        mstrProduct[8]='Partout Collection By Gwinner';
        mstrProduct[9]='Partout Collection By Gwinner';
        mstrProduct[10]='Partout Collection By Gwinner';
        mstrProduct[11]='Station Programme By Calligaris';
        mstrProduct[12]='Sharp Collection By Calligaris';
        mstrProduct[13]='Seattle Collection By Calligaris';
        mstrProduct[14]='Modus By Calligaris';
        mstrProduct[15]='Gallery programme By Calligaris';
   }
   
    if(pstrCurrentPage.indexOf('rugs_carving.html')!= -1)
    {
        //************** Rugs--> Carving ****************
        mintCount = 7;
        mstrProduct= new Array(7)
        mstrProduct[0]='Zea Collection By Carving';
        mstrProduct[1]='Pompoms By Carving';
        mstrProduct[2]='Moonstoon By Carving';
        mstrProduct[3]='Luca Collection By Carving';
        mstrProduct[4]='Fedora By Carving';
        mstrProduct[5]='Circles By Carving';
        mstrProduct[6]='Charlie Collection By Carving';
   }
   if(pstrCurrentPage.indexOf('rugs_missoni_home.html')!= -1)
    {
        //************** Rugs--> Missoni Home ****************
        mintCount = 19;
        mstrProduct= new Array(19)
        mstrProduct[0]='Wichita BY Missoni';
        mstrProduct[1]='Wengen Collection By Missoni';
        mstrProduct[2]='Wengen Collection By Missoni';
        mstrProduct[3]='Liuwa BY Missoni';
        mstrProduct[4]='Roseraie By Missoni';
        mstrProduct[5]='Roseraie By Missoni';
        mstrProduct[6]='Rajahstan By Missoni';
        mstrProduct[7]='Malmaison By Missoni';
        mstrProduct[8]='Malmaison By Missoni';
        mstrProduct[9]='Dadi By Missoni';
        mstrProduct[10]='Dadi By Missoni';
        mstrProduct[11]='Carousel By Missoni';
        mstrProduct[12]='Carousel By Missoni';
        mstrProduct[13]='Calypso By Missoni';
        mstrProduct[14]='Calypso By Missoni';
        mstrProduct[15]='Bouquet By Missoni';
        mstrProduct[16]='Botanica Collection By Missoni';
        mstrProduct[17]='Botanica Collection By Missoni';
        mstrProduct[18]='Botanica Collection By Missoni';
        mstrProduct[19]='Malmaison By Missoni';
    }
    
     if(pstrCurrentPage.indexOf('rugs_designer_carpets.html')!= -1)
    {
        //************** Rugs--> Design Carpets ****************
        mintCount = 7;
        mstrProduct= new Array(7)
        mstrProduct[0]='VPI By Verner Panton for Designer carpets';
        mstrProduct[1]='VP VIII By Verner Panton for Designer carpets';
        mstrProduct[2]='VP VI By Verner Panton for Designer Carpets';
        mstrProduct[3]='VP VI By Verner Panton for Designer Carpets';
        mstrProduct[4]='Swing By Patrick Nourget for Designer Carpets';
        mstrProduct[5]='Onion I By Verner Panton for Designer Carpets';
        mstrProduct[6]='Pink By Karmin Rashid for designer Carpets';
   }
    if(pstrCurrentPage.indexOf('hall_console_tables.html')!= -1)
    {
        //************** Hall--> Console Tables ****************
        mintCount = 7;
        mstrProduct= new Array(7)
        mstrProduct[0]='Bend By Ciacci';
        mstrProduct[1]='Zenith By Calligaris';
        mstrProduct[2]='Vogue By Calligaris';
        mstrProduct[3]='Wide Gloss Curve By BMB';
        mstrProduct[4]='Narrow Gloss Curve By BMB';
        mstrProduct[5]='Mirror Shelves By BMB';
        mstrProduct[6]='Mirror Console By BMB';
   }
    if(pstrCurrentPage.indexOf('hall_wall_mounted.html')!= -1)
    {
        //************** Hall-->Wall Mounted ****************
        mintCount = 5;
        mstrProduct= new Array(5)
        mstrProduct[0]='Tree By Swedese';
        mstrProduct[1]='Line Colour By Schonbuch';
        mstrProduct[2]='Line By Schonbuch';
        mstrProduct[3]='Dots By Schonbuch';
        mstrProduct[4]='Circuit Collection BY Schonbuch';
      
   }
    if(pstrCurrentPage.indexOf('hall_free_standing.html')!= -1)
    {
        //************** Hall-->Free Standing****************
        mintCount = 4;
        mstrProduct= new Array(4)
        mstrProduct[0]='White Tree By Swedese';
        mstrProduct[1]='Abita BY Calligaris';
        mstrProduct[2]='Landscape By Calligaris';
        mstrProduct[3]='Black Tree By Swedese';
       
   }
   
   
    if(pstrCurrentPage.indexOf('hall_doormats.html')!= -1)
    {
        //************** Hall-->Door Mats****************
        mintCount = 3;
        mstrProduct= new Array(3)
        mstrProduct[0]='Chilewich';
        mstrProduct[1]='Chilewich';
        mstrProduct[2]='Chilewich';
        mstrProduct[3]='Black Tree By Swedese';
       
   }
   
   
   
    if(pstrCurrentPage.indexOf('art_french_studio.html')!= -1)
    {
        //************** Hall-->French Studio ****************
        mintCount = 1;
        mstrProduct= new Array(1)
        mstrProduct[0]='LOFT by Calligaris';
   }
   
    if(pstrCurrentPage.indexOf('art_otto_kasper.html')!= -1)
    {
        //************** Art--> Otto Kasper ****************
        mintCount = 9;
        mstrProduct= new Array(9)
        mstrProduct[0]='VENEZIA By Ottokasper Studio';
        mstrProduct[1]='LEO ORANGE By OttoKasper Studio';
        mstrProduct[2]='LEO EYES By OttoKasper Studio';
        mstrProduct[3]='LEO By OttoKasper Studio';
        mstrProduct[4]='ZEBRA GREEN By OttoKasper Studio';
        mstrProduct[5]='ZEBRA HEAD By OttoKasper Studio';
        mstrProduct[6]='DOG By OttpKasper Studio';
        mstrProduct[7]='CAT By OttoKasper Studio';
        mstrProduct[8]='SWIM By OttoKasper Studio';
       
    }
    if(pstrCurrentPage.indexOf('art_brigid_ibell.html')!= -1)
    {
        //************** Art--> Brigid Ibell ****************
        mintCount = 1;
        mstrProduct= new Array(1)
        mstrProduct[0]='Red Composition By Brigid Ibell';
        mstrProduct[1]='Blue Composition By Brigid Ibell';
       
    }
    
    if(pstrCurrentPage.indexOf('lightning_dixheuresdix.html')!= -1)
    {
        //************** Lightning --> Dixheuresdix ****************
        mintCount = 16;
        mstrProduct= new Array(16)
        mstrProduct[0]='Tubes Collection By Dixheuresdix';
        mstrProduct[1]='Tubes Collection By Dixheuresdix';
        mstrProduct[2]='La Suspension Collection by Dixheures';
        mstrProduct[3]='La Suspension Collection by Dixheures';
        mstrProduct[4]='La Foule By Dixheuresdix';
        mstrProduct[5]='Illico By Dixheuresdix';
        mstrProduct[6]='Illico By Dixheuresdix';
        mstrProduct[7]='Hola Collection By Dixheuresdix';
        mstrProduct[8]='Hola Collection By Dixheuresdix';
        mstrProduct[9]='Colonnes Collection By Dixheuresdix';
        mstrProduct[10]='Colonnes Collection By Dixheuresdix';
        mstrProduct[11]='Athena Collection By Dixheuresdix';
        mstrProduct[12]='Artemis By Dixheuresdix';
        mstrProduct[13]='Aphrodite Collection By Dixheuresdix';
        mstrProduct[14]='Aphrodite Collection By Dixheuresdix';
        mstrProduct[15]='Aphrodite Collection By Dixheuresdix';
   }
   
   if(pstrCurrentPage.indexOf('lightning_movelight.html')!= -1)
    {
        //************** Lightning--> Move Light ****************
        mintCount = 18;
        mstrProduct= new Array(18)
        mstrProduct[0]='Amacord Floor Lamp By Movelight';
        mstrProduct[1]='Dune Ceiling Light By Movelight';
        mstrProduct[2]='Dune Table Lamp By Movelight';
        mstrProduct[3]='Dolce Vita Table Lamp By Movelight';
        mstrProduct[4]='Dolce Vita Table Lamp By Movelight';
        mstrProduct[5]='Dolce Vita Floor Lamp By Movelight';
        mstrProduct[6]='Dolce Vita Ceiling Light BY Movelight';
        mstrProduct[7]='Dolce Vita Light BY Movelight';
        mstrProduct[8]='Bella Donna Wall Light By Movelight';
        mstrProduct[9]='Bella Donna Table Lamp By Movelight';
        mstrProduct[10]='Bella Donna Floor Lamp By Movelight';
        mstrProduct[11]='Bella Donna Floor Lamp By Movelight';
        mstrProduct[12]='Bella Donna Ceiling Light By Movelight';
        mstrProduct[13]='Bella Donna Ceiling Light By Movelight';
        mstrProduct[14]='Bella Donna Ceiling Light By Movelight';
        mstrProduct[15]='Amacord Floor Lamp By Movelight';
        mstrProduct[16]='Amacord Ceiling Light By Movelight';
        mstrProduct[17]='Akis Floor Lamp By Movelight';
       
    }
    if(pstrCurrentPage.indexOf('lightning_francois_chatain.html')!= -1)
    {
        //************** Lightning--> francois chatain ****************
        mintCount = 9;
        mstrProduct= new Array(9)
        mstrProduct[0]='Hoedic by Francois Chatain';
        mstrProduct[1]='Karek Argent by Francois Chatain';
        mstrProduct[2]='Karek Or by Francois Chatain';
        mstrProduct[3]='Karek by Francois Chatain';
        mstrProduct[4]='Axel Or by Francois Chatain';
        mstrProduct[5]='Baobab Géante by Francois Chatain';
        mstrProduct[6]='Baobab by Francois Chatain';
        mstrProduct[7]='Bonen by Francois Chatain';
        mstrProduct[8]='Fanny Géante by Francois Chatain';
        mstrProduct[9]='SEATTLE SHELVES by Calligaris';
        mstrProduct[10]='STATION SINGLE by Calligaris';
        mstrProduct[11]='STEP by Calligaris';
        mstrProduct[12]='LOFT by Calligaris';
        mstrProduct[13]='MODUS by Calligaris';
        mstrProduct[14]='SEATTLE by Calligaris';
        mstrProduct[15]='SEATTLE SHELVES by Calligaris';
        mstrProduct[16]='STATION SINGLE by Calligaris';
        mstrProduct[17]='STEP by Calligaris';
       
    }
	
	
	   if(pstrCurrentPage.indexOf('lightning_sce.html')!= -1)
    {
        //************** Lightning--> francois chatain ****************
        mintCount = 4;
        mstrProduct= new Array(4)
        mstrProduct[0]='Pelican Lamp by SCE';
        mstrProduct[1]='Bluff Lamp by SCE';
        mstrProduct[2]='Lamps by SCE';
        mstrProduct[3]='Luna Lamp by SCE';
        
  
       
    }
	
	



	
	
    if(pstrCurrentPage.indexOf('accessories_mirrors.html')!= -1)
    {
        //************** Accessories--> Mirrors ****************
        mintCount = 13;
        mstrProduct= new Array(13)
        mstrProduct[0]='TieAround By Schonbuch';
        mstrProduct[1]='Image By Calligaris';
        mstrProduct[2]='Fat Drop By Calligaris';
        mstrProduct[3]='Skinny Drop By Calligaris';
        mstrProduct[4]='Bubbles By Calligaris';
        mstrProduct[5]='Wave By BMB';
        mstrProduct[6]='Standing Full Glass By BMB';
        mstrProduct[7]='Round by BMB';
        mstrProduct[8]='Moulded By BMB';
        mstrProduct[9]='Gold Vintage By BMB';
        mstrProduct[10]='Cross By BMB';
        mstrProduct[11]='Black Crystal Surround By BMB';
        mstrProduct[12]='Strip By BMB';
        mstrProduct[13]='3 Strip By BMB';
      
       
    }
    if(pstrCurrentPage.indexOf('accessories_sculpture.html')!= -1)
    {
        //************** Accessories--> Sculpture ****************
        mintCount = 10;
        mstrProduct= new Array(10)
        mstrProduct[0]='Vivacious By ArtisanHouse';
        mstrProduct[1]='Vigorous By ArtisanHouse';
        mstrProduct[2]='Spiral By ArtisanHouse';
        mstrProduct[3]='Seagulls II BY ArtisanHouse';
        mstrProduct[4]='Rio By ArtisanHouse';
        mstrProduct[5]='Magnetic By ArtisanHouse';
        mstrProduct[6]='Kaleidiscope By ArtisanHouse';
        mstrProduct[7]='Fascination By ArtisanHouse';
        mstrProduct[8]='Composite BY ArtisanHouse';
		mstrProduct[9]='Bull + Stein Ceramic Fruit';
       
       
    }
    if(pstrCurrentPage.indexOf('accessories_glass.html')!= -1)
    {
        //************** Accessories --> Glass ****************
        mintCount = 6;
        mstrProduct= new Array(6)
        mstrProduct[0]='Stampato From Salviati';
        mstrProduct[1]='Spoon Collection from Salviati';
        mstrProduct[2]='Goccia Rouge From Salviati';
        mstrProduct[3]='Goccia Gris From Salviati';
		mstrProduct[4]='King (gelb)';
		mstrProduct[5]='Ente Blau Klein';
  		 mstrProduct[6]='King (gelb)';
    }
    if(pstrCurrentPage.indexOf('accessories_finishing.html')!= -1)
    {
        //************** Accessories--> soft furnishing ****************
        mintCount = 16;
        mstrProduct= new Array(16)
        mstrProduct[0]='Roseraie collection By Missoni';
        mstrProduct[1]='Chevron Mix By Missoni';
        mstrProduct[2]='Jerome By Missoni';
        mstrProduct[3]='Missoni Home Collection';
        mstrProduct[4]='Missoni Home Collection';
        mstrProduct[5]='Missoni Home Collection';
        mstrProduct[6]='Missoni Home Collection';
        mstrProduct[7]='Missoni Home Collection';
        mstrProduct[8]='Humbert By Missoni';
        mstrProduct[9]='Humbert By Missoni';
        mstrProduct[10]='Hector By Missoni';
        mstrProduct[11]='Hector By Missoni';
        mstrProduct[12]='Harpo By Missoni';
        mstrProduct[13]='Harpo By Missoni';
        mstrProduct[14]='Funny By Missoni';
        mstrProduct[15]='Irvin Collection By Missoni';
       
       
    }
    
    if(pstrCurrentPage.indexOf('accessories_decorative.html')!= -1)
    {
        //************** Accessories--> decorative ****************
        mintCount = 8;
        mstrProduct= new Array(9)
        mstrProduct[0]='SIA';
        mstrProduct[1]='SIA';
        mstrProduct[2]='SIA';
        mstrProduct[3]='SIA';
        mstrProduct[4]='PARLANE';
        mstrProduct[5]='PARLANE';
        mstrProduct[6]='PARLANE';
        mstrProduct[7]='PARLANE';
        
              
    }
    
    if(pstrCurrentPage.indexOf('accessories_bathroom.html')!= -1)
    {
        //************** Accessories--> bathroom ****************
        mintCount = 7;
        mstrProduct= new Array(7)
        mstrProduct[0]='';
        mstrProduct[1]='';
        mstrProduct[2]='';
        mstrProduct[3]='';
        mstrProduct[4]='';
        mstrProduct[5]='';
        mstrProduct[6]='';
              
    }
	
	
	  if(pstrCurrentPage.indexOf('accessories_bathmats.html')!= -1)
    {
        //************** Accessories--> bathroom ****************
        mintCount = 6;
        mstrProduct= new Array(6)
        mstrProduct[0]='Gill by Missoni';
        mstrProduct[1]='Hill by Missoni';
        mstrProduct[2]='Indro by Missoni';
        mstrProduct[3]='Jamay by Missoni';
        mstrProduct[4]='Jazel by Missoni';
        mstrProduct[5]='Parma by Missoni';
        mstrProduct[6]='Gill by Missoni';
              
    }
	
	
	
	  if(pstrCurrentPage.indexOf('accessories_beachtowels.html')!= -1)
    {
        //************** Accessories--> bathroom ****************
        mintCount = 7;
        mstrProduct= new Array(7)
        mstrProduct[0]='Justin by Missoni';
        mstrProduct[1]='Hugo by Missoni';
        mstrProduct[2]='Imani by Missoni';
        mstrProduct[3]='Ipanema by Missoni';
        mstrProduct[4]='Jamelia by Missoni';
        mstrProduct[5]='Jimmi by Missoni';
        mstrProduct[6]='Jonathan by Missoni';
		mstrProduct[7]='Gill by Missoni';
              
    }
	
	
		  if(pstrCurrentPage.indexOf('accessories_towelsrobes.html')!= -1)
    {
        //************** Accessories--> bathroom ****************
        mintCount = 7;
        mstrProduct= new Array(7)
        mstrProduct[0]='Josephine by Missoni';
        mstrProduct[1]='Giacomi by Missioni';
        mstrProduct[2]='Iakko by Missioni';
        mstrProduct[3]='Jacklyn by Missioni';
        mstrProduct[4]='Jasmyn by Missioni';
        mstrProduct[5]='Jasper by Missoni';
        mstrProduct[6]='Jazz by Missoni';
		mstrProduct[7]='Gill by Missoni';
              
    }
	
	
	
    if(pstrCurrentPage.indexOf('gifts.html')!= -1)
    {
        //************** Gift ****************
        mintCount = 12;
        mstrProduct= new Array(12)
        mstrProduct[0]='Wild by Gaia & Gino';
        mstrProduct[1]='Baby by Sia';
        mstrProduct[2]='MISTIC By Gaia & Gino';
        mstrProduct[3]='LUCKY By Gaia & Gino';
        mstrProduct[4]='GIANTS By Gaia & Gino';
        mstrProduct[5]='DOG BOWL By Gaia & Gino';
		
		mstrProduct[6]='Lampe Berger Agathe';
		mstrProduct[7]='Lamp Berger Bingo';
		mstrProduct[8]='Lampe Berger';
		mstrProduct[9]='Alligator';
		mstrProduct[10]='Pelikan';
		mstrProduct[11]='Gift Vouchers available';
		mstrProduct[12]='Gift Vouchers available';
        
              
    }
    
    if(pstrCurrentPage.indexOf('dining_fixed_tables.html')!= -1)
    {
        //************** Dining --> fixed tables ****************
        mintCount = 8;
        mstrProduct= new Array(8)
        mstrProduct[0]='Prado By Ciacci';
        mstrProduct[1]='Play By Calligaris';
        mstrProduct[2]='Round Play By Calligaris';
        mstrProduct[3]='Round Play By Calligaris';
        mstrProduct[4]='Planet By Calligaris';
        mstrProduct[5]='Action By Calligaris';
        mstrProduct[6]='Action By Calligaris';
        mstrProduct[7]='Icaro 2 By Porada';
      
              
    }
    
    if(pstrCurrentPage.indexOf('dining_extendable_tables.html')!= -1)
    {
        //************** Dining --> extendable tables ****************
        mintCount = 8;
        mstrProduct= new Array(8)
        mstrProduct[0]='Prado By Ciacci';
        mstrProduct[1]='Exit By Ciacci';
        mstrProduct[2]='Domino By Ciacci';
        mstrProduct[3]='Crossroads Square By Calligaris';
        mstrProduct[4]='Crossroads Round By Calligaris';
        mstrProduct[5]='Atelier By Calligaris';
        mstrProduct[6]='Atelier By Calligaris';
        mstrProduct[7]='Action By Calligaris';
                    
    }
    
    if(pstrCurrentPage.indexOf('dining_accessories.html')!= -1)
    {
        //************** Dining--> accessories ****************
        mintCount = 17;
        mstrProduct= new Array(17)
        mstrProduct[0]='Miura Folding table By Plank';
        mstrProduct[1]='Miura Folding stool By Plank';
        mstrProduct[2]='Table Dressing By Chilewich';
        mstrProduct[3]='Table Dressing By Chilewich';
        mstrProduct[4]='Table Dressing By Chilewich';
        mstrProduct[5]='Table Dressing By Chilewich';
        mstrProduct[6]='Table Dressing By Chilewich';
        mstrProduct[7]='Table Dressing By Chilewich';
        mstrProduct[8]='Trolley By Guzzini';
        mstrProduct[9]='Storage By Guzzini';
        mstrProduct[10]='Bake By Guzzini';
        mstrProduct[11]='Cappacino By Guzzini';
        mstrProduct[12]='Eat By Guzzini';
        mstrProduct[13]='Serve By Guzzini';
        mstrProduct[14]='Serve + Display By Guzzini';
        mstrProduct[15]='Irvin By Missoni';
        mstrProduct[16]='Missoni Home';
        mstrProduct[17]='Missoni Home';
        mstrProduct[18]='STEP by Calligaris';
      
    }
    
    if(pstrCurrentPage.indexOf('dining_chairs.html')!= -1)
    {
        //************** Dining--> chair****************
        mintCount = 32;
        mstrProduct= new Array(32)
        mstrProduct[0]='Zanzibar By Frag';
        mstrProduct[1]='Anxie By Porada';
        mstrProduct[2]='Dhia By Frag';
        mstrProduct[3]='Canouan By Frag';
        mstrProduct[4]='Canouan By Frag';
        mstrProduct[5]='Baffin By Frag';
        mstrProduct[6]='Angle B By Frag';
        mstrProduct[7]='Frame By Ciacci';
        mstrProduct[8]='Delfy By Ciacci';
        mstrProduct[9]='Delfy By Ciacci';
        mstrProduct[10]='Camilla By Ciacci';
        mstrProduct[11]='Pod By Calligaris';
        mstrProduct[12]='Plaza leather By Calligaris';
        mstrProduct[13]='Mya By Calligaris';
        mstrProduct[14]='Mummy By Calligaris';
        mstrProduct[15]='Mummy By Calligaris';
        mstrProduct[16]='Mummy By Calligaris';
        mstrProduct[17]='Jam By Calligaris';
        mstrProduct[18]='Jam By Calligaris';
        mstrProduct[19]='Jam By Calligaris';
        mstrProduct[20]='Irony By Calligaris';
        mstrProduct[21]='Irony By Calligaris';
        mstrProduct[22]='Ice By Calligaris';
        mstrProduct[23]='Ice By Calligaris';
        mstrProduct[24]='Ice By Calligaris';
        mstrProduct[25]='Goa Leather By Calligaris';
        mstrProduct[26]='Even By Calligaris';
        mstrProduct[27]='Dejavu with arms By Calligaris';
        mstrProduct[28]='Dejavu Leather By Calligaris';
        mstrProduct[29]='Dejavu Leather with arms By Calligaris';
        mstrProduct[30]='Alchemia By Calligaris';
        mstrProduct[31]='Alchemia By Calligaris';
        mstrProduct[32]='Alchemia By Calligaris';
        mstrProduct[33]='Alchemia By Calligaris';
      
      
    }
      if(pstrCurrentPage.indexOf('dining_stools.html')!= -1)
    {
        //************** Dining --> stools ****************
        mintCount = 9;
        mstrProduct= new Array(9)
        mstrProduct[0]='Sirio By Porada';
        mstrProduct[1]='Miura By Plank';
       <!-- mstrProduct[2]='Miura By Plank';-->
        mstrProduct[2]='Latina By Frag';
        mstrProduct[3]='Goa By Frag';
        mstrProduct[4]='Evia By Frag';
        mstrProduct[5]='Angle B By Frag';
        mstrProduct[6]='Ice Single Pedestal By Calligaris';
        mstrProduct[7]='Irony By Calligaris';
        mstrProduct[8]='Even By Calligaris';
                    
    }
    
    if(pstrCurrentPage.indexOf('dining_sideboards.html')!= -1)
    {
        //************** Dining --> side boards ****************
        mintCount = 8;
        mstrProduct= new Array(8)
        mstrProduct[0]='Abacus By Ciacci';
        mstrProduct[1]='Station Programme By Calligaris';
        mstrProduct[2]='Seattle Collection By Calligaris';
        mstrProduct[3]='Seattle Collection By Calligaris';
        mstrProduct[4]='Bend By Calligaris';
        mstrProduct[5]='Modus By Calligaris';
        mstrProduct[6]='Domino By Calligaris';
        mstrProduct[7]='Dom By Calligaris';
                    
    }
    
}

window.onload=function()
{ 
   setProductDetailArray();
   setProductName()
   //setPageHeight();
}

