﻿// dynamic href for social networks links

// Detect id of element
function grabID(e){
    var theId, parentId, targ;
    if (!e) 
        var e = window.event;
    
    if (e.target)
        targ = e.target;
    else if (e.srcElement)
        targ = e.srcElement;
    // defeat Safari bug
    if (targ.nodeType == 3) 
        targ = targ.parentNode;
    theId = targ.id;
    // get the id of the table row
    tempRow = targ.parentNode;  
    tempRow = tempRow.parentNode;   
    tempRow = tempRow.parentNode;    
    parentId = tempRow.id;
    // call the change link function
    changeHref(parentId, theId, targ);
}
// change the link depending on the name of the property
function changeHref(parentId, theId, targ){    
    var link;
    // to add a new property, copy and paste if statement 
    // with the new property's name as the parentId 
    // and change the links to the repective targets
    // to edit a property, ctrl+f to find property name
    if (parentId == "Brighton Ski Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=brighton+ski+resort+brighton+utah&sll=44.059774,-71.104846&sspn=0.014217,0.038495&ie=UTF8&hq=brighton+ski+resort&hnear=Brighton,+UT&ll=40.600285,-111.579359&spn=0.007511,0.019248&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Brighton-UT/Brighton-Resort/116009240186";
        }else if (theId == "Twitter"){
            link =  "twitter.com/brightonski";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "The Mount Washington Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=the+mount+washington+resort&sll=44.2598,-71.430058&sspn=0.014169,0.038495&gl=us&ie=UTF8&radius=0.95&rq=1&ev=zo&hq=the+mount+washington+resort&hnear=&ll=44.260784,-71.431904&spn=0.014169,0.038495&t=h&z=15&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/bretton_woods";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/mountwashingtonresort/";
        }else link = "#";
        
        }else if (parentId == "Coco Key Water Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&q=coco+key+water+resort+orlando&ie=UTF8&hq=coco+key+water+resort&hnear=Orlando,+FL&ll=28.454383,-81.472405&spn=0.002858,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/CoCo-Key-Orlando/338603088878";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/CoCo_Key_Orl";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
        
        
    }else if (parentId == "Bohemia Vista"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&q=Bohemia+Vista+Yacht+Basin&ie=UTF8&filter=0&sll=39.67337,-75.772705&sspn=0.438795,2.903137&split=1&rq=1&ev=zi&hq=Bohemia+Vista+Yacht+Basin&hnear=&ll=39.489287,-75.89879&spn=0.009886,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Hacks Point"){
        if (theId == "Google"){
            link =  "http://goo.gl/1EhF";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
        
        
    }else if (parentId == "Anacapa Isla Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&ie=UTF8&q=anacapa+isle+marina&fb=1&gl=us&hq=anacapa+isle+marina&hnear=Oxnard,+CA&cid=0,0,15106101442677396440&ei=Es6sS8WwLcH38AaujvmfDw&ved=0CAcQnwIwAA&ll=34.18069,-119.225671&spn=0.010171,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/bretton_woods";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/mountwashingtonresort/";
        }else link = "#";
    }else if (parentId == "Ballena Isle Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&q=1150+Ballena+Boulevard,+alameda+california&ie=UTF8&hq=&hnear=1150+Ballena+Blvd,+Alameda,+California+94501&gl=us&ei=nc6sS4bmD4L78AaEkcDXDA&ved=0CAsQ8gEwAA&ll=37.76834,-122.282166&spn=0.020287,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/bretton_woods";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/mountwashingtonresort/";
        }else link = "#";
    }else if (parentId == "Cabrillo Isle Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Cabrillo+Isle+Marina&sll=37.76834,-122.282166&sspn=0.020287,0.045362&gl=us&ie=UTF8&hq=Cabrillo+Isle+Marina&hnear=&radius=15000&ll=32.72592,-117.192535&spn=0.041374,0.090723&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/bretton_woods";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/mountwashingtonresort/";
        }else link = "#";   
    }else if (parentId == "Ventura Isle Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=ventura+Isle+Marina&sll=34.240473,-119.261055&sspn=0.081314,0.181446&gl=us&ie=UTF8&hq=ventura+Isle+Marina&hnear=&ll=34.248632,-119.261312&spn=0.042427,0.090723&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/bretton_woods";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/mountwashingtonresort/";
        }else link = "#";  
    }else if (parentId == "Crested Butte Mountain Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=crested+butte+mountain+resort&sll=44.260784,-71.431904&sspn=0.014169,0.038495&gl=us&ie=UTF8&hq=Crested+Butte+Mountain+Resort&hnear=Crested+Butte+Mountain+Resort,+Mount+Crested+Butte,+CO+81225&ll=38.899366,-106.961153&spn=0.007698,0.019248&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Crested-Butte-Mountain-Resort/34919176892?ref=ts";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/skicrestedbutte";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/skicb";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/visitcolorado/sets/72157622711913855/";
        }else link = "#";
    }else if (parentId == "Cypress Mountain"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=cypress+mountain+resort&sll=49.397234,-123.196263&sspn=0.012876,0.038495&gl=us&ie=UTF8&radius=0.87&filter=0&rq=1&ev=zo&hq=cypress+mountain+resort&hnear=&ll=49.398351,-123.192186&spn=0.012875,0.038495&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Vancouver-BC/Cypress-Mountain/20385874976";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/cypressmtn";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/CypressMTN";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/8278633@N03/";
        }else link = "#";
    }else if (parentId == "Gatlinburg Sky Lift"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&source=hp&ie=UTF8&q=gatlinburg+sky+lift+gatlinburg+tennessee&fb=1&gl=us&hq=gatlinburg+sky+lift&hnear=gatlinburg+tennessee&cid=0,0,1429525947738354434&ei=4mwMS_7cLo2Xtgeylo3oAg&ved=0CAgQnwIwAA&ll=35.713869,-83.517702&spn=0.004268,0.009624&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Jiminy Peak Mountain Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=jiminy+peak+mountain+resort+hancock+ma&sll=44.470786,-70.85083&sspn=0.014884,0.038495&gl=us&ie=UTF8&hq=jiminy+peak+mountain+resort&hnear=Hancock,+MA&ll=42.559561,-73.282843&spn=0.014572,0.038495&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Hancock-MA/Jiminy-Peak/8143267787";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/jiminypeak";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/JiminyPeakMtnResort";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Loon Mountain Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=loon+mountain+ski+resort+lincoln+new+hampshire&sll=44.031456,-71.628413&sspn=0.02999,0.07699&g=loon+mountain+lincoln+new+hampshire&ie=UTF8&hq=loon+mountain+ski+resort&hnear=Lincoln,+NH&ll=44.061748,-71.6082&spn=0.028433,0.07699&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/loonmtn";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/loonmtn";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/LoonMountain";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mount Sunapee Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Mount+Sunapee+resort,+Merrimack,+New+Hampshire&sll=43.334699,-72.064219&sspn=0.01517,0.038495&gl=us&ie=UTF8&hq=Mount+Sunapee+resort,&hnear=East+Merrimack,+NH&ll=43.342689,-72.061515&spn=0.014388,0.038495&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/mountsunapee";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/MountSunapee";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/MountSunapee";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mountain High Ski Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=mountain+high+ski&sll=34.383963,-117.59551&sspn=0.017213,0.038495&gl=us&ie=UTF8&hq=mountain+high+ski&hnear=&ll=34.378296,-117.583323&spn=0.032656,0.07699&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Wrightwood-CA/Mountain-High/29245663978";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/mt_high";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/mthighresort";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Northstar at Tahoe Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=northstar+at+tahoe+lake+tahoe+ca&sll=39.277713,-120.117173&sspn=0.008073,0.019248&ie=UTF8&hq=northstar+at+tahoe&hnear=Lake+Tahoe,+California&ll=39.292793,-120.09593&spn=0.030622,0.07699&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/NorthstarResort";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/NorthstarTahoe";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/northstarattahoe";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Okemo Mountain Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Okemo+Mountain+Resort&sll=43.401922,-72.713646&sspn=0.003594,0.009624&gl=us&ie=UTF8&radius=0.24&rq=1&ev=zo&hq=Okemo+Mountain+Resort&hnear=&ll=43.402296,-72.713614&spn=0.003593,0.009624&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/okemomountain";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/okemomountain";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/okemomountain";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Sierra at Tahoe Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=sierra+at+tahoe+lake+tahoe+california&sll=45.285908,-111.360168&sspn=0.014674,0.038495&ie=UTF8&hq=sierra+at+tahoe&hnear=Lake+Tahoe,+California&ll=38.805403,-120.078979&spn=0.015417,0.038495&t=h&z=15&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/sierra.tahoe";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/sierra_at_tahoe";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/watch?v=kToA2Dxsk8Y";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Sugarloaf Mountain Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=sugarloaf+resort&sll=45.07449,-70.282116&sspn=0.055885,0.15398&ie=UTF8&radius=3.76&rq=1&ev=zo&hq=sugarloaf+resort&hnear=&ll=45.053636,-70.27422&spn=0.055905,0.15398&t=h&z=13";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/sugarloaf";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/SugarloafMaine";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/Sugarloafers";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Summit-at-Snoqualmie Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=summit+at+snoqualmie+ski+resort+snoqualmie+washington&sll=47.406599,-121.397038&sspn=0.056463,0.15398&ie=UTF8&hq=summit+at+snoqualmie+ski+resort&hnear=Snoqualmie,+WA&ll=47.416066,-121.395063&spn=0.028226,0.07699&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/summitatsnoqualmie";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Sunday River Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&source=hp&ie=UTF8&q=sunday+river+ski+resort+bethel+maine&fb=1&gl=us&hq=sunday+river+ski+resort&hnear=bethel+maine&cid=0,0,2406365684203490518&ei=Kr4SS8SbLcqutger79CsCQ&ved=0CA4QnwIwAA&ll=44.470786,-70.85083&spn=0.014884,0.038495&t=h&z=15&iwloc=lyrftr:h,6523203734031400708,44.473359,-70.855465";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/sundayriver";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/sundayriver";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/SundayRiver";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "The Village at Northstar"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&source=hp&q=village+at+northstar+lake+tahoe+ca&ie=UTF8&hq=&hnear=Village+at+Northstar&ll=39.277713,-120.117173&spn=0.008073,0.019248&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/northstarattahoe";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Village at Blue Mountain"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=village+at+blue+mountain&sll=44.51744,-80.280533&sspn=0.056672,0.15398&gl=us&ie=UTF8&hq=&hnear=Blue+Mountain+Rd+%26+Mountain+Rd,+Blue+Mountains,+Grey+County,+Ontario,+Canada&ll=44.509728,-80.291176&spn=0.05974,0.15398&t=h&z=13";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Collingwood-ON/The-Village-at-Blue-Mountain-Events/91292160665";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/watch?v=z85UpcsNeCo";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Village at Copper Mountain"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=village+at+copper+colorado&sll=39.546496,-106.125248&sspn=0.129193,0.307961&gl=us&ie=UTF8&hq=village+at+copper&hnear=Colorado&ll=39.501731,-106.154655&spn=0.003833,0.009624&t=h&z=17&iwloc=H";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Village at Mammoth Mountain"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&hl=en&geocode=&q=6201+minaret,+mammoth+lakes,+ca+93546&sll=37.0625,-95.677068&sspn=31.28862,58.710937&ie=UTF8&source=embed&hq=&hnear=6201+Minaret+Rd,+Mammoth+Lakes,+Mono,+California+93546&ll=37.650656,-118.984176&spn=0.003712,0.007328&t=h&z=17";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Village at Snowshoe Mountain"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&q=village+at+snowshoe+mountain&ie=UTF8&radius=0.52&sll=38.411382,-79.992013&sspn=0.007751,0.019248&filter=0&rq=1&ev=p&hq=village+at+snowshoe+mountain&hnear=&ll=38.411718,-79.992464&spn=0.007751,0.019248&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Village at Stratton"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=stratton+mountain+vermont&sll=43.154857,-72.860376&sspn=0.121722,0.307961&ie=UTF8&hq=&hnear=Stratton+Mountain,+Bennington,+Vermont&ll=43.114126,-72.904372&spn=0.007613,0.019248&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Village of Baytowne Wharf"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=village+of+baytowne+wharf+florida&sll=37.650656,-118.984176&sspn=0.003712,0.007328&ie=UTF8&hq=village+of+baytowne+wharf&hnear=Florida&ll=30.390711,-86.323432&spn=0.003813,0.007328&t=h&z=17&iwloc=C";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Miramar-Beach-FL/The-Village-of-Baytowne-Wharf/89724838748";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Whistler Creekside"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=whistler+creekside+british+columbia+canada&sll=43.114126,-72.904372&sspn=0.007613,0.019248&ie=UTF8&hq=&hnear=Whistler+Creekside,+Whistler,+Squamish-Lillooet+Regional+District,+British+Columbia,+Canada&ll=50.094634,-122.990549&spn=0.001673,0.004812&t=h&z=18";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Camelot Park"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=camelot+park+bakersfield+california&sll=28.077386,-82.451808&sspn=0.00283,0.00567&gl=us&ie=UTF8&hq=camelot+park&hnear=Bakersfield,+CA&ll=35.370405,-119.040406&spn=0.002506,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/profile.php?id=100000428332376&ref=search";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/CamelotPark";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/ZumaFunCenter#p/search/0/QEzag0nKzYM";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Darien Lake"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=darien+lake&sll=42.930175,-78.385069&sspn=0.009395,0.022681&gl=us&ie=UTF8&radius=0.57&rq=1&ev=zo&hq=darien+lake&hnear=&ll=42.930049,-78.384061&spn=0.009002,0.022681&t=h&z=16&iwloc=D";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/godarienlake";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/Darienlake";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/darienlake10#p/u/6/Tz6Ka3fL4W8";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Elitch Gardens"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=elitch+gardens+denver+colorado&sll=29.713317,-95.50164&sspn=0.002786,0.00567&gl=us&ie=UTF8&hq=Elitch+Gardens&hnear=Elitch+Gardens&ll=39.748856,-105.01286&spn=0.009866,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Denver-CO/Elitch-Gardens/62242807350";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/Elitch_Gardens";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/elitchgardens10";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Fiddlesticks Fun Center"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=fiddlesticks+fun+center+tempe&sll=35.370405,-119.040406&sspn=0.002506,0.00567&gl=us&ie=UTF8&cd=1&hq=fiddlesticks+fun+center&hnear=Tempe,+AZ&ll=33.348231,-111.956327&spn=0.00268,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/FiddlesticksTempe#!/FiddlesticksTempe?v=app_392248091048";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/FiddlesticksAZ";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Frontier City"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=frontier+city+oklahoma+city+oklahoma&sll=38.900285,-106.964092&sspn=0.019137,0.045362&gl=us&ie=UTF8&hq=Frontier+City&hnear=Frontier+City,+Oklahoma+City,+OK+73131&ll=35.584063,-97.441274&spn=0.005218,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/frontiercitythemepark";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/FrontierCityWWB";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/frontiercity10";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Funtasticks Fun Center"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=funtasticks+fun+center+tucson&sll=32.287477,-110.968405&sspn=0.002617,0.00567&gl=us&ie=UTF8&hq=funtasticks+fun+center&hnear=Tucson,+AZ&ll=32.287409,-110.967954&spn=0.002712,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/Funtasticks?ref=search#!/Funtasticks?v=app_4949752878&ref=search";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/Funtasticks";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Grand Prix Tampa"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=grand+prix+tampa&sll=21.335812,-158.087259&sspn=0.002863,0.00567&gl=us&ie=UTF8&hq=grand+prix&hnear=Tampa,+FL&ll=28.077386,-82.451808&spn=0.00283,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Tampa-FL/Grand-Prix-Tampa/307785182877?ref=ts";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/TampaBayGP";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Great Wolf Lodge Sandusky"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=great+wolf+lodge+sandusky&sll=43.572727,-89.782376&sspn=0.008908,0.022681&gl=us&ie=UTF8&hq=great+wolf+lodge&hnear=Sandusky,+OH&ll=41.414362,-82.666605&spn=0.009221,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/Greatwolfwaterpark";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/GreatWolfLodge";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/greatwolfwaterpark#p/search/0/Kmbwz5Vk85E";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Great Wolf Lodge Wisconsin Dells"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=great+wolf+lodge+wisconsin+dells&sll=43.57268,-89.780273&sspn=0.148745,0.362892&gl=us&ie=UTF8&hq=great+wolf+lodge+wisconsin+dells&hnear=&ll=43.572727,-89.782376&spn=0.008908,0.022681&t=h&z=16&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/Greatwolfwaterpark";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/GreatWolfLodge";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/greatwolfwaterpark#p/u/10/7Ctyg5aWOZ0";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Hawaiian Falls Garland"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=hawaiian+falls+water+park+texas&sll=33.086939,-96.871777&sspn=0.086008,0.181446&gl=us&ie=UTF8&hq=hawaiian+falls+water+park&hnear=Texas&ll=32.95687,-96.650537&spn=0.005383,0.01134&t=h&z=17";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/hfalls";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/RFunHFalls";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/HawaiianFallsFun";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Hawaiian Falls The Colony"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=hawaiian+falls+water+park+texas&sll=33.086939,-96.871777&sspn=0.086008,0.181446&gl=us&ie=UTF8&hq=hawaiian+falls+water+park&hnear=Texas&t=h&ll=33.076691,-96.87506&spn=0.005376,0.01134&z=17&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/hfalls";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/HFalls_TC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Magic Springs and Crystal Falls"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=magic+springs,+hot+springs+arkansas&sll=33.715523,-78.89897&sspn=0.005114,0.01134&gl=us&ie=UTF8&hq=&hnear=Magic+Springs+and+Crystal+Falls&ll=34.519711,-93.015608&spn=0.005286,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/magicsprings";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/MagicSpringsFUN";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/magicsprings10";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mountasia Family Fun Center"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=mountasia+fun+center+north+richland+hills+texas&sll=32.287409,-110.967954&sspn=0.002712,0.00567&gl=us&ie=UTF8&hq=mountasia+fun+center&hnear=North+Richland+Hills,+TX&t=h&ll=32.848717,-97.195981&spn=0.002582,0.00567&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/MountasiaRichland";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/mountasia";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/ZumaFunCenter#p/u/0/fQ-Kro_A-l0";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Myrtle Waves Water Park"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=myrtle+waves,+myrtle+beach+south+carolina&sll=33.897777,-78.898315&sspn=2.612407,5.806274&gl=us&ie=UTF8&hq=myrtle+waves,&hnear=Myrtle+Beach,+SC&ll=33.715523,-78.89897&spn=0.005114,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/myrtlewaves";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/MyrtleWavesSC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Putt-Putt Fun Center Lubbock"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=putt+putt+fun+center+lubbock+texas&sll=32.848717,-97.195981&sspn=0.002582,0.00567&gl=us&ie=UTF8&hq=putt+putt+fun+center&hnear=Lubbock,+TX&ll=33.567386,-101.919431&spn=0.002561,0.00567&t=h&z=18";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Putt-Putt Fun Center Raleigh"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=putt+putt+fun+center+raleigh+north+carolina&sll=33.567386,-101.919431&sspn=0.002561,0.00567&gl=us&ie=UTF8&hq=putt+putt+fun+center&hnear=Raleigh,+NC&ll=35.750718,-78.70606&spn=0.002495,0.00567&t=h&z=18";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/puttputtraleigh?v=wall&ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Splashtown"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=splashtown+houston,+texas&sll=47.277409,-122.308366&sspn=0.008706,0.022681&gl=us&ie=UTF8&hq=splashtown&hnear=Houston,+TX&ll=30.070477,-95.430797&spn=0.00532,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Spring-TX/Splashtown-Water-Park/153646553409";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/splashtownpark";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "WaterWorld"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=waterworld,+concord,+california&sll=30.070477,-95.430797&sspn=0.00532,0.01134&gl=us&ie=UTF8&hq=waterworld,&hnear=Concord,+CA&ll=37.974363,-122.049372&spn=0.004846,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Concord-CA/Waterworld-California/144844252623";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Wet'n'Wild Hawaii"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?source=s_q&hl=en&geocode=&q=wet'n'wild+hawaii+kapolei,+hi&sll=32.95687,-96.650537&sspn=0.005383,0.01134&gl=us&ie=UTF8&hq=wet'n'wild+hawaii+kapolei,+hi&radius=15000.000000&split=1&hnear=&ll=21.335752,-158.087259&spn=0.002863,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Kapolei-HI/WetnWild-Hawaii/76240852251";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/WetnWildHawaii";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/WetnWildHawaii";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "White Water Bay"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=whitewater+bay+oklahoma+city+oklahoma&sll=35.584063,-97.441274&sspn=0.005218,0.01134&gl=us&ie=UTF8&hq=whitewater+bay&hnear=Oklahoma+City,+OK&ll=35.462374,-97.588785&spn=0.005226,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/whitewaterbay";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/FrontierCityWWB";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Wild Waves Enchanted Village"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=wild+waves+and+enchanted+village,+seattle+washington&sll=47.40625,-122.33757&sspn=0.277902,0.725784&gl=us&ie=UTF8&hq=wild+waves+and+enchanted&hnear=Seattle,+WA&ll=47.277409,-122.308366&spn=0.008706,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Federal-Way-WA/Wild-Waves-Theme-Park/88679363553";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/wildwaveswa";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/wildwaves10";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Zuma Fun Center Charlotte"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=zuma+fun+center+pineville+North+carolina&sll=35.750718,-78.70606&sspn=0.002495,0.00567&gl=us&ie=UTF8&hq=zuma+fun+center&hnear=Pineville,+NC&ll=35.097343,-80.879143&spn=0.002625,0.00567&t=h&z=18";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Pineville-NC/Zuma-Fun-Center-Charlotte/171496667439#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/Zumacharlotte";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/ZumaFunCenter#p/search/0/Vd2bY0hYXME";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Zuma Fun Center Knoxville"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=zuma+fun+center+knoxville,+tennessee&sll=35.097343,-80.879143&sspn=0.002625,0.00567&gl=us&ie=UTF8&hq=zuma+fun+center&hnear=Knoxville,+TN&ll=35.915561,-84.096565&spn=0.002598,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/ZFCKnoxville?ref=ts&__a=4";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/ZumaKnoxville";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/ZumaFunCenter#p/search/0/khMiZT4jWEs";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Zuma Fun Center North Houston"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=zuma+fun+center&sll=29.96647,-95.42171&sspn=0.002779,0.00567&gl=us&ie=UTF8&filter=0&radius=0.17&rq=1&ev=zi&hq=zuma+fun+center&hnear=&ll=29.966614,-95.420331&spn=0.002779,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/ZFCNorthHouston?ref=ts&__a=39";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/ZumaHoustonN";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/ZumaFunCenter#p/search/0/7mInyeOiktE";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Zuma Fun Center South Houston"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=zuma+fun+center&sll=29.714091,-95.500331&sspn=0.002786,0.00567&gl=us&ie=UTF8&filter=0&radius=0.17&rq=1&ev=zi&hq=zuma+fun+center&hnear=&ll=29.713317,-95.50164&spn=0.002786,0.00567&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/ZFCSouthHouston?ref=ts&__a=8";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/ZumaHoustonS";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/ZumaFunCenter#p/search/0/czWLxWTTmUY";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Ancala Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=ancala+country+club+scottsdale+arizona&sll=34.420576,-118.573422&sspn=0.020285,0.045362&ie=UTF8&hq=ancala+country+club&hnear=Scottsdale,+AZ&ll=33.594692,-111.825886&spn=0.010242,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Ancala-Country-Club/121950281366";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Arrowhead Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=arrowhead+country+club+glendale+arizona&sll=33.610616,-112.199936&sspn=0.163835,0.362892&ie=UTF8&hq=arrowhead+country+club&hnear=Glendale,+AZ&ll=33.663532,-112.209828&spn=0.010233,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Arrowhead-Country-Club/107320615241?";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Arrowhead Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=arrowhead+golf+club+littleton+colorado&sll=33.382908,-112.00392&sspn=0.005133,0.01134&gl=us&ie=UTF8&hq=arrowhead+golf+club&hnear=Littleton,+CO&ll=39.455249,-105.07777&spn=0.009493,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Arrowhead-Golf-Club-Colorado/236795565115?";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/ArrowheadCO";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Bear Creek Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=bear+creek+golf+course+dallas+texas&sll=34.519711,-93.015608&sspn=0.005286,0.01134&gl=us&ie=UTF8&hq=bear+creek+golf+course&hnear=Dallas,+TX&ll=32.86252,-97.057042&spn=0.010328,0.022681&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Broad Bay Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=broad+bay+country+club+virginia+beach+va&sll=36.892698,-76.045089&sspn=0.020525,0.045362&gl=us&ie=UTF8&hq=broad+bay+country+club&hnear=Virginia+Beach,+VA&ll=36.891085,-76.044552&spn=0.010263,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Canyon Springs Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=canyon+springs+golf+club+san+antonio+texas&sll=39.455249,-105.07777&sspn=0.009493,0.022681&gl=us&ie=UTF8&hq=canyon+springs+golf+club&hnear=San+Antonio,+TX&ll=29.674183,-98.475866&spn=0.022298,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/San-Antonio-TX/Canyon-Springs-Golf-Club/102769519554";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Clear Creek Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=clear+creek+golf+club+houston+texas&sll=29.674183,-98.475866&sspn=0.022298,0.045362&gl=us&ie=UTF8&hq=clear+creek+golf+club&hnear=Houston,+TX&ll=29.590625,-95.362637&spn=0.011158,0.022681&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Houston-TX/Clear-Creek-Golf-Club/181630454405";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Continental Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=continental+golf+club+scottsdale+arizona&sll=29.590625,-95.362637&sspn=0.011158,0.022681&gl=us&ie=UTF8&hq=continental+golf+club&hnear=Scottsdale,+AZ&ll=33.491625,-111.910472&spn=0.010254,0.022681&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Scottsdale-AZ/Continental-Golf-Course/143444029299";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/ContinentalGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Cowboys Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=cowboys+golf+club+grapevine+texas&sll=33.491625,-111.910472&sspn=0.010254,0.022681&gl=us&ie=UTF8&hq=cowboys+golf+club&hnear=Grapevine,+TX&ll=32.972308,-97.045155&spn=0.04126,0.090723&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Grapevine-TX/Cowboys-Golf-Club/141774559334";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/cowboysgolfclub";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "David L. Baker Memorial Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=David+l+baker+golf+course+los+angeles+california&sll=32.972308,-97.045155&sspn=0.04126,0.090723&gl=us&ie=UTF8&hq=David+l+baker+golf+course&hnear=Los+Angeles,+CA&ll=33.731764,-117.945335&spn=0.010671,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/DLBakergc";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Deer Creek Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=deer+creek+golf+course+overland+park+kansas&sll=32.973172,-97.045155&sspn=0.041259,0.090723&gl=us&ie=UTF8&hq=deer+creek+golf+course&hnear=Overland+Park,+KS&ll=38.88953,-94.661379&spn=0.01914,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Overland-Park-KS/Deer-Creek-Golf-Club/90661631834";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/deercreekgc";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Desert Lakes Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=desert+lakes+golf+club+bullhead+city+arizona&sll=34.990488,-114.58045&sspn=0.021025,0.045362&gl=us&ie=UTF8&hq=desert+lakes+golf+club&hnear=Bullhead+City,+AZ&ll=34.991156,-114.581909&spn=0.020146,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Bullhead-City-AZ/Desert-Lakes-Golf-Club/197988073161";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Eagle Brook Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=eaglebrook+country+club+geneva+illinois&sll=33.663532,-112.209828&sspn=0.010233,0.022681&ie=UTF8&hq=eaglebrook+country+club&hnear=Geneva,+IL&ll=41.876463,-88.329477&spn=0.019109,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Geneva-IL/Eagle-Brook-Country-Club/113448085497";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Foothills Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=foothills+golf+club+phoenix+arizona&sll=34.991156,-114.581909&sspn=0.020146,0.045362&gl=us&ie=UTF8&hq=foothills+golf+club&hnear=Phoenix,+AZ&ll=33.299794,-112.043467&spn=0.010276,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Phoenix-AZ/The-Foothills-Golf-Club/245695157162?ref=search";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/FoothillsGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Forest Park Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=forest+park+golf+club+st.+louis+missouri&sll=33.299794,-112.043467&sspn=0.010276,0.022681&gl=us&ie=UTF8&hq=forest+park+golf+club&hnear=Saint+Louis,+MO&ll=38.644663,-90.28307&spn=0.019206,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Forest-Park-Golf-Course/170479391261?v=wall&ref=search";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/ForestParkGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Fox Meadow Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=fox+meadow+country+club+medina+ohio&sll=41.876463,-88.329477&sspn=0.019109,0.045362&ie=UTF8&hq=fox+meadow+country+club&hnear=Medina,+OH&ll=41.099211,-81.836901&spn=0.019339,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Medina-OH/Fox-Meadow-Country-Club/137534020558?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Golf Club at Fossil Creek"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=golf+club+at+fossil+creek,+fort+worth+texas&sll=29.748432,-95.760505&sspn=0.011141,0.022681&gl=us&ie=UTF8&hq=golf+club+at+fossil+creek,&hnear=Fort+Worth,+TX&ll=32.858321,-97.298098&spn=0.020656,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/#/thegolfclubatfossilcreek?ref=search&sid=1040719308.1562001323..1";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/FossilCreekGolf";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Hunt Valley Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=hunt+valley+golf+phoenix+md&sll=33.417674,-111.984814&sspn=0.685459,1.451569&gl=us&ie=UTF8&hq=hunt+valley+golf&hnear=Phoenix,+MD&ll=39.513941,-76.601872&spn=0.019799,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Phoenix-MD/Hunt-Valley-Golf-Club/321045838124?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Kiskiack Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=kiskiack+golf+club+williamsburg+virginia&sll=36.891085,-76.044552&sspn=0.010263,0.022681&gl=us&ie=UTF8&hq=kiskiack+golf+club&hnear=Williamsburg,+VA&ll=37.391675,-76.745811&spn=0.019537,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Tradition-Golf-Club-at-Kiskiack/141035901222?v=wall&ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Kokopelli Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=kokopelli+golf+course,+gilbert+arizona&sll=39.513941,-76.601872&sspn=0.019799,0.045362&gl=us&ie=UTF8&hq=kokopelli+golf+course,&hnear=Gilbert,+AZ&ll=33.369818,-111.8261&spn=0.010268,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/#/pages/Gilbert-AZ/Kokopelli-Golf-Club/141850369859?ref=search&sid=1040719308.3959908465..1";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/KokopelliGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Lake Park Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=lake+park+golf+club+lewisville+texas&sll=33.369818,-111.8261&sspn=0.010268,0.022681&gl=us&ie=UTF8&hq=lake+park+golf+club&hnear=Lewisville,+TX&ll=33.072214,-97.003956&spn=0.010303,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/#/pages/Lewisville-TX/Lake-Park-Golf-Club/128844187481?ref=search&sid=1040719308.1655501057..1";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "LakeRidge Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=lakeridge+country+club+lubbock+texas&sll=41.099211,-81.836901&sspn=0.019339,0.045362&ie=UTF8&hq=lakeridge+country+club&hnear=Lubbock,+TX&ll=33.512703,-101.90948&spn=0.021397,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/lakeridgegolf.lubbock?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Las Vegas Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=las+vegas+golf+course,&sll=36.181983,-115.198002&sspn=0.009924,0.022681&gl=us&ie=UTF8&radius=0.63&rq=1&ev=zi&hq=las+vegas+golf+course,&hnear=&ll=36.18484,-115.197101&spn=0.009924,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Las-Vegas-NV/Las-Vegas-Golf-Club/117087106667";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/LasVegasGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Legend at Arrowhead Golf Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=legend+at+arrowhead,+glendale+arizona&sll=36.18484,-115.197101&sspn=0.009924,0.022681&gl=us&ie=UTF8&hq=legend+at+arrowhead,&hnear=Glendale,+AZ&ll=33.677818,-112.192168&spn=0.020463,0.045362&t=h&z=15&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/legendatarrowheadgolf";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/Legendarrowhead";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "London Bridge Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=london+bridge+golf+course+lake+havasu+az&sll=33.677818,-112.192168&sspn=0.020463,0.045362&gl=us&ie=UTF8&hq=london+bridge+golf+course+lake+havasu&hnear=Arizona&ll=34.46754,-114.308667&spn=0.010137,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Lake-Havasu-City-AZ/The-Courses-at-London-Bridge-Golf-Club/213716036631";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Majestic Oaks Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=majestic+oaks+ham+lake+minnesota&sll=34.46754,-114.308667&sspn=0.010137,0.022681&gl=us&ie=UTF8&hq=majestic+oaks&hnear=Ham+Lake,+MN&ll=45.220259,-93.244529&spn=0.017321,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/group.php?v=wall&ref=search&gid=133345125430";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/majesticoaksgc";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/GolfOutingBids#p/a/u/1/CMsXT0MTlK8";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mansfield National Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=mansfield+national+golf+club,+mansfield+texas&sll=45.220259,-93.244529&sspn=0.017321,0.045362&gl=us&ie=UTF8&hq=mansfield+national+golf+club,&hnear=Mansfield,+TX&ll=32.558479,-97.07335&spn=0.010363,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Mansfield-TX/Mansfield-National-Golf-Club/177771521497";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/MansfieldGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Meadowbrook Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=meadowbrook+country+club+tulsa+oklahoma&sll=33.512703,-101.90948&sspn=0.021397,0.045362&ie=UTF8&hq=meadowbrook+country+club&hnear=Tulsa,+OK&ll=36.043512,-95.869982&spn=0.010375,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/MeadowBrookccTulsa";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Meadowlark Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=meadowlark+golf+club+los+angeles&sll=32.558479,-97.07335&sspn=0.010363,0.022681&gl=us&ie=UTF8&hq=meadowlark+golf+club&hnear=Los+Angeles,+CA&ll=33.719289,-118.027925&spn=0.010227,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Huntington-Beach-CA/Meadowlark-Golf-Club/155295067485";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mesa del Sol Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=mesa+del+sol+golf+club+yuma+arizona&sll=33.719289,-118.027925&sspn=0.010227,0.022681&gl=us&ie=UTF8&hq=mesa+del+sol+golf+club&hnear=Yuma,+AZ&ll=32.677456,-114.423766&spn=0.020698,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Yuma-AZ/Mesa-del-Sol-Golf-Club/174231522682";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Micke Grove Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=micke+grove+golf+club+sacramento+california&sll=32.677456,-114.423766&sspn=0.020698,0.045362&gl=us&ie=UTF8&hq=micke+grove+golf+club&hnear=Sacramento,+CA&ll=38.072977,-121.26915&spn=0.009679,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Micke-Grove-Golf-Links/94446393744";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/mickegrove";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mission Hills Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=mission+hills&sll=42.121241,-87.87215&sspn=0.00912,0.022681&ie=UTF8&radius=0.58&rq=1&ev=zi&hq=mission+hills&hnear=&ll=42.12105,-87.87215&spn=0.009518,0.022681&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Northbrook-IL/Mission-Hills-Country-Club/268539905573";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/northshoregolf";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Montgomery Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=montgomery+country+club+laytonsville+maryland&sll=39.142225,-77.1431&sspn=0.152575,0.362892&ie=UTF8&hq=montgomery+country+club&hnear=Laytonsville,+MD&ll=39.207284,-77.121921&spn=0.019054,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/MontgomeryCountryClub?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Painted Desert Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=painted+desert+golf+club+las+vegas+nevada&sll=38.072977,-121.26915&sspn=0.009679,0.022681&gl=us&ie=UTF8&hq=painted+desert+golf+club&hnear=Las+Vegas,+NV&ll=36.262823,-115.252547&spn=0.019828,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Las-Vegas-NV/Painted-Desert-Golf-Club/176326477538";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Painted Hills Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=painted+hills+kansas+city+ks&sll=39.129761,-94.732575&sspn=0.019075,0.045362&gl=us&ie=UTF8&hq=painted+hills&hnear=Kansas+City,+KS&ll=39.129727,-94.730344&spn=0.019075,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Painted-Hills-Golf-Course/174792134537";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/PHGolfCourse";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Palmetto Hall Plantation Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=palmetto+hall+plantation+club&sll=33.004057,-79.799194&sspn=2.63946,5.806274&ie=UTF8&hq=palmetto+hall+plantation+club&hnear=&ll=32.234766,-80.704494&spn=0.021708,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Plantation Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=plantation+golf+club+frisco+texas&sll=39.129727,-94.730344&sspn=0.019075,0.045362&gl=us&ie=UTF8&hq=plantation+golf+club&hnear=Frisco,+TX&ll=33.122026,-96.773415&spn=0.020595,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/plantationgolfclub?ref=search&sid=1040719308.387778539..1";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/PlantationGolf";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Raven Golf Club at South Mountain"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=raven+at&sll=33.381089,-112.002815&sspn=0.005357,0.01134&gl=us&ie=UTF8&radius=0.33&rq=1&ev=zo&hq=raven+at&hnear=&ll=33.382908,-112.00392&spn=0.005133,0.01134&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Phoenix-AZ/Raven-Golf-Club-at-South-Mountain/215861796655?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/35925794@N00/sets/72157594500614194/";
        }else link = "#";
    }else if (parentId == "Royal Meadows Golf Course"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=royal+meadows+golf+course+kansas+city+missouri&sll=33.122026,-96.773415&sspn=0.020595,0.045362&gl=us&ie=UTF8&hq=royal+meadows+golf+course&hnear=Kansas+City,+MO&ll=39.038386,-94.44972&spn=0.019933,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Kansas-City-MO/Royal-Meadows-Golf-Course/155734683368";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/RoyalMeadowsGC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Ruffled Feathers Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=ruffled+feathers+golf+club+lemont+illinois&sll=39.038386,-94.44972&sspn=0.019933,0.045362&gl=us&ie=UTF8&hq=ruffled+feathers+golf+club&hnear=Lemont,+IL&ll=41.6623,-87.9565&spn=0.019172,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Lemont-IL/Ruffled-Feathers-Golf-Club/177150237946";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/RuffledGolf";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/37926821@N02/";
        }else link = "#";
    }else if (parentId == "Shandin Hills Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=shandin+hills+golf+club+san+bernadino&sll=34.153828,-117.311068&sspn=0.020349,0.045362&gl=us&ie=UTF8&radius=1.3&filter=0&rq=1&ev=zi&hq=shandin+hills+golf+club+san+bernadino&hnear=&ll=34.156243,-117.319264&spn=0.020349,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/San-Bernardino-CA/Shandin-Hills-Golf-Club/177575166764";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Signature Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=signature+golf+club+solon+ohio&sll=42.122379,-87.873609&sspn=0.004759,0.01134&ie=UTF8&hq=signature+golf+club&hnear=Solon,+OH&ll=41.356196,-81.396503&spn=0.018458,0.045362&t=h&z=15&iwloc=C";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/signatureofsolon?ref=mf";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/sigofsoloncc";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Stonecreek Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=stonecreek+golf+course+phoenix+arizona&sll=34.156243,-117.319264&sspn=0.020349,0.045362&gl=us&ie=UTF8&hq=stonecreek+golf+course&hnear=Phoenix,+AZ&ll=33.595944,-111.984007&spn=0.010241,0.022681&t=h&z=16&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Phoenix-AZ/Stonecreek-Golf-Club/132086496611";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/StonecreekGolf";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Superstition Springs Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=superstition+springs+mesa+arizona&sll=33.595944,-111.984007&sspn=0.010241,0.022681&gl=us&ie=UTF8&hq=superstition+springs&hnear=Mesa,+AZ&ll=33.382146,-111.689286&spn=0.020534,0.045362&t=h&z=15&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Superstition-Springs-Golf-Club/135929467428?v=wall";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/superstitionspr";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Tallgrass Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=tallgrass+country+club+wichita+kansas&sll=41.356196,-81.396503&sspn=0.018458,0.045362&ie=UTF8&hq=tallgrass+country+club&hnear=Wichita,+KS&ll=37.730878,-97.230635&spn=0.020297,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/TallgrassCC?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Tamarack Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=tamarack+golf+club+naperville+illinois&sll=33.382146,-111.689286&sspn=0.020534,0.045362&gl=us&ie=UTF8&hq=tamarack+golf+club&hnear=Naperville,+IL&ll=41.689771,-88.202877&spn=0.019164,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Naperville-IL/Tamarack-Golf-Club/322774900443?";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Tatum Ranch Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=tatum+ranch+golf+club+cave+creek+arizona&sll=33.759185,-111.985489&sspn=0.682746,1.451569&ie=UTF8&hq=tatum+ranch+golf+club&hnear=Cave+Creek,+AZ&ll=33.759847,-111.982484&spn=0.010668,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/TRGC29888";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "The Crossings"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=the+crossings+golf+club+richmond+virginia&sll=37.589479,-77.529488&sspn=0.162686,0.362892&gl=us&ie=UTF8&hq=the+crossings+golf+club&hnear=Richmond,+VA&ll=37.663338,-77.438657&spn=0.010158,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "The Golf Club at Cinco Ranch"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=golf+club+at+cinco+ranch+katy,+texas&sll=38.644663,-90.28307&sspn=0.019206,0.045362&gl=us&ie=UTF8&hq=golf+club+at+cinco+ranch&hnear=Katy,+TX&ll=29.748432,-95.760505&spn=0.011141,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Katy-TX/The-Golf-Club-at-Cinco-Ranch/217462453571?v=info&ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "The Links at Challedon Golf Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=links+at+challedon+mt.+airy+maryland&sll=37.663338,-77.438657&sspn=0.010158,0.022681&gl=us&ie=UTF8&hq=links+at+challedon&hnear=Mount+Airy,+MD&ll=39.408346,-77.096472&spn=0.039657,0.090723&t=h&z=14&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/challedon";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Valencia Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=valencia+country+club+los+angeles&sll=26.094116,-80.390525&sspn=0.011524,0.022681&ie=UTF8&hq=valencia+country+club&hnear=Los+Angeles,+CA&ll=34.420576,-118.573422&spn=0.020285,0.045362&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/VCCGolf";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Weston Hills Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=weston+hills+country+club,+florida&sll=32.235195,-80.766116&sspn=0.086831,0.181446&ie=UTF8&hq=weston+hills&hnear=Country+Club,+FL&ll=26.094116,-80.390525&spn=0.011524,0.022681&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Weston-FL/Weston-Hills-Country-Club/48979576190";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Weymouth Country Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=weymouth+country+club,+medina+ohio&sll=33.759847,-111.982484&sspn=0.010668,0.022681&ie=UTF8&hq=weymouth+country+club,&hnear=Medina,+OH&ll=41.166411,-81.821172&spn=0.00966,0.022681&t=h&z=16&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Medina-OH/Weymouth-Country-Club/198044533293";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/WeymouthCC";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Beaver Creek Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=beaver+creek&sll=36.866575,-84.971609&sspn=0.031656,0.07699&gl=us&ie=UTF8&hq=beaver+creek&hnear=&ll=36.861528,-84.976673&spn=0.015829,0.038495&t=h&z=15";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Brady Mountain Resort and Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=4120+Brady+Mountain+Road,+royal,+AR+71968&sll=36.860395,-84.974055&sspn=0.016688,0.038495&gl=us&ie=UTF8&hq=&hnear=Brady+Mountain+Rd,+Garland,+Arkansas+71968&ll=34.585984,-93.253798&spn=0.017171,0.038495&t=h&z=15";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Burnside Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=burnside+marina+monticello+ky&sll=34.585984,-93.253798&sspn=0.017171,0.038495&gl=us&ie=UTF8&hq=burnside+marina&hnear=Monticello,+KY&ll=36.990179,-84.603825&spn=0.016659,0.038495&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Burnside-KY/Burnside-Marina/377616054918?ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Crystal Point Yacht Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=crystal+point+yacht+club+point+pleasant+nj&sll=32.955421,-97.055433&sspn=0.00875,0.019248&gl=us&ie=UTF8&hq=crystal+point+yacht+club&hnear=Point+Pleasant,+NJ&ll=40.096335,-74.083922&spn=0.003989,0.009624&t=h&z=17&iwloc=B";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Dallas Market Center"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?hl=en&source=hp&ie=UTF8&q=dallas+market+center+dallas+texas&fb=1&gl=us&hq=dallas+market+center&hnear=dallas+texas&cid=0,0,10006741446945985270&ei=lsQSS6DHFNS0tgew7PSsCQ&ved=0CAoQnwIwAA&ll=32.808053,-96.821222&spn=0.016628,0.038495&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/DallasMarketCenter/";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/DallasMarket";
        }else if (theId == "YouTube"){
            link =  "http://www.youtube.com/user/dallasmarketcenter";
        }else if (theId == "Flickr"){
            link =  "http://www.flickr.com/photos/38055361@N07/";
        }else link = "#";
    }else if (parentId == "Eagle Cove Resort"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=eagle+cove+byrdstown+tn&sll=36.990179,-84.603825&sspn=0.016659,0.038495&gl=us&ie=UTF8&hq=eagle+cove&hnear=Byrdstown,+TN&ll=36.625895,-85.236483&spn=0.015878,0.038495&t=h&z=15&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Great Lakes Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=great+lakes+marina,+muskegon+mi&sll=36.625895,-85.236483&sspn=0.015878,0.038495&gl=us&ie=UTF8&hq=great+lakes+marina,&hnear=Muskegon,+MI&ll=43.21807,-86.291245&spn=0.003604,0.009624&t=h&z=17";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/group.php?gid=38434736317&ref=search#!/group.php?gid=38434736317&v=wall&ref=search";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Holly Creek Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=holly+creek+resort+celina+tn&sll=36.594799,-85.413497&sspn=0.033491,0.07699&gl=us&g=holly+creek+celine+tn&ie=UTF8&cd=1&hq=holly+creek+resort&hnear=Celina,+TN&ll=36.592376,-85.401106&spn=0.016746,0.038495&t=h&z=15";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Lakefront Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=lakefront+marina+port+clinton+ohio&sll=36.592376,-85.401106&sspn=0.016746,0.038495&gl=us&ie=UTF8&cd=1&hq=lakefront+marina&hnear=Port+Clinton,+OH&ll=41.523246,-82.970209&spn=0.007406,0.019248&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Manasquan River Club"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=manasquan+river+club+brick+nj&sll=40.096335,-74.083922&sspn=0.003989,0.009624&gl=us&ie=UTF8&hq=manasquan+river+club&hnear=Brick,+New+Jersey&ll=40.10409,-74.095166&spn=0.007976,0.019248&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mizner Court at Broken Sound"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=mizner+court+boca+raton+florida&sll=36.111084,-95.885115&sspn=0.002106,0.004812&gl=us&ie=UTF8&hq=&hnear=Mizner+Ln,+Boca+Raton,+Palm+Beach,+Florida+33433&ll=26.351344,-80.172697&spn=0.004672,0.009624&t=h&z=17&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Orlando Grand Plaza Hotel and Suites"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Pier 121 Marina and East Hill Park"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=pier+121+lewisville+texas&sll=41.523246,-82.970209&sspn=0.007406,0.019248&gl=us&ie=UTF8&hq=pier+121&hnear=Lewisville,+TX&ll=33.076655,-96.91658&spn=0.008738,0.019248&t=h&z=16";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Lewisville-TX/Pier-121-Marina/52722641340";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Route 66 Harley-Davidson"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=route+66+harley-davidson+tulsa+ok&sll=40.10409,-74.095166&sspn=0.007976,0.019248&gl=us&ie=UTF8&hq=route+66+harley-davidson&hnear=Tulsa,+OK&ll=36.111084,-95.885115&spn=0.002106,0.004812&t=h&z=18&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/pages/Tulsa-OK/Route-66-Harley-Davidson/364931929154";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Sandusky Harbor Marina"){
        if (theId == "Google"){
            link =  "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&view=text&q=sandusky+harbor+marina+sandusky+ohio&sll=33.076655,-96.91658&sspn=0.008738,0.019248&gl=us&ie=UTF8&hq=sandusky+harbor+marina&hnear=Sandusky,+OH&ll=41.450994,-82.738659&spn=0.007816,0.019248&t=h&z=16&iwloc=A";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Big Sky Mountain Resort"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "http://www.facebook.com/bigskyresort";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/bigskyresort";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Mount Cranmore Ski Resort"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "http://twitter.com/CranmoreMtn";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Emeryville Marina"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Orvis Shorefox"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Porcupine Hills Estates"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Scottâ€™s Landing Marina"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Silver Lake Marina and Park"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";
    }else if (parentId == "Twin Coves Marina and Park"){
        if (theId == "Google"){
            link =  "#";
        }else if (theId == "Facebook"){
            link =  "#";
        }else if (theId == "Twitter"){
            link =  "#";
        }else if (theId == "YouTube"){
            link =  "#";
        }else if (theId == "Flickr"){
            link =  "#";
        }else link = "#";   
        // Copy and Paste this region For a new property
        // Start
        //}else if (parentId == "PropertyName"){
        //    if (theId == "Google"){
        //        link =  "#";
        //    }else if (theId == "Facebook"){
        //        link =  "#";
        //    }else if (theId == "Twitter"){
        //        link =  "#";
        //    }else if (theId == "YouTube"){
        //        link =  "#";
        //    }else if (theId == "Flickr"){
        //        link =  "#";
        //    }else link = "#";
        // End
    }
    // add the popup menu and assign the new link to it
    var newURL = jumpMenuBizPopup(link);
}

