
//--- # of images +1
var numImages=47;

//--- this is set up to run in reverse, highest number images will display first

img1 = new Image ()
img1.src = "images/slideshow/PineLakes11.jpg"
img2 = new Image ()
img2.src = "images/slideshow/PineLakes12.jpg"
img3 = new Image ()
img3.src = "images/slideshow/PineLakes13.jpg"
img4 = new Image ()
img4.src = "images/slideshow/PineLakes14.jpg"
img5 = new Image ()
img5.src = "images/slideshow/PineLakes14.jpg"
img6 = new Image ()
img6.src = "images/slideshow/PineLakes16.jpg"
img7 = new Image ()
img7.src = "images/slideshow/PineLakes17.jpg"
img8 = new Image ()
img8.src = "images/slideshow/PineLakes18.jpg"
img9 = new Image ()
img9.src = "images/slideshow/PineLakes19.jpg"
img10 = new Image ()
img10.src = "images/slideshow/PineLakes20.jpg"
img11 = new Image ()
img11.src = "images/slideshow/PineLakes21.jpg"
img12 = new Image ()
img12.src = "images/slideshow/PineLakes22.jpg"
img13 = new Image ()
img13.src = "images/slideshow/PineLakes23.jpg"
img14 = new Image ()
img14.src = "images/slideshow/PineLakes6.jpg"
img15 = new Image ()
img15.src = "images/slideshow/PineLakes7.jpg"
img16 = new Image ()
img16.src = "images/slideshow/PineLakes8.jpg"
img17 = new Image ()
img17.src = "images/slideshow/PineLakes9.jpg"
img18 = new Image ()
img18.src = "images/slideshow/PineLakes10.jpg"
img19 = new Image ()
img19.src = "images/slideshow/PineLakes4.jpg"
img20 = new Image ()
img20.src = "images/slideshow/PineLakes2.jpg"
img21 = new Image ()
img21.src = "images/slideshow/PineLakes3.jpg"
img22 = new Image ()
img22.src = "images/slideshow/PineLakes5.jpg" 
img23 = new Image ()
img23.src = "images/slideshow/IMG_0355_sm.jpg" 
img24 = new Image ()
img24.src = "images/slideshow/IMG_0356_sm.jpg" 
img25 = new Image ()
img25.src = "images/slideshow/IMG_0413_sm.jpg" 
img26 = new Image ()
img26.src = "images/slideshow/IMG_0428_sm.jpg" 
img27 = new Image ()
img27.src = "images/slideshow/IMG_0430_sm.jpg" 
img28 = new Image ()
img28.src = "images/slideshow/IMG_0466_sm.jpg" 
img29 = new Image ()
img29.src = "images/slideshow/IMG_0470_sm.jpg" 
img30 = new Image ()
img30.src = "images/slideshow/IMG_0476_sm.jpg" 
img31 = new Image ()
img31.src = "images/slideshow/IMG_0489_sm.jpg" 
img32 = new Image ()
img32.src = "images/slideshow/IMG_0549_sm.jpg" 
img33 = new Image ()
img33.src = "images/slideshow/IMG_0558_sm.jpg" 
img34 = new Image ()
img34.src = "images/slideshow/IMG_0594_sm.jpg" 
img35 = new Image ()
img35.src = "images/slideshow/IMG_0630_sm.jpg" 
img36 = new Image ()
img36.src = "images/slideshow/IMG_0640_sm.jpg" 
img37 = new Image ()
img37.src = "images/slideshow/IMG_0669_sm.jpg" 
img38 = new Image ()
img38.src = "images/slideshow/IMG_0672_sm.jpg" 


img39 = new Image ()
img39.src = "images/slideshow/IMG_0827_sm.jpg" 
img40 = new Image ()
img40.src = "images/slideshow/IMG_0836_sm.jpg" 
img41 = new Image ()
img41.src = "images/slideshow/IMG_0869_sm.jpg"
img42 = new Image ()
img42.src = "images/slideshow/IMG_0872_sm.jpg" 
img43 = new Image ()
img43.src = "images/slideshow/IMG_0873_sm.jpg" 

