//-----------Parameters------------//
// smallbg: set bg of the small movie
// movingimage: the image to be scrolled
// scrolltxt: scrolling text
// txtsize: scroll text size
// textcolor: set the color of the scrolling text
// scrollspeed: scroll speed
// top: top displacment of the flah movie
// left: left displacment of the flash movie
// bigimg: To set biggest image file
// urlval: url to open after clicking the movie
// owindow: _self: open in the same window , _blank: open in new window

var smallbg = "imgload.jpg"   // var smallbg ="images/example1.jpg"
var movingimage = ""     //leave this blank if ou want to see a scrolling text
var scrolltxt = "Honest Answers - Click Here"
var txtsize = " 40"
var textcolor = "0xFFFFFF"
var scrollspeed = "10.6666666666667"   //Scroll speed scrollspeed=xx means that ever xx millsecond the image will move a pixel
var top = "0px"
var left = "0px"
var bigimg = "imgload.jpg"
var urlval = "http://www.michiganmakeover.com/honestanswers.html"
var owindow = "_SELF" 

function showAt(myobject, identifier1, displacment1, identifier2, displacment2 ) 
{ 	
	document.getElementById(identifier1).style.top = displacment1; 
	document.getElementById(identifier2).style.top = displacment2; 
	// Hook for Internet Explorer.
	if (navigator.appName.indexOf('Microsoft')!= -1) 
	{ 
		window.resizeBy(1,1); 
	}
}
function groundUncover(command, args) 
{ 
//window.alert("groundUncover");
if (command == 'doaction') 
	{ 
	covered.style.top = '-1000px'; 
	uncovered.style.top = top; 
	}
}
function groundCover(command, args) 
{ 
//window.alert("groundCover");
	if (command == 'doaction') 
	{ 
	uncovered.style.top = '-1000px'; 
	covered.style.top = top; 
	}
}

document.write('<style type="text/css">'+'#uncovered { top:-1000px; } </style>'); 

if (navigator.appVersion.indexOf('Windows') != -1 || navigator.appName.indexOf('Microsoft') != -1) 
	{ 	
	document.write('<style type="text/css">#covered { top:'+top+'; left:'+left+'; } #uncovered { left:'+left+'; } </style>'); 
	} 
	else 
	{ 
	document.write('<style type="text/css">#covered { top:-1000px; left:'+left+'; } #uncovered { left:'+left+'; } </style>'); 
	}
document.write('<div id="covered" style="position:absolute; width:75px; height:75px; z-index:20001;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" onMouseOver="checkexitcookie();" onClick="checkexitcookie();" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="cover4" width="75" height="75">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="PeelLT.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="smallimg='+smallbg+'&scrolltxt='+scrolltxt+'&txtsize='+txtsize+'&textcolor='+textcolor+'&scrollspeed='+scrollspeed+'&movingimage='+movingimage+'">'+'<embed src="PeelLT.swf" id="cover4" name="cover4" wmode="transparent" flashvars="smallimg='+smallbg+'&scrolltxt='+scrolltxt+'&txtsize='+txtsize+'&textcolor='+textcolor+'&scrollspeed='+scrollspeed+'&movingimage='+movingimage+'" width="75" height="75" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'+'<div id="uncovered" style="position:absolute; height:600px; width:800px; z-index:20000;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" onMouseOver="checkexitcookie();" onClick="checkexitcookie();" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="uncover4" width="800" height="600">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="UnPeelLT.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&yaxis=0">'+'<embed src="UnPeelLT.swf" wmode="transparent" width="800" height="600" flashvars="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&yaxis=0" id="uncover4" name="uncover4" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>');

if (navigator.appName.indexOf('Microsoft') != -1 && navigator.userAgent.indexOf('Windows'))	{ 
				  	var script="<script language='javascript'>";
				   	script+=" function small_FSCommand(command, args){ ";
					script+=" groundUncover(command, args); ";
				   	script+="} ";
					script+=" function big_FSCommand(command, args){ ";
					script+=" groundCover(command, args); ";
				   	script+=" } ";
				   	script+=" <//script>";
					//document.write(script);
}
