function show_preview(comid){
  document.getElementById("preview").innerHTML=getPreviewContent(comid);
}
function show_preview2(comid){
  document.getElementById("preview2").innerHTML=getPreviewContent(comid);
}

function getPreviewContent(comid) {
var com_name = '';
var com_img = '';
var com_desc = '';
var com_link = '';
var preview = true;
var output = '';

switch(comid){
    case 1:
        com_name = 'Sea Pines Plantation';
        com_img = 'thumb_seapines.jpg';
        com_link = 'sea-pines-plantation-oceanfront-homes-for-sale';
        com_desc = 'The Sea Pines Plantation is what put Hilton Head Island on the map and made Hilton Head the destination resort it is today. It is famous for its three championship golf courses including Harbor Town Golf Links, home of the PGA Tours WorldCom Classic. Seapines has a lush 605-acre wildlife preserve, access to over 5 miles of ocean, over 100 tennis courts, numerous swimming pools and a full service equestrian center.';
        break;

    case 2:
        com_name = 'Forest Beach';
        com_img = 'thumb_forestbeach.jpg';
        com_link = 'forest-beach-homes-villas-for-sale';
        com_desc = 'One of Hilton Head\'s largest plantations is situated between the Intracoastal Waterway and Port Royal Sound. Comprised of many smaller communities this plantation has a very diverse population. It is close to schools and the Island Recreation center which appeals to families, while the Cypress Retirement Community attracts our senior population. There are four 18-hole golf courses, numerous tennis courts, marina, nature trails and shared gardening area.';
        break;

     case 3:
        com_name = 'Shipyard Plantation';
        com_img = 'thumb_shipyard.jpg';
        com_link = 'shipyard-plantation-homes-villas-for-sale';
        com_desc = 'Shipyard Plantation offers 27 holes of championship golf, the Van Der Meer Racket Club with 14 clay and 6 hard tennis courts as well as ocean access at the Beach Club. Bike paths intertwine the many choices in golf and tennis villas throughout the plantation.';
        break;

      case 4:
        com_name = 'Wexford';
        com_img = 'thumb_wexford.jpg';
        com_link = 'wexford-plantation-homes-for-sale';
        com_desc = 'Wexford is a unique residential community that offers some of the most luxurious homes on the island. Many of the homes have private docks. The facilities include golf, boating, tennis and croquet. Wexford\'s 37.5 acre harbor is protected by lock gates. It can accommodate vessels up to 70 feet long drawing up to eight feet and offers an active kayaking and small boat program.';
        break;

       case 5:
        com_name = 'Long Cove';
        com_img = 'thumb_longcoveclub.jpg';
        com_link='long-cove-club-homes-for-sale';
        com_desc = 'In 1981 The Long Cove Club opened and was soon ranked in the top half of Golf Digest\'s list of "America\'s 100 Greatest Courses" and still remains on that list today. A membership to this challenging Pete Dye designed course is included with ownership in Long Cove Club. Residents also enjoy deep-water access to Broad Creek from the community\'s boat docks and a tennis center with 10 Har-Tru courts. ';
        break;

        case 6:
        com_name = 'Palmetto Dunes';
        com_img = 'thumb_palmettodunes.jpg';
        com_link='palmetto-dunes-homes-and-villas-for-sale-hilton-head-island';
        com_desc = 'This popular oceanfront community is located mid-island. It offers 3 miles of white sandy beaches and 11 miles of winding lagoons. There are three 18-hole golf courses and one of the largest tennis centers on the island with 25 tennis courts. The Disney Resort, Marriott Beach & Golf Resort and Hilton Hotels are located within the plantation.';
        break;

        case 7:
        com_name = 'Shelter Cove';
        com_img = 'thumb_sheltercove.jpg';
        com_link='shelter-cove-marina-condos-for-sale';
        com_desc = 'Shelter Cove Marina is one of the finest ports of call on the East Coast and is the largest deepwater marina on Hilton Head Island. Shelter Cove has many fine restaurants and shops and is the sight of numerous local events and festivals. As a Shelter Cove owner you are extended privileges and preferred rates at the 1,800-acre Palmetto Dunes resort community.';
        break;

        case 8:
        com_name = 'Folly Field';
        com_img = 'thumb_folly_field.jpg';
        com_link='folly-field-homes-villas-for-sale';
        com_desc = 'One of Hilton Head\'s oldest beach communities, this mid island neighborhood is an eclectic mix of modest beach cottages and ocean villas. There is easy access to the Islander\'s Beach Park, public playground, tennis facilities and even a doggy park.';
        break;

        case 9:
        com_name = 'Port Royal';
        com_img = 'thumb_portroyal.jpg';
        com_link='port-royal-plantation-homes-for-sale';
        com_desc = 'Port Royal is the island\'s only private single family seaside community. Situated in the northeastern corner, or heel, of Hilton Head Island it has access to 12 miles of beach where Port Royal Sound joins the Atlantic Ocean. There are 54 holes of championship golf, the Port Royal Racket Club, which sports 16 tennis courts (including two grass courts) and croquet courts.';
        break;

        case 10:
        com_name = 'Spanish Wells';
        com_img = 'thumb_spanishwells.jpg';
        com_link='spanish-wells-plantation-homes-for-sale';
        com_desc = 'Nestled on a peninsula between Calibogue Sound and Broad Creek in a secluded section of Hilton Head Island is Spanish Wells. The community has a private golf course, tennis courts, beach area and recreational dock. Many of the homes have private docks with deep wateraccess.';
        break;

        case 11:
        com_name = 'Indigo Run';
        com_img = 'thumb_indigorun.jpg';
        com_link='	indigo-run-plantation-homes-for-sale';
        com_desc = 'Indigo Run is the Island\'s newest residential community ideally located in the heart of Hilton Head Island. There are two outstanding golf courses; The Golden Bear Course, an acclaimed Nicklaus design and a private course named The Golf Club. This is the nations first Jack Nicklaus,Jack Nicklaus II collaboration. Numerous residential choices include the ultra-private Golf Club at Indigo Run, the waterfront communities of the River Club and Broad Pointe as well as the Garden Homes at Berwick Green.';
        break;

        case 12:
        com_name = 'Windmill Harbor';
        com_img = 'thumb_windmill.jpg';
        com_link='windmill-harbour-homes-and-villas-for-sale';
        com_desc = 'Windmill Harbor is the home of The South Carolina Yacht Club and a 16 acre marina with the largest number of boat slips on the island. The marina is a locked harbor system with direct access to the Intercoastal Waterway. Windmill Harbor offers a variety of choices in homes and villas. Many have wonderful views of the harbor and deep water.';
        break;

        case 13:
        com_name = 'Hilton Head Plantation';
        com_img = 'thumb_hiltonheadplantation.jpg';
        com_link='hilton-head-plantation-homes-villas-for-sale';
        com_desc = 'One of Hilton Head\'s largest plantations is situated between the Intracoastal Waterway and Port Royal Sound. Comprised of many smaller communities this plantation has a very diverse population. It is close to schools and the Island Recreation center which appeals to families, while the Cypress Retirement Community attracts our senior population. There are four 18-holegolf courses, numerous tennis courts, marina, nature trails and shared gardening area.';
        break;

        case 14:
        com_name = 'Hampton Hall';
        com_img = 'thumb_hamptonhall.jpg';
        com_link='hampton-hall-plantation-bluffton';
        com_desc = 'Hampton Hall is one of the largest residential properties in Buckwalter. The private gate community features an 18-hole golf course designed by Pete Dye. The full featured health and fitness center has an indoor/ outdoor pool, basketball courts, eight tennis courts and 6.5 miles of walking and biking trails.';
        break;

        case 15:
        com_name = 'Westbury Park';
        com_img = 'thumb_westburypark.jpg';
        com_link='westbury-park-bluffton';
        com_desc = 'Westbury Park is a neo-traditional neighborhood offering homes with large front porches and sidewalks lit by street lamps reminiscent of the homes of Charleston This family neighborhood offer fitness center, swimming area with wading pool for children as well as a grills and picnic benches for family barbecues.';
        break;

        case 16:
        com_name = 'Rose Hill';
        com_img = 'thumb_rosehill.jpg';
        com_link='rose-hill-plantation-bluffton-south';
        com_desc = 'This 1,700 acre private community is conveniently located about 7 miles from Hilton Head and offers two distinct neighborhoods,the "golf course side" and the "estate side". The homes on the estate side are built on gracious 2 to 3-acre lots near the equestrian center, polo fields and riding trails. Homes on golf side are on more modest lots with views of the golf course, lagoons or Pine Forests.';
        break;

        case 17:
        com_name = 'Sun City';
        com_img = 'thumb_suncity.jpg';
        com_link='sun-city-hilton-head-retirement-community';
        com_desc = 'Sun City has attracted retirees from throughout the United States. This gated community offers two 18-hole golf courses, state-of-the-art fitness center, 5000 square foot swimming pool, walking area, and many many special interest groups and clubs';
        break;

        case 18:
        com_name = 'Eagle\'s Point';
        com_img = 'thumb_eaglespoint.jpg';
        com_link= 'eaglespointe-homes-bluffton-south-carolina';
        com_desc = 'Eight miles from Hilton Head this family community is highlighted by the 18-hole Davis Love III designed course. There is a swimming pool and tennis complex featuring a junior Olympic pool, covered picnic area, fireplace, playground and open air cabana.';
        break;

        case 19:
        com_name = 'Berkeley Hall';
        com_img = 'thumb_berkeleyhall.jpg';
        com_link='berkeley-hall-plantation-bluffton-south-carolina';
        com_desc = 'This private golf community is the home of two Tom Fazio core golf courses; members enjoy a pure golf experience without the interruption of streets or homes. There is a 30-acre Golf Learning Center, also designed by Fazio and is considered one of the finest practice facilities of any American club. There is a 35,000 square foot clubhouse offering a wide venue of dining as well as a-state-of-the-art Spa and Fitness Center.';
        break;

        case 20:
        com_name = 'Oldfield';
        com_img = 'thumb_oldfield.jpg';
        com_link='oldfield-plantation-bluffton-south-carolina';
        com_desc = 'Built along the Okatie river, Oldfield is a private club community within a 30 minute ride to Hilton Head, 		Savannah and Beaufort. In addition to the stunning 18-hole Greg Norman golf course there is an Outfitters Center which offers residents kayaking, canoeing, fishing, shrimping and crabbing.';
        break;

        case 21:
        com_name = 'Belfair';
        com_img = 'thumb_belfair.jpg';
        com_link='belfair-plantationbluffton-for-sale';
        com_desc = 'Located just 5 miles from the bridge to Hilton Head Island this private golf community offers two 18-hole Tom Fazio designed courses, a 10,000 square foot Fitness and Sports center as well as an indoor/outdoor pools, tennis courts and playground. There is a grand clubhouse and a 29-acre Jim Ferree golf learning center.';
        break;

        case 22:
        com_name = 'The Crescent';
        com_img = 'thumb_crescent.jpg';
        com_link='the-crescent-bluffton-for-sale';
        com_desc = 'The Crescent is a gated community offering fairway, marsh and lagoon view homes on the only Arnold Palmer designed course in the area. There is a Swim, Tennis and Indoor Fitness center featuring large pool, sun deck, outdoor dining and cookout area.';
	
        break;

        case 23:
        com_name = 'Moss Creek';
        com_img = 'thumb_mosscreek.jpg';
        com_link='moss-creek-plantation-for-sale';
        com_desc = 'Located at the entrance to Hilton Head Island, this private community is bordered by a 1,200 acre nature preserve on the west and on the east by Low country marshlands. A wide variety of recreational facilities are available including two 18-hole Fazio designed golf courses, deepwater marina, tennis center, swimming pool and fully equipped equestrian center.';
        break;

        case 24:
        com_name = 'Colleton River';
        com_img = 'thumb_collectionriver.jpg';
        com_link='colleton-river-plantation-for-sale';
        com_desc = 'The entrance to the plantation takes you through the South Carolina Nature Preserve to a 1,500 acre community with over 7 miles of salt water marshes and 1.5 miles of deepwater. This elegant community offers two top-ranked golf courses. One designed by Pete Dye and the second more traditional course designed by Jack Nicklaus. There is a Stan-Smith designed tennis facility, an activity and fitness center and a Charleston style club house.';
        break;

        case 25:
        com_name = 'Palmetto Hall';
        com_img = 'Palmetto-Hall-Mod1.jpg';
        com_link='palmetto-hall-homes-for-sale-hilton-head-island';
        com_desc = 'Palmetto Hall is centrally located on Hilton Head Island and has become known as one the island\'s more intimate, neighborly communities. Its homes are of a Southern classic style featuring large porches and decks. Residents enjoy views of lagoons, one of the two 18-hole golf courses or the plantation\'s 100-acre wooded nature preserve.';
        break;

        case 26:
        com_name = 'Palmetto Bluff';
        com_img = 'thumb_palmettobluff.jpg';
        com_link='palmetto-bluff-bluffton-south-carolina';
        com_desc = 'Located in Bluffton, SC this 20,000-acre community and conservation preserve is comprised of neighborhoods ranging from multi-million dollar family compounds to more traditionally sized upscale family home sites.  The community features a vibrant Village center, luxury inn and spa managed by Auberge Resorts as well as a Jack Nicklaus Signature golf course. ';
        break;
    default:
        preview = false;
    break;

}

if(preview){
    output = '<div style="border:1px solid #E1C53E; margin-left:5px; padding:5px;"><div class="prevhead">'+com_name+'</div>' +
               '<div class="previmg"><a href="/'+com_link+'.html"><img src="images/'+com_img+'" width="210" height="104" alt="" border="0"></a></div>' +
               '<div class="prevdesc">'+com_desc+'</div></div>'; 
}
return output;
}