img44 = new Image ()
img44.src = "images/slideshow/PL_2-_former_11.jpg" 
img45 = new Image ()
img45.src = "images/slideshow/PL_3_former_12.jpg" 
img46 = new Image ()
img46.src = "images/slideshow/PL_9_former_16.jpg" 
img47 = new Image ()
img47.src = "images/slideshow/PL_11_former_7_.jpg" 


imglg1 = new Image ()
imglg1.src = "images/slideshow/Large/PineLakes11.jpg"
imglg2 = new Image ()
imglg2.src = "images/slideshow/Large/PineLakes12.jpg"
imglg3 = new Image ()
imglg3.src = "images/slideshow/Large/PineLakes13.jpg"
imglg4 = new Image ()
imglg4.src = "images/slideshow/Large/PineLakes14.jpg"
imglg5 = new Image ()
imglg5.src = "images/slideshow/Large/PineLakes15.jpg"
imglg6 = new Image ()
imglg6.src = "images/slideshow/Large/PineLakes16.jpg"
imglg7 = new Image ()
imglg7.src = "images/slideshow/Large/PineLakes17.jpg"
imglg8 = new Image ()
imglg8.src = "images/slideshow/Large/PineLakes18.jpg"
imglg9 = new Image ()
imglg9.src = "images/slideshow/Large/PineLakes19.jpg"
imglg10 = new Image ()
imglg10.src = "images/slideshow/Large/PineLakes20.jpg"
imglg11 = new Image ()
imglg11.src = "images/slideshow/Large/PineLakes21.jpg"
imglg12 = new Image ()
imglg12.src = "images/slideshow/Large/PineLakes22.jpg"
imglg13 = new Image ()
imglg13.src = "images/slideshow/Large/PineLakes23.jpg"
imglg14 = new Image ()
imglg14.src = "images/slideshow/Large/PineLakes6.jpg"
imglg15 = new Image ()
imglg15.src = "images/slideshow/Large/PineLakes7.jpg"
imglg16 = new Image ()
imglg16.src = "images/slideshow/Large/PineLakes8.jpg"
imglg17 = new Image ()
imglg17.src = "images/slideshow/Large/PineLakes9.jpg"
imglg18 = new Image ()
imglg18.src = "images/slideshow/Large/PineLakes10.jpg"
imglg19 = new Image ()
imglg19.src = "images/slideshow/Large/PineLakes4.jpg"
imglg20 = new Image ()
imglg20.src = "images/slideshow/Large/PineLakes2.jpg"
imglg21 = new Image ()
imglg21.src = "images/slideshow/Large/PineLakes3.jpg"
imglg22 = new Image ()
imglg22.src = "images/slideshow/Large/PineLakes5.jpg" 
imglg23 = new Image ()
imglg23.src = "images/slideshow/Large/IMG_0355_lg.jpg" 
imglg24 = new Image ()
imglg24.src = "images/slideshow/Large/IMG_0356_lg.jpg" 
imglg25 = new Image ()
imglg25.src = "images/slideshow/Large/IMG_0413_lg.jpg" 
imglg26 = new Image ()
imglg26.src = "images/slideshow/Large/IMG_0428_lg.jpg" 
imglg27 = new Image ()
imglg27.src = "images/slideshow/Large/IMG_0430_lg.jpg" 
imglg28 = new Image ()
imglg28.src = "images/slideshow/Large/IMG_0466_lg.jpg" 
imglg29 = new Image ()
imglg29.src = "images/slideshow/Large/IMG_0470_lg.jpg" 
imglg30 = new Image ()
imglg30.src = "images/slideshow/Large/IMG_0476_lg.jpg" 
imglg31 = new Image ()
imglg31.src = "images/slideshow/Large/IMG_0489_lg.jpg" 
imglg32 = new Image ()
imglg32.src = "images/slideshow/Large/IMG_0549_lg.jpg" 
imglg33 = new Image ()
imglg33.src = "images/slideshow/Large/IMG_0558_lg.jpg" 
imglg34 = new Image ()
imglg34.src = "images/slideshow/Large/IMG_0594_lg.jpg" 
imglg35 = new Image ()
imglg35.src = "images/slideshow/Large/IMG_0630_lg.jpg" 
imglg36 = new Image ()
imglg36.src = "images/slideshow/Large/IMG_0640_lg.jpg" 
imglg37 = new Image ()
imglg37.src = "images/slideshow/Large/IMG_0669_lg.jpg" 
imglg38 = new Image ()
imglg38.src = "images/slideshow/Large/IMG_0672_lg.jpg" 

