document.write('');
var flashPath = "js/";
// Code to embed the flash file
var flash = '
';
//flash += '';
flash += '
';
var fdlFlashIdCounter = 0;
// Flash detection script
var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write(' \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write(' \n');
}
function writeFlash(el, moviePath, w, h, flashVars, winMode) {
var embedCode;
var origHtml;
var path;
var winMode;
if(moviePath.indexOf("/") == 0)
path = moviePath;
else
path = flashPath + moviePath;
if(winMode == undefined)
winMode = "transparent";
if(MM_FlashCanPlay){
origHtml = el.innerHTML;
embedCode = flash.replace(/@flashvars/g, flashVars);
embedCode = embedCode.replace(/@height/g, h + "px");
embedCode = embedCode.replace(/@width/g, w + "px");
embedCode = embedCode.replace(/@movie/g, path);
embedCode = embedCode.replace(/@wmode/g, winMode);
el.innerHTML = embedCode + "
" + origHtml + "
";
}
el.style.visibility = "visible";
}
function getInnerText(e){
var strText = "";
var node;
for(var i=0; i 0)
strText += "<" + node.nodeName.toLowerCase() + " " + ta + ">" + getInnerHtml(node) + "" + node.nodeName.toLowerCase() + ">";
else
strText += "<" + node.nodeName.toLowerCase() + " " + ta + " />"
break;
case 3: // text
strText += node.nodeValue;
break;
default: // comments etc
break;
}
}
//Strip leading and trailing spaces.
//var regEx = /^[ \t\r\n]+|[ \t\r\n]+$/g;
var regEx = /[\r\n\t]+|[ ]{2}/g;
strText = strText.replace(regEx, " ");
var regEx = /[ ]+/g;
strText = strText.replace(regEx, " ");
//Force upper case if neccessary
//if(forceUpperCase)strText = strText.toUpperCase();
return strText;
}
/*
Finds elements on page that match a given CSS selector rule. Some
complicated rules are not compatible.
Based on Simon Willison's excellent "getElementsBySelector" function.
Original code (with comments and description):
http://simon.incutio.com/archive/2003/03/25/getElementsBySelector
*/
function getElementsBySelector(selector)
{
var tokens = selector.split(' ');
var currentContext = new Array(document);
for(var i=0;i -1)
{
var bits = token.split('#');
var tagName = bits[0];
var id = bits[1];
var element = document.getElementById(id);
if(tagName && element.nodeName.toLowerCase() != tagName)
return new Array();
currentContext = new Array(element);
continue;
}
if(token.indexOf('.') > -1)
{
var bits = token.split('.');
var tagName = bits[0];
var className = bits[1];
if(!tagName)
tagName = '*';
var found = new Array;
var foundCount = 0;
for(var h=0;h -1); };
break;
default :
checkFunction = function(e) { return e.getAttribute(attrName); };
}
currentContext = new Array;
var currentContextIndex = 0;
for(var k=0;k