﻿
function fladetect(){

var MM_contentVersion = 7;
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)) {
       try{
var isobj = typeof (new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + MM_contentVersion));

if (isobj) {
    var MM_FlashCanPlay = true;
}}
catch (e)
{
        var MM_FlashCanPlay = false;
}

}
if ( MM_FlashCanPlay ) {
	
	document.poppedLayer = eval("document.getElementById('htmheader')");
	document.poppedLayer.style.display = 'none';

} else{
    
	
	document.poppedLayer = eval('document.getElementById("flaheader")');
	document.poppedLayer.style.display = 'none';
	document.getElementById('htmheader').style.display = 'inline';    
	}

}

function txtSearch_onfocus() {
    if (document.getElementById("ctl00_txtSearch").value = '--- Product Search ---') {
        document.getElementById("ctl00_txtSearch").value = '';
    }}
