// new prototype defintion
document.include = function (url) {
 if ('undefined' == typeof(url)) return false;
 var p,rnd;
 if (document.all){
   // For IE, create an ActiveX Object instance 
   p = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else {
   // For mozilla, create an instance of XMLHttpRequest.
   p = new XMLHttpRequest();
 }
 // Prevent browsers from caching the included page
 // by appending a random  number
 rnd = Math.random().toString().substring(2);
 url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
 // Open the url and write out the response
 p.open("GET",url,false);
 p.send(null);
 document.write( p.responseText );
}


// display the flash clients scroll bar.
function RunClientsFlash()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="100%" height="100%" id="eyespider-client-scroller" align="middle" VIEWASTEXT>\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/client-scroller.swf" />\n');
	document.write('<param name="quality" value="medium" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/client-scroller.swf" quality="medium" bgcolor="#ffffff" width="100%" height="100%" name="eyespider-client-scroller" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

// display the flash header on the front page - full startup animation
function RunHeaderFlashDefault()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="766" height="356" id="header-jamie-8" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/header-jamie-31.swf?go=no" />\n');	
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/header-jamie-31.swf?go=no" quality="high" bgcolor="#ffffff" width="766" height="356" name="header-jamie-8" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>\n');
	document.write('</object>\n');
}

// display the flash header on the front page - skip startup animation
function RunHeaderFlash()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="766" height="356" id="header-jamie-8" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="flash/header-jamie-31.swf?go=play" />\n');	
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="flash/header-jamie-31.swf?go=play" quality="high" bgcolor="#ffffff" width="766" height="356" name="header-jamie-8" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>\n');
	document.write('</object>\n');
}

// display the flash logo only
function RunHeaderFlashLogo()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="766" height="133">\n');
	document.write('<param name="movie" value="flash/header-jamie-top-part-11.swf?go=play">\n');
	document.write('<param name="quality" value="high">\n');	
	document.write('<embed src="flash/header-jamie-top-part-11.swf?go=play" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="133"></embed>\n');
	document.write('</object>\n');
}

// display the portfolio
function RunPortfolio()
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="436" height="254" id="Object1" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="allowFullScreen" value="false" />\n');
	document.write('<param name="movie" value="portfolio.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><embed src="portfolio.swf" quality="high" bgcolor="#FFFFFF" width="436" height="254" name="portfolio" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

function Document_onKeyDown(e) 
   { 
    var nKey = -1; 
    var btn = document.getElementById("btnSubmit").value; 

    if (e && e.which) 
     nKey = e.which; // NS4 & NS6 
    else if (window.event && window.event.keyCode) 
     nKey = window.event.keyCode; // IE 

    if (nKey == 13) 
    { 
     document.getElementById(btn).click(); 
     return true; 
    } 

    return false; 
   } 