/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Codewise Presentation Manager - Flash Detection Script File, JS

Copyright (c) 2004-2010 Codewise Systems Inc. & Twisted Lime Media Inc. 
All rights reserved.

Created: 2006-04-13

Revision History:
  1.00	- Initial version. TB, 2006-04-13, 10:42
	- Added QuickTime detection. TB, 2007-07-11, 14:16

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

if(window.ActiveXObject){try{FlashPlayerObject=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');if(FlashPlayerObject){flashinstalled=2;FlashPlayerVersionTemp=FlashPlayerObject.GetVariable('$version');FlashPlayerVersionTempArray=FlashPlayerVersionTemp.split(' ')[1].split(',');flashversion=parseInt(FlashPlayerVersionTempArray[0],10);FlashPlayerVersionMinor=parseInt(FlashPlayerVersionTempArray[1],10);FlashPlayerVersionRevision=parseInt(FlashPlayerVersionTempArray[2],10);};}catch(err){flashinstalled=1;};if(QuickTimeDetection){try{QuickTimePlayerObject=new ActiveXObject('QuickTimeCheckObject.QuickTimeCheck.1');if(QuickTimePlayerObject){if(QuickTimePlayerObject.IsQuickTimeAvailable(0)){QuickTimePlayerInstalled=1;QuickTimePlayerVersion=Math.round((QuickTimePlayerObject.QuickTimeVersion.toString(16,10)/1000000)*10)/10;};};}catch(err){};};}else if(navigator.plugins&&(navigator.plugins.length>0)){FlashPlayerPluginObject=navigator.plugins['Shockwave Flash'];if(FlashPlayerPluginObject){flashinstalled=2;if(FlashPlayerPluginObject.description){var pluginDescription=FlashPlayerPluginObject.description;flashversion=pluginDescription.split('.')[0].split('Shockwave Flash ')[1];var FlashVersionSplitBy=' r';if(pluginDescription.indexOf(' d')!=-1){FlashVersionSplitBy=' d';};FlashPlayerVersionMinor=pluginDescription.split('.')[1].split(FlashVersionSplitBy)[0];FlashPlayerVersionRevision=pluginDescription.split('.')[1].split(FlashVersionSplitBy)[1];};}else{flashinstalled=1;if(navigator.plugins['Shockwave Flash 2.0']){flashinstalled=2;flashversion=2;};};for(loop00=0;loop00<navigator.plugins.length;loop00++){if(navigator.plugins[loop00].name.indexOf('QuickTime')!=-1){QuickTimePlayerInstalled=1;QuickTimePlayerVersion=parseFloat(navigator.plugins[loop00].name.substring(18));};};}else if((navigator.mimeTypes)&&(navigator.mimeTypes.length)){FlashPlayerPluginObject=navigator.mimeTypes['application/FlashPlayerPluginObject-shockwave-flash'];if((FlashPlayerPluginObject)&&(FlashPlayerPluginObject.enabledPlugin)){flashinstalled=2;}else{flashinstalled=1;};};dMsg+='The _codewise\/codewise_flash_detection.js script has been loaded|';