var randomNum = Math.random();
randomNum = randomNum*1000;
function writeFlash(src,w,h,id,a,b){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+w+"\" height=\""+h+"\" class=\""+id+"\">");
	document.write("<param name=\"movie\" value=\"images/"+src+".swf?ra="+randomNum+"\" />");
	document.write("<param name=\"menu\" value=\"false\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='flashvars' value='a="+a+"&b="+b+"&c="+w+"'>");
	document.write("<param name=\"bgcolor\" value=\"#000000\" />");
	document.write("<embed src=\"images/"+src+".swf?ra="+randomNum+"\" quality=\"high\" bgcolor=\"#000000\" width=\""+w+"\" height=\""+h+"\" name=\""+id+"\" menu=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\" flashvars=\"a="+a+"&b="+b+"&c="+w+"\"></embed></object>");
}

navText = new Array("Home","Testimonials","Video","Services","Discounts","About Us","Contact Us");
navLink = new Array("http://www.bigbeavertreeservice.com/","testimonials.php","commercial.php","services.php","discounts.php","about.php","contact.php");

function writeMedia(src,w,h){
	document.write('<object id="MediaPlayer" width="'+w+'" height="'+h+'" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">');
	document.write('<param name="filename" value="images/'+src+'">');
	document.write('<param name="Showcontrols" value="true">');
	document.write('<param name="autoStart" value="True">');
	document.write('<embed type="application/x-mplayer2" src="images/'+src+'" name="MediaPlayer" width="'+w+'" height="'+h+'" autostart="true" showcontrols="true"></embed>');
	document.write('</object>');
}

function writeQuick(src,w,h){
	document.write('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+w+'"HEIGHT="'+h+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
	document.write('<PARAM name="SRC" VALUE="images/'+src+'">');
	document.write('<PARAM name="AUTOPLAY" VALUE="true">');
	document.write('<PARAM name="CONTROLLER" VALUE="true">');
	document.write('<EMBED SRC="images/'+src+'" WIDTH="'+w+'" HEIGHT="'+h+'" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}