/*****************************************************************************************
******************************************************************************************
**** Copyright © Profit-Tell International Inc.  &  American Business Graphics, Inc.  ****
****          www.Profit-Tell.com                          www.abgnet.com             ****   
******************************************************************************************
*****************************************************************************************/
//DO NOT MODIFY BEYOND THIS POINT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
function getCookie(NameOfCookie){
      if (document.cookie.length > 0) {              
        begin = document.cookie.indexOf(NameOfCookie+"=");       
        if (begin != -1) {           
          begin += NameOfCookie.length+1;       
          end = document.cookie.indexOf(";", begin);
          if (end == -1) end = document.cookie.length;
            return unescape(document.cookie.substring(begin, end));
        } 
      }
      return null;
    }
//
function setCookie(NameOfCookie, value, expiredays) {
      var ExpireDate = new Date();
      ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

      document.cookie = NameOfCookie + "=" + escape(value) + 
      ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
	  history.go();
    }
//
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handles all the the FSCommand messages in a Flash movie
function movie_DoFSCommand(command, args) {
  var urlObj = InternetExplorer ? movie : document.movie;
  //
   if(command == "sound") {
    setCookie('NoSound', '0', 1000)
 }
   if(command == "soundyes") {
    setCookie('NoSound', '0', -1)
 }
  //
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub movie_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call movie_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

// 
var p = location.pathname
var l_array = p.split("/");
var nPos = (l_array.length - 1);
var r = l_array.slice(-1);
var q = l_array[nPos]
var p = q.split(".");
var flName = p[0]
var	flWidth = "125"
var	flHeight = "25"
c = getCookie('NoSound')

if (flName == "") {
	flName = "index";
}

document.writeln ('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.writeln (' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ID="movie" WIDTH='+flWidth+' HEIGHT='+flHeight+'>');
document.writeln (' <param name="allowScriptAccess" value="sameDomain" />');

if (c != 0){
document.writeln (' <PARAM NAME=movie VALUE="FlashAudio/WebTELL.swf?'+flName+'&SOUND_ON"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>');
document.writeln (' <PARAM NAME=wmode VALUE=transparent>');
document.writeln (' <EMBED src=FlashAudio/WebTELL.swf?'+flName+'&SOUND_ON quality=high wmode=transparent bgcolor=#FFFFFF  WIDTH='+flWidth+' HEIGHT='+flHeight+' allowScriptAccess="sameDomain" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}	
else {
document.writeln (' <PARAM NAME=movie VALUE="FlashAudio/WebTELL.swf?'+flName+'&SOUND_OFF"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>');
document.writeln (' <PARAM NAME=wmode VALUE=transparent>');
document.writeln (' <EMBED src=FlashAudio/WebTELL.swf?'+flName+'&SOUND_OFF quality=high wmode=transparent bgcolor=#FFFFFF  WIDTH='+flWidth+' HEIGHT='+flHeight+' allowScriptAccess="sameDomain" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}
//
/*****************************************************************************************
******************************************************************************************
**** Copyright © Profit-Tell International Inc.  &  American Business Graphics, Inc.  ****
****          www.Profit-Tell.com                          www.abgnet.com             ****   
******************************************************************************************
*****************************************************************************************/