// JavaScript Document

function displaylargeimg(id,imgcat, alttext)
{
  //alert(id+"-"+imgcat+"-"+alttext);//french-doors-01-white-large.jpg
  var limg="/images/patio-doors-"+id+"-"+imgcat+"-large.jpg";
  //alert(limg);
  document.getElementById("largeimg").src=limg;
  //var limgalt="";
  var wincon=getcontent(id);
  //var modimgcat=imgcat.replace("-"," ");
  //modimgcat=modimgcat.substring(0,1).toUpperCase();
  
  //limgalt= capitalizeMe(modimgcat);
  document.getElementById("largeimg").alt=alttext;
  document.getElementById("win_headline").innerHTML =alttext;
  document.getElementById("win_text").innerHTML =wincon;
  
  
}
function getcontent(cid)
{
	 var content="";
	 if(cid=='01')
	 {
		 var content="Our patio doors are available in a variety of finishes, including realistic wood effects. Here, our Oak patio door provides a realistic, light coloured timber effect, and the gold handles complement the colour nicely. Plus our energy saving glass will help you save on heating bills.";
	}
	if(cid=='02')
	 {
		 var content="Stylish and elegant, our patio door handles are also robust and fitted with the latest high security multi-point locking mechanisms, for your peace of mind. This gold handle adds an attractive finishing touch, and is also available in white, chrome and black.";
	}
	if(cid=='03')
	 {
		 var content="Our patio door handles combine security and safety with style, so while they are both sturdy and highly secure, they also look great. All our products are manufactured with high performance materials to ensure they last, and you can customise your door furniture for the perfect patio.";
	}
	if(cid=='04')
	 {
		 var content="Let more light in with Safestyle's patio doors, and save on your heating bills with energy saving glass. Plus with the latest high security features, you can feel safe and secure in your home. Both practical and stylish, you can also choose between Oak and Rosewood as well as White to suit your home.";
	}
	
	return content;
}
function capitalizeMe(value) {
        val = value;
        newVal = '';
        val = val.split(' ');
        for(var c=0; c < val.length; c++) {
                newVal += val[c].substring(0,1).toUpperCase() +
val[c].substring(1,val[c].length) + ' ';
        }
       return newVal;
}

