function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
} 
var photo = 1;
}

var photo = getQueryVariable("photo");

    if( photo == "1"){
         var pic1 = "<img src='exteriors/SL%20Entry%20sit_sm.jpg' alt='' name='Image1' width='79' height='59' border='0' id='Image1' />";
         var pic2 = "<img src='projects/384-8402_sm_bw.jpg' alt='' name='Image2' width='79' height='59' border='0' id='Image2' />";
         var pic3 = "<img src='exteriors/200_0041_sm_bw.jpg' alt='' name='Image3' width='79' height='59' border='0' id='Image3' />";
         var caption = "Andersen has restored this personal resort with a full fitness circuit and pool renovation (equipment/control, plaster, coping and design-specific cement mix decking that features black Mexican river rock). Andersen replaced the pergola and constructed another leading to a secret garden. These innovative upgrades combined with a host of original features, make this a luxurious retreat near the heart of the city.";
    }
    else if( photo == "2"){
         var pic1 = "<img src='exteriors/SL%20Entry%20sit_sm_bw.jpg' alt='' name='Image1' width='79' height='59' border='0' id='Image1' />";
         var pic2 = "<img src='projects/384-8402_sm.jpg' alt='' name='Image2' width='79' height='59' border='0' id='Image2' />";
         var pic3 = "<img src='exteriors/200_0041_sm_bw.jpg' alt='' name='Image3' width='79' height='59' border='0' id='Image3' />";
         var caption = "This Andersen home showcases original works by a regional artist as well as a variety of other works.  Recessed spotlights and other fixtures highlight significant works.  The use of dimmers allows for maximum control of focus and attention.  ";
    }
	else if( photo == "3"){
         var pic1 = "<img src='exteriors/SL%20Entry%20sit_sm_bw.jpg' alt='' name='Image1' width='79' height='59' border='0' id='Image1' />";
         var pic2 = "<img src='projects/384-8402_sm_bw.jpg' alt='' name='Image2' width='79' height='59' border='0' id='Image2' />";
         var pic3 = "<img src='exteriors/200_0041_sm.jpg' alt='' name='Image3' width='79' height='59' border='0' id='Image3' />";
         var caption = "Decorative lion head sculptures have been protected and transported from a former landmark hotel in Kansas City.  Restoration and renovation included extensive replumbing, allowing the fountains to flow either into the pool or into grates below, when the pool is covered.  The deck, coping and cover pool plaster are created to Andersen’s design specifications.";
    }
    

