



// 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;
};



// Change actor script

function changeactor(thetype,actorfile)
{
 

  if (thetype=='s')
  {
  flvbase='demos';
  };


  if (thetype=='c')
  {
  flvbase='promos';
  };


  theflv=actorfile;
  showvideo();


}



answeryes='';
answeryestext='';
answeryeswait='';
clicktoplaywait='';
waittime='2000';
videobuffer='20';
alignvideo='bottomleft';
cuepointaction='';
bigplay='';
bigplayx='340';
bigplayy='230';
bwidth='100';
bheight='100';
padx='0';
pady='0';
anchorlocation='topright';
headline='SpokesPerson Demonstration';
pad='0';
mwidth='960';
mheight='650';
loopflv='';
scaleflv='no';
scalecanvas='no';
videox='0';
videoy='0';
autostart='no';
playalways='no';
showevery='7';
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='250';
videofg='';
videofgwait='0';
videofgx='';
videofgy='0';
videomusic='';
videomusicvolume='';
theurltarget='_self';
theurl='showpopup()';
theurltype='j';
clicktext='';
clickgraphic='';
containerbase='http://code.javahd.com/container/';
flvbase='demos';
theflv='';
theflvvolume='100';
thenextflv='';
autoforward='';
autoforwardtype='j';
autorun='';
autorundelay='1000';
thecontainer='container.swf';
thecontrollerx='auto';
thecontrollery='auto';
thecontroller='http://code.javahd.com/container/controller2.swf';
thecontrolleralpha='100';
freezeonend='yes';
freezeonendwait='5000';
chatbutton='no';
playbuttononend='';
versioncheck='';
speedlimit='500';
autodim='';
checkspeed='no';
translate='';
translateflv='';

// Do not edit below this line

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/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>');
