function getVideoPath( bBmpOnly )
{
if ( gAgent.indexOf("mac") != -1 ) {
return getMacVideoPath(bBmpOnly);
}
else {
return getWindowsVideoPath(bBmpOnly);
}
}
function getWindowsVideoPath( bBmpOnly )
{
var sVideoPath = "";
var sBitmapPath = "";
// TC_JS(Start)
sVideoPath = "file:///C|/Taxes/Video";
sBitmapPath = "file:///C|/Taxes/Video";
// TC_JS(End)
if( bBmpOnly ) {
return sBitmapPath;
}
else {
return sVideoPath;
}
}
// Check operating system.
function OSX() {
for (var i = 0; i < navigator.plugins.length; i++)
{
// looking for marker for IE on OS X
if (navigator.plugins[i].name.indexOf("Default Plugin Carbon.cfm") > -1)
return true;
// looking for marker for Netscape on OS X.
if (navigator.plugins[i].name.indexOf("OS X") > -1)
return true;
}
// looking for marker for Safari on OS X.
if (gAgent.indexOf("mac os x") > -1)
return true;
// This is OS 9.
return false;
}
function getMacVideoPath( bBmpOnly )
{
var sVideoPath = "";
var sBitmapPath = "";
if ( OSX() ) {
sVideoPath = "file:///Volumes/TaxCut Premium 2004/TaxCut 2004/video";
sBitmapPath = "file:///Volumes/TaxCut Premium 2004/TaxCut 2004/video";
}
else {
sVideoPath = "file:///TaxCut Premium 2004/TaxCut 2004/video";
sBitmapPath = "file:///TaxCut Premium 2004/TaxCut 2004/video";
}
if( bBmpOnly ) {
return sBitmapPath;
}
else {
return sVideoPath;
}
}
function getVideoUrl( sFileName )
{
var sUrl = getVideoPath(false) + "/" + sFileName;
return sUrl;
}
function getVideoBitmapUrl( sFileName )
{
var sUrl = getVideoPath(true) + "/" + sFileName;
return sUrl;
}
function getVideoImageHtml( sFileName )
{
return ( "
" );
}
function showVideoImageFile( sFileName )
{
document.writeln( getVideoImageHtml( sFileName) );
}
function linkVideoFile( sFileName, sPromptHtml )
{
var prefix;
if(OSX()) {
prefix = ""
+ sPromptHtml
+ "";
document.writeln( sHtml );
}