<!--// Flash Version Detector  v1.2.1// documentation: http://www.dithered.com/javascript/flash_detect/index.html// license: http://creativecommons.org/licenses/by/1.0/// code by Chris Nott (chris[at]dithered[dot]com)// with VBScript code from Alastair Hamilton (now somewhat modified)/** Since 8.1.2005 this version appears not to be detecting correctly function isDefined(property) {  return (typeof property != 'undefined');}var flashVersion = 0;function getFlashVersion() {	var latestFlashVersion = 8;   var agent = navigator.userAgent.toLowerCase(); 	   // NS3 needs flashVersion to be a local variable   if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) {      flashVersion = 0;   }   	// 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 = latestFlashVersion; i >= 3; 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 = '<scr' + 'ipt language="VBScript"\> \n';      doc += 'On Error Resume Next \n';      doc += 'Dim obFlash \n';      doc += 'For i = ' + latestFlashVersion + ' To 3 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 += '</scr' + 'ipt\> \n';      document.write(doc);   }			// WebTV 2.5 supports flash 3	else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;	// older WebTV supports flash 2	else if (agent.indexOf("webtv") != -1) flashVersion = 2;	// Can't detect in all other cases	else {		flashVersion = flashVersion_DONTKNOW;	}	return flashVersion;}flashVersion_DONTKNOW = -1;*/function getFlashVersion() {	return com.deconcept.FlashObjectUtil.getPlayerVersion();}/** * Substitute Flash with an Image if browser does not support // v1.1 * Writes to the document the flash file or an image substitute based on Flash Player Requirement * @requires flash_detect.js provided by http://www.dithered.com/javascript *  * use: MINK_flashSubstituteWithImage(f,i,w,h,p,r); * @param f	Flash file location (relative or absolute) * @param i Image file for the substitution if Flash Player is unavailable [optional] * @param w Flash file width (needed for object and embed tag) * @param h Flash file height (needed for object and embed tag) * @param p 2D Array of Parameter Name's and Values (eg, new Array(new Array("quality", "high"), new Array("wmode", "transparent"))) * @param r Flash version required, defaults to 6 if not specified * TODO: Replace Param movie,src with Flash file * Copyright 2005 MINK Web development. All rights reserved. This is not allowed to be re-used without permission from Cameron Manderson (cam@mink.net.au) */var rv = 7;function MINK_flashSubstituteWithImage() {		var x,r,c,f,i,w,h,p,args=MINK_flashSubstituteWithImage.arguments;	f=args[0];i=args[1],w=args[2],h=args[3],p=args[4];r=(args[5]?args[5]:(rv?rv:6));c=getFlashVersion();	c=c['major'];	if(c>=r){document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+w+"\" height=\""+h+"\">");	if(p)for(x=0;x<p.length;x++) document.write("<param name=\""+p[x][0]+"\" value=\""+p[x][1]+"\" />");	document.write("<embed src=\""+f+"\"");for(x=0;x<p.length;x++) { if(p[x][0]=="movie") { p[x][0]="src"; } 	document.write(" "+p[x][0]+"=\""+p[x][1]+"\""); } document.write(" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\"></embed></object>");  	} else if(i) document.write("<img src=\""+i+"\" border=\"0\"/>"); return;}function MINKTabs() { 	/** 	 * Switches styles for previous and new selected tabs	 * @param elem HTML Element ID	 */	this.currentSelectedTab = '';	this.selectedStyle = 'visible';	this.unselectedStyle = 'hidden';		 	 	this.MINK_selectTab = function(elem) { 					if(MM_findObj(elem)!=null) { if(this.currentSelectedTab !== '')this.MINK_setElementStyle(this.currentSelectedTab,this.unselectedStyle); 						this.currentSelectedTab = elem;	this.MINK_setElementStyle(this.currentSelectedTab,this.selectedStyle); }	}			/** 	 * Locates an object using MM_findObj(n,d) > 4.01 and sets the class to a new classname style	 * @param elem HTML Element ID	 * @param style CSS style to apply	 */	this.MINK_setElementStyle = function(elem, style) { // Requires MM_findObj(n,d) > v4.01 to be present				var obj; if((obj=MM_findObj(elem))!=null) { obj.className = style; }			}		/** 	 * Locates an object using MM_findObj(n,d) > 4.01 and sets the elements visible and block styles	 * @param elem HTML Element ID	 * @param state either 'show' or 'hide' depending on intended action state for element	 */		this.MINK_showHideElement = function(elem, state) {		var v,d,obj;		if ((obj=MM_findObj(elem))!=null) { v=state; d=state; if (obj.style) { 	  		obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; 	  		d=(d=='show')?'block':(d=='hide')?'none':d; }			obj.visibility=v; obj.display=d; }	} 			return this;}var tabs = new MINKTabs();-->