// JavaScript Document //
/* © 2001-2007 abDesignStudio - All rights reserved */
var detectableWithVB=false; var flashFound=false;
function VidGal(Movie, vid, lang, width, height){found=detectPlugin('Shockwave','Flash');if(!found && detectableWithVB){found=detectActiveXControl('ShockwaveFlash.ShockwaveFlash.1');}if(found){var str=document.flshform; MovVars="vid="+vid+"&lang="+lang; 
var MovieTags='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+Movie+'"><param name="FlashVars" value="'+MovVars+'"><param name="menu" value="false"><param name="quality" value="high"><param name="salign" value="lt"><param name="bgcolor" value="#ffffff"><param name="allowFullScreen" value="true"/><embed src="'+Movie+'" FlashVars="'+MovVars+'" menu="false" quality="high" salign="lt" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="bmovie" align="top" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';document.write(MovieTags);}else{var noFlash='<div id="noflash"><br><br><p>System detected that you don\'t have Above Flash Player installed; you need to install Adobe Flash Player to enjoy this Video Gallery! Would you like to download and install one? It will only take a moment.<br>[ <a href="http://www.adobe.com/go/getflash/" target="_blank">Get Adobe Flash Player. (opens new window)</a> ]</p></div>';document.write(noFlash);}}
function canDetectPlugins(){if(detectableWithVB||(navigator.plugins && navigator.plugins.length>0)){return true;}else{return false;}}function detectPlugin(){var ThePlugins=detectPlugin.arguments;var flashFound=false;if(navigator.plugins && navigator.plugins.length > 0){var pluginsArrayLength=navigator.plugins.length;for(pluginsArrayCounter=0;pluginsArrayCounter < pluginsArrayLength;pluginsArrayCounter++ ){var numFound = 0;for(namesCounter=0; namesCounter < ThePlugins.length; namesCounter++) {if((navigator.plugins[pluginsArrayCounter].name.indexOf(ThePlugins[namesCounter]) >= 0)||(navigator.plugins[pluginsArrayCounter].description.indexOf(ThePlugins[namesCounter]) >=0)){numFound++;}}if(numFound==ThePlugins.length){flashFound = true;break;}}}return flashFound;}if((navigator.userAgent.indexOf('MSIE')!=-1)&&(navigator.userAgent.indexOf('Win')!=-1)){document.write('<script language="VBscript">\n'+'detectableWithVB = False\n'+'If ScriptEngineMajorVersion >= 2 then\n'+'detectableWithVB=True\n'+'End If\n'+'Function detectActiveXControl(activeXControlName)\n'+'on error resume next\n'+'detectActiveXControl=False\n'+'If detectableWithVB Then\n'+'detectActiveXControl = IsObject(CreateObject(activeXControlName))\n'+'End If\n'+'End Function\n'+'</scr' + 'ipt>');}
