
function Loadmovie()
{
   document.write('<object	type="application/x-shockwave-flash" \n'); 
  document.write(' data="images/home2.swf" height="310px" width="1100px">\n');
   document.write('<param name="movie" value="images/home2.swf" />\n');
    document.write('<param name="scale" value="exactfit"/>');
   document.write('<param name="loop" value="false" />\n');
   document.write('<param name="background" value="#fff" />\n');
   document.write('</object>\n');

}

function Loadclients()
{
   document.write('<object	type="application/x-shockwave-flash" \n'); 
  document.write(' data="images/clientswtestimonial.swf" height="310px" width="1100px">\n');
   document.write('<param name="movie" value="images/clientswtestimonial.swf" />\n');
    document.write('<param name="scale" value="exactfit"/>');
   document.write('<param name="loop" value="false" />\n');
   document.write('<param name="background" value="#fff" />\n');
   document.write('</object>\n');

}

function Loadcase(caseno)

{
   document.write('<object	type="application/x-shockwave-flash" \n data="'); 
 document.write(caseno);
  document.write('" height="310px" width="1100px">\n');
   document.write('<param name="movie" value="');
    document.write(caseno);
    document.write('" />\n <param name="scale" value="exactfit"/>');
   document.write('<param name="loop" value="false" />\n');
   document.write('<param name="background" value="#fff" />\n');
   document.write('</object>\n');

}

function hide() {
	if (document.getElementById) { // DOM3 = IE5, NS6
				var first="first";
				var next="next";
		document.getElementById(first).style.display = 'none';
		document.getElementById(next).style.display = 'none';
	}
			
		else if (document.layers) { // Netscape 4
							var first="first";
							var next="next";
		document.first.style.display = 'none';
		document.next.style.display = 'none';
	}
}
 
function swap(no)
 {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
				hide();
				document.getElementById(no).style.display = 'block';
	
	}


	else if (document.layers) { // Netscape 4
				hide();
					document.no.style.display = 'block';
		}
	}

		function mailer(text) {			
				var anchortext = text;
				var mailpart1 = 'mail';
				var mailpart2 = 'redsnapperdesign.co.uk';
				document.write("<a href=" + "mail" + "to:" + mailpart1 +
				"@" + mailpart2 + ">" + anchortext + "</a>");
				}