imglg39 = new Image ()
imglg39.src = "images/slideshow/Large/IMG_0827_lg.jpg"
imglg40 = new Image ()
imglg40.src = "images/slideshow/Large/IMG_0836_lg.jpg"
imglg41 = new Image ()
imglg41.src = "images/slideshow/Large/IMG_0869_lg.jpg"
imglg42 = new Image ()
imglg42.src = "images/slideshow/Large/IMG_0872_lg.jpg"
imglg43 = new Image ()
imglg43.src = "images/slideshow/Large/IMG_0873_lg.jpg"

imglg44 = new Image ()
imglg44.src = "images/slideshow/Large/PL_2-_former_11.jpg" 
imglg45 = new Image ()
imglg45.src = "images/slideshow/Large/PL_3_former_12.jpg" 
imglg46 = new Image ()
imglg46.src = "images/slideshow/Large/PL_9_former_16.jpg" 
imglg47 = new Image ()
imglg47.src = "images/slideshow/Large/PL_11_former_7_.jpg"



var text = new Array(22);

text[1] = "Sub-surface (storm) drainage installation on #12 fairway (old #8)  which is only a small part of the considerable overall drainage system being installed on the new Pine Lakes.";
text[2] = "Additional view of those same drain lines located between new holes #11 and #12.";
text[3] = "Isolation valves for the new irrigation system are temporarily stored while being inventoried.  These values are used at the beginning and end of each hole so that any section may be isolated within the irrigation system in the event of a leak.  This will allow the system to be shut down on one hole as opposed to turning off the entire irrigation system.";
text[4] = "Display of the new Pine Lakes irrigation pipe inventory located on the old driving range.";
text[5] = "The old Pine Lakes cart barn which was located beside the driving range has been demolished.  As the clubhouse is renovated and expanded, the new cart barn will be relocated there. ";
text[6] = "Part of the Pine Lakes nursery where live oak trees were temporarily placed before being re-planted behind the new #18 green.  The tree in the middle of this photo had been previously located in a lake expansion area and was moved instead of being destroyed.  Because this was the first time the extended roots were cut, the tree is in a temporary \"shock\" stage and the brown leaves are an indication of its recovery process.";
text[7] = "This photo depicts part of the drain line installation on hole #9 (old #16) but specifically the equalizer pipes.  These pipes connect the lakes throughout the course allowing water to be distributed equally to the irrigation lake if necessary.  In other words, a drop in the water level will not be as noticeable if dispersed among several lakes as opposed to pulling from only one lake.";
text[8] = "An additional shot of equalizer pipes connecting the lake on hole #9 (old #16) to the lake on hole #13 (old #4).  These are considerably sized pipes at 24 inches and are not bendable.  The box shown in the lower front of this photo allows the pipe to turn.";
text[9] = "A view from #13 (old #9) green back to #13 fairway.  This was also the original site of the Pine Lakes plant nursery but is now ready for grading followed by hole construction.";
text[10] = "Hole #14 (old #3) with main fairway drainage installed has now been shaped out and ready for irrigation installation.  The pipe in the lower front of the photo is part of the drainage system.";
text[11] = "Hole #17 (old #6), including the bunkers, have been graded out.  This is a view from the center of the fairway looking to the new elevated green complex.";
text[12] = "Hole #1 (old #10) with main line drainage installed and ready for rough grading, shaping and irrigation installation.  Fun fact:  during golf course construction, the doziers are equipped with a GPS and computer drawings of the golf course are loaded.  This allows for the dozier to \"work on its own\".  The dozier driver will operate the machinery until time for fine tuning and then the computer takes over.";
text[13] = "First day of irrigation installation on hole #14 (old #3).  Why start on #14 and not #1?  Holes #14 - #16 are located closer to the irrigation lake and pump station.  Because of the friction generated, the pipe is much bigger there and as distributed throughout the golf course, it decreases.";
text[14] = "Most are aware that irrigation lines run underground throughout the golf course for watering and drainage purposes.  One thing probably not as much considered is the electricity that is also below the playing surfaces which is necessary to operate a computerized irrigation system.  This photo shows some of those power lines which are being run to the new Pine Lake's pump station and irrigation system."  
text[15] = "Craig Schreiner is the ultimate hands-on golf course architect.  Here Craig is actually running the bulldozer as he personally shapes the new putting green located by the old #10 tee (new #1)."
text[16] = "This photo depicts a view of the new #18 green (old #2) from the new #10 fairway (old #1).  The most notable change is the elevated green complex which was previously flat. "
text[17] = "This is a view of the wet well intake being installed at the new irrigation pump station location."
text[18] = "Another image depicting the tremendous activity that transpires below the playing surfaces in order to maintain quality turf.  Here, a substantial drain line is being installed in the new #14 fairway."
text[19] = "One of the most appealing characteristics at Pine Lakes is the azaleas, particularly in the blooming spring season.  A nursery was created at Pine Lakes so that the shrubbery and small specimens of trees could be maintained throughout the renovation project.  This photo depicts our staff re-planting azaleas in their new location on holes #14 and #15 (formerly #3 and #4."
text[20] = "Previously the #1 green, the new #10 green is being filled with soils and greens mixture and built up from the original layout to a raised green requiring a higher shot for your approach."
text[21] = "Probably a more familiar view, this photo was taken from the former #6 tee and shows the irrigation pond on the new #17."
text[22] = "Golf course construction continues on the new #9 (formerly #16) with the staff member standing on the green looking back to the teeing area."
text[23] = "This is a basic herringbone style drainage pattern that is commonly used in golf course construction.  Each line is 15 feet apart with a center mainline drain.  With 15 foot spacing water should never have to travel more than 7 1/2 feet in either direction to reach a drain line.  The sand rootzone is added on top of the drain lines to a 12 inch depth evenly spread over the entire green."
text[24] = "In this image crews add and level sand to protect the drainage system on the #3 green.  This sand will also provide a foundation for the sculpting of the greens.  Grass will be planted directly on this sandy surface. "
text[25] = "Pine trees being planted on Pine Lakes Golf Course. "
text[26] = "A view from the old driving range shows the Pine Lakes Clubhouse.  The Clubhouse is undergoing a facelift as well and will be restored to its original glory."
text[27] = "With the irrigation up and running, the next step is to add fertilizer to the soil before planting on Hole #17. "
text[28] = "The first load of Seashore Paspalum arrives at Pine Lakes.  This type of grass has recently become a favorite of seaside golf courses around the world.  Seashore Paspalum grows naturally in coastal environments and is tolerant the salt mist that blows off the ocean.  It responses wonderfully to Myrtle Beach's hot temperatures and long days."
text[29] = "The new bridge on Hole #15 provides a beautiful view of the hole's water hazard which has just been lined with fresh sod. "
text[30] = "The soil on Hole #15 is prepared for the planting of Sea Dwarf Seashore Paspalum turf.  8 to 10 weeks growing time is all the time that is anticipated for complete coverage. "
text[31] = "The #10 green starts to emerge after shaping and completed sod work. "
text[32] = "The 10th hole is being mowed for the first time."
text[33] = "After completion of the sprig planting the 14th green is watered."
text[34] = "This picture shows the sprigs at 6 weeks old on the 17th green."
text[35] = "8 weeks after planting, the 17th fairway looks great."
text[36] = "After 3 1/2 weeks the grass on the 13 green starting to fill in."
text[37] = "At 9 weeks the 14th fairway is a bright and healthy green.  Newly planted wax myrtles, Myrtle Beach's namesake, are visible on the left mound." 
text[38] = "Pictured is the 15th fairway 9 weeks after planting."

