var pagearSmallImg = 'page-peel/golf/pageear_s.jpg'; 
var pagearSmallSwf = 'page-peel/golf/pageear_s.swf'; 
var pagearBigImg = 'page-peel/golf/pageear_b.jpg'; 
var pagearBigSwf = 'page-peel/golf/pageear_b.swf'; 
var speedSmall = 1; 
var mirror = 'false'; 
var pageearColor = 'ffffff';  
var jumpTo = 'http://www.discovermyrtlebeach.com/clickthrough_general.cfm?id=57&where=out&goto=http://www.myrtlebeachgolfvacations.com/dmb'; 
var openLink = 'new'; 
var openOnLoad = 0.5; 
var closeOnLoad = 3; 
var setDirection = 'rt'; 
var softFadeIn = 1; 
var requiredMajorVersion = 6;
var requiredMinorVersion = 0;
var requiredRevision = 0;
var copyright = 'Webpicasso Media, www.webpicasso.de';
var thumbWidth  = 100;
var thumbHeight = 100;
var bigWidth  = 500;
var bigHeight = 500;
var xPos = 'right';
var queryParams = 'pagearSmallImg='+escape(pagearSmallImg); 
queryParams += '&pagearBigImg='+escape(pagearBigImg); 
queryParams += '&pageearColor='+pageearColor; 
queryParams += '&jumpTo='+escape(jumpTo); 
queryParams += '&openLink='+escape(openLink); 
queryParams += '&mirror='+escape(mirror); 
queryParams += '&copyright='+escape(copyright); 
queryParams += '&speedSmall='+escape(speedSmall); 
queryParams += '&openOnLoad='+escape(openOnLoad); 
queryParams += '&closeOnLoad='+escape(closeOnLoad); 
queryParams += '&setDirection='+escape(setDirection); 
queryParams += '&softFadeIn='+escape(softFadeIn); 
function openPeel(){
	document.getElementById('bigDiv').style.top = '0px'; 
	document.getElementById('bigDiv').style[xPos] = '0px';
	document.getElementById('thumbDiv').style.top = '-1000px';
}

function closePeel(){
	document.getElementById("thumbDiv").style.top = "0px";
	document.getElementById("bigDiv").style.top = "-1000px";
}

function writeObjects () { 
    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(setDirection == 'lt') {
        xPosBig = 'left:-1000px';  
        xPos = 'left';   
    } else {
        xPosBig = 'right:0px';
        xPos = 'right';              
    }
    document.write('<div id="bigDiv" style="position:absolute; width:'+ bigWidth +'px; height:'+ bigHeight +'px; z-index:9999; '+ xPosBig +' top:-1000px;">');    	
    if (hasReqestedVersion) {    	
    	AC_FL_RunContent(
    				"src", pagearBigSwf+'?'+ queryParams,
    				"width", bigWidth,
    				"height", bigHeight,
    				
    				//"align", "middle",
    				
    				"scale","default",
    				
    				"id", "bigSwf",
    				"align", "top",
					"salign","tl",
    				"quality", "high",
    				"bgcolor", "#FFFFFF",
    				"name", "bigSwf",
    				"wmode", "transparent",
    				"allowScriptAccess","always",
    				"type", "application/x-shockwave-flash",
    				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
    				"pluginspage", "http://www.adobe.com/go/getflashplayer"
    	);
    } else {  // otherwise do nothing or write message ...    	 
    	document.write('no flash installed');  // non-flash content
    } 
    document.write('</div>'); 
    document.write('<div id="thumbDiv" style="position:absolute; width:'+ thumbWidth +'px;height:'+ thumbHeight +'px;z-index:9999;'+xPos+':0px;top:0px;">');
    if (hasReqestedVersion) {    	
    	AC_FL_RunContent(
    				"src", pagearSmallSwf+'?'+ queryParams,
    				"width", thumbWidth,
    				"height", thumbHeight,
    				"align", "top",
    				"id", "bigSwf",
    				"quality", "high",
    				"bgcolor", "#FFFFFF",
    				"name", "bigSwf",
    				"wmode", "transparent",
    				"allowScriptAccess","always",
    				"type", "application/x-shockwave-flash",
    				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
    				"pluginspage", "http://www.adobe.com/go/getflashplayer"
    	);
    } else {  // otherwise do nothing or write message ...    	 
    	document.write('no flash installed');  // non-flash content
    } 
    document.write('</div>');  
    setTimeout('document.getElementById("bigDiv").style.top = "-1000px";',100);
}



