var scripts = document.getElementsByTagName("SCRIPT")
var script = scripts[scripts.length-1].src
var scriptName = script.match(/[^\\|^\/]+\.\w+\w?$/)

document.write('<scr' + 'ipt src="http://code.javahd.com/jslogs/loghits.php?thefile=' + scriptName + '&theurl=' + location.href + '" type="text/JavaScript"><\/scr' + 'ipt>');


// Detect width and height of browser window

getViewportWidth = function() {
  var width = 0;
  if( document.documentElement && document.documentElement.clientWidth ) {
    width = document.documentElement.clientWidth;
  }
  else if( document.body && document.body.clientWidth ) {
    width = document.body.clientWidth;
  }
  else if( window.innerWidth ) {
    width = window.innerWidth - 18;
  }
  return width;
};


getViewportHeight = function() {
  var height = 0;
  if( document.documentElement && document.documentElement.clientHeight ) {
    height = document.documentElement.clientHeight;
  }
  else if( document.body && document.body.clientHeight ) {
    height = document.body.clientHeight;
  }
  else if( window.innerHeight ) {
    height = window.innerHeight - 18;
  }
  return height;
};



<!--
function writeJS(){
var str='';
str+='<form action="javascript: showdemo()" name="demo" id="demo">';
str+='   <input type="hidden" name="video" value="jodid.flv" \/>';
str+='         <input type="hidden" name="v" value="t" \/>';
str+='         <input type="hidden" name="alignvideo" value="bottomleft" \/>';
str+='         <input type="hidden" name="url" value="http://" \/>';
str+='       <\/form>';
document.write(str);
}
writeJS();
//-->


// Revert Base code

function revertbase ()
{

bwidth='350';
bheight='200';
translate='';
translateflv='';
videofg='';
videofgwait='0';
videofgx=getViewportWidth()-400;
videofgy=mheight-200;
showcontrols='no';
mwidth='600';
mheight='480';
flvbase='http://previews.javahd.com/flv/demos/';
}

function showdemo ()
{
  url="http://code.javahd.com/demo/demo.php?url=" + document.demo.url.value + "&alignvideo=" + document.demo.alignvideo.value + "&video=" + document.demo.video.value + "&v=" + document.demo.v.value;
  window.open(url);
}

// Change actor script

function changeactor(thetype, actorfile,actorname,thealignment,theurl)
{
  document.demo.v.value=thetype ;
  document.demo.alignvideo.value=thealignment ;
  document.demo.video.value=actorfile ;
  document.demo.url.value=theurl ;
//  theactorname=document.getElementById("actorname")
//  theactorname.innerHTML=actorname ;

  if (thetype=='c')
  {
  flvbase='http://previews.javahd.com/flv/cust/';
  };

  if (thetype=='fs')
  {
mwidth='480';
mheight='480';
  };

  if (thetype=='f')
  {
mwidth='270';
mheight='480';
  };

//  location.href='#top';
  theflv=actorfile;
  headline=actorname;
  answeryestext = actorname + ' Ready and available for your next project. Would you like to get started?';


//  if url =http:// only then showvideo, if not then launch new window
  if  (theurl == 'http://' || theurl == '')
  {
  showvideo();
  }
 else
 {
 showdemo();
 }

}


answeryes='';
answeryestext='';
answeryeswait='5';
clicktoplaywait='';
waittime='5000';
videobuffer='20';
alignvideo='bottomleft';
cuepointaction='';
bigplay='http://code.javahd.com/container/bigplay1.swf';
bigplayx='200';
bigplayy='200';
bwidth='100';
bheight='100';
padx='0';
pady='0';
anchorlocation='topleft';
headline='SpokesPerson Demonstration';
pad='0';
mwidth='600' ;
mheight='480';
loopflv='';
scaleflv='no';
scalecanvas='no';
videox='0';
videoy='0';
autostart='no';
playalways='no';
showevery='1';
showcontrols='yes';
loaderalpha='30';
maximpressions='1000000';
authorizedon='any';
mcimage1='http://code.javahd.com/buttons/button_playvideo_blank.swf';
mcimage='http://code.javahd.com/buttons/button_playvideo_blank.swf';
videobg='';
videobgx='0';
videobgy=mheight-150;
videofg='http://code.javahd.com/flash/overlay.swf';
videofgwait='0';
videofgx=getViewportWidth ()-400;
videofgy=mheight-200;
videomusic='';
videomusicvolume='10';
theurltarget='_self';
theurl='';
theurltype='l';
clicktext='';
clickgraphic='http://www.videospokespeople.com/videospokespeople/images/clickme.gif';
containerbase='http://code.javahd.com/container/';
flvbase='http://previews.javahd.com/flv/demos/';
theflv='';
theflvvolume='';
thenextflv='';
autoforward='';
autoforwardtype='l';
autorun='revertbase()';
autorundelay='1000';
thecontainer='container.swf';
thecontrollerx='auto';
thecontrollery='auto';
thecontroller='http://code.javahd.com/container/controller1.swf';
thecontrolleralpha='100';
freezeonend='';
freezeonendwait='';
chatbutton='';
playbuttononend='';
versioncheck='';
speedlimit='500';
autodim='';
checkspeed='no';
translate='';
translateflv='';

// Do not edit below this line


document.write('<scr' + 'ipt src="http://code.javahd.com/codemain/swfobject_2_2.js" type="text/JavaScript"><\/scr' + 'ipt>');
document.write('<scr' + 'ipt src="http://code.javahd.com/codemain/videosp_20.js" type="text/JavaScript"><\/scr' + 'ipt>');
document.write('<scr' + 'ipt src="http://code.javahd.com/codemain/showactors.js" type="text/JavaScript"><\/scr' + 'ipt>');