text[39] = "Sand is being excavated from the right side of Hole #12 and will be used in the bunkers"
text[40] = "The bottom of Bunker 13 is being shaped"
text[41] = "To prevent wash-out, a bunker liner is installed on Hole #17."
text[42] = "In anticipation of frost the crew at Pine Lakes covered the greens for protection.  Pictured here is the 10th Green."
text[43] = "In anticipation of frost the crew at Pine Lakes covered the greens for protection.  Pictured here is the 15th Green."

text[44] = "# 2 which was formerly # 11"
text[45] = "# 3 which was formerly # 12"
text[46] = "# 9 which was formerly # 16" 
text[47] = "# 11 which was formerly # 7"

var dostep=1;
var step=1;
var sldshow = 0;
var slideshow;
var whichimage=1;
var myWidth = 0;
var myHeight = 0;

function slideshowBack()
{
step=step+1
if (step==numImages)
{step=1}
document.images.mypic.src=eval("img"+step+".src")
//var cap = document.getElementById("piccaption");
//cap.innerHTML = text[step];
}

function slideshowUp()
{
step=step-1
if (step==0)
{step=numImages}
document.images.mypic.src=eval("img"+step+".src")
//var cap = document.getElementById("piccaption");
//cap.innerHTML = text[step];
}

function slideit(){

document.images.mypic.src=eval("img"+step+".src");
whichimage=step;
//alert(step);
if (step>1)
{
step--;
//alert("img"+step+".src");
}else{
step=numImages;
}
//alert(step);
slideshow = setTimeout('slideit()',5000);
}

function startslide()
{
step=numImages;
sldshow=1;
if (!document.images)
{
	return;
}else{
	//alert("slide");
	slideit();
}
}

function stopslide(){

if (sldshow=1) 
{
    sldshow=0;
    clearTimeout(slideshow);
    step=step-1;
    if (step==0)
    {step=38}
}

}

function slideshowUplg()
{
step=step+1
if (step==48)
{step=1}
document.mypiclarge.src=eval("imglg"+step+".src")
var cap = document.getElementById("piccaption");
cap.innerHTML = text[step];
}

function slideshowBacklg()
{
step=step-1
if (step==0)
{step=38}
document.mypiclarge.src=eval("imglg"+step+".src")
var cap = document.getElementById("piccaption");
cap.innerHTML = text[step];
}

//(C) Stephen Daly
// www.stephendaly.org
// Date: 11/3/2008

// Checks if the browsers is IE or another.
// document.all will return true or false depending if its IE
// If its not IE then it adds the mouse event
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var X = 0
var Y = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    X = event.clientX + document.body.scrollLeft
    Y = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    X = e.pageX
    Y = e.pageY
  }  
  // catch possible negative values in NS4
  if (X < 0){X = 0}
  if (Y < 0){Y = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  //document.Show.MouseX.value = tempX
  //document.Show.MouseY.value = tempY
  return true
}
function backgroundFilter()
{
    var div;
    //alert("filter");
    if(document.getElementById) {
    // Standard way to get element
    div = document.getElementById('backgroundFilter'); 
	}else if(document.all){ 
    // Get the element in old IE's 
    div = document.all['backgroundFilter']; 
	}
    // if the style.display value is blank we try to check it out here 
    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
    {
        div.style.display = (div.offsetWidth!=0&&div.offsetHeight!=0)?'block':'none'; 
    }
    
    // If the background is hidden ('none') then it will display it ('block').
    // If the background is displayed ('block') then it will hide it ('none').
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
	// Off-sets the X position by 15px
    //X = getPosition(event).x;
    //Y = getPosition(event).y;
    //X = X + 15;
    //----- just get the position of the mouse
	if(document.getElementById)
	{
    // Standard way to get element
    div = document.getElementById('popupWindow'); 
	}else if(document.all) {
    // Get the element in old IE's 
    div = document.all['popupWindow']; 
	}
	X=X-510;
	Y=Y-350;
    // Sets the position of the DIV
    div.style.left = X+'px';
    div.style.top = Y+'px';
    
}

//function popUp()
//{
//    alertSize();
//        
//    //Modifications to popUp code
//    if (sldshow==1) {
//    stopslide();
//    }
//    
//    document.mypiclarge.src=eval("imglg"+step+".src")
//    var cap = document.getElementById("piccaption");
//    cap.innerHTML = text[step];
//    
//    backgroundFilter();
//    var div;
//    
//    if(document.getElementById)
//    // Standard way to get element
//    div = document.getElementById('popupWindow'); 
//    else if(document.all) 
//    // Get the element in old IE's 
//    div = document.all['popupWindow']; 
//    
//    // if the style.display value is blank we try to check it out here 
//    if(div.style.display==''&&div.offsetWidth!=undefined&&div.offsetHeight!=undefined)
//    {
//        div.style.display = (div.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; 
//    }
//    
//    // If the PopUp is hidden ('none') then it will display it ('block').
//    // If the PopUp is displayed ('block') then it will hide it ('none').
//    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';
//    

//    X = getPosition(event).x;
//    Y = getPosition(event).y;

//    
//    // Sets the position of the DIV
//    div.style.left = X+'px';
//    div.style.top = Y+'px';
//    
//}

function popUp() 
{ 
    alertSize();
    //Modifications to popUp code
    if (sldshow==1) {
    stopslide();
    }
    
    document.mypiclarge.src=eval("imglg"+step+".src")
    var cap = document.getElementById("piccaption");
    cap.innerHTML = text[step];
    
    backgroundFilter();
    var div;

    var div; 
    var div2;
    
    if(document.getElementById) 
    // Standard way to get element 
    {
    div = document.getElementById('popupWindow'); 
    div2 = document.getElementById('backgroundFilter'); 
    }
    else if(document.all) 
    // Get the element in old IE's 
    {
    div = document.all['popupWindow'];  
    div2 = document.all['backgroundFilter'];
    }  
    // if the style.display value is blank we try to check it out here 
    if(div.style.display== '' && div.offsetWidth != undefined && div.offsetHeight != undefined) 
    { 
        div.style.display = (div.offsetWidth!=0 && elem.offsetHeight!=0)?'block':'none'; 
    } 
    // If the PopUp is hidden ('none') then it will display it ('block'). 
    // If the PopUp is displayed ('block') then it will hide it ('none'). 
    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block'; 
    
    // Off-sets the X position by 15px 
    //X = X + 15;    
    // Sets the position of the DIV 
    //div.style.left = X+'px'; 
    //div.style.top = Y+'px'; 
    
    if(myWidth > 890)
    {
        div.style.left = (myWidth-890)/2; 
        div2.style.width = myWidth;
    }
    else
    {
        div.style.left = (890-myWidth)/2;
        div2.style.width = myWidth; 
    }
    if(myHeight > 700)
    {
        div2.style.height = myHeight;
    }
    else
    {
        div2.style.height = 700;
    }

    div.style.top = 16;
    
} 

function alertSize() {
  
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

}

