function clearField (thisfield, placeholder) {
if (thisfield.value == placeholder) { thisfield.value = ''}
}
var flashVersion = 0;
function getFlashVersion() {
var maxFlashVersion = 25;
var minFlashVersion = 6;
var agent = navigator.userAgent.toLowerCase();
// NS3 needs flashVersion to be a local variable
if (((agent.indexOf("mozilla/3") != -1) && (agent.indexOf("msie") == -1)) || ((agent.indexOf("msie") != -1) && (agent.indexOf("mac") != -1))) {
flashVersion = 0;
return flashVersion;
}
// NS3+, Opera3+, IE5+ Mac (support plugin array): check for Flash plugin in plugin array
if (navigator.plugins != null && navigator.plugins.length > 0) {
var flashPlugin = navigator.plugins['Shockwave Flash'];
if (typeof flashPlugin == 'object') {
for (var i = maxFlashVersion; i >= minFlashVersion; i--) {
if (flashPlugin.description.indexOf(i + '.') != -1) {
flashVersion = i;
break;
}
}
}
}
// IE4+ Win32: attempt to create an ActiveX object using VBScript
else if ((agent.indexOf("msie") != -1) && (parseInt(navigator.appVersion) >= 4) && (agent.indexOf("win") != -1) && (agent.indexOf("16bit") == -1)) {
var doc = ' \n';
doc += 'On Error Resume Next \n';
doc += 'Dim obFlash \n';
doc += 'For i = '+maxFlashVersion+' To '+minFlashVersion+' Step -1 \n';
doc += ' Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
doc += ' If IsObject(obFlash) Then \n';
doc += ' flashVersion = i \n';
doc += ' Exit For \n';
doc += ' End If \n';
doc += 'Next \n';
doc += ' \n';
document.write(doc);
} else flashVersion = -1;
return flashVersion;
}
function insertFlashObject(id,src,width,height,name,bgcolor) {
if (bgcolor.length == 0) bgcolor = '#ffffff';
var canDo=0;
if (getFlashVersion() >= 6) canDo = 1;
if (canDo==1) {
document.write('');
}
}