// check for Flash version

if(self.location.href.indexOf('?')!=-1){
	var quer = self.location.href.substring(self.location.href.indexOf('?') + 1);
	var URI_bits = quer.split('&');
	var nameValues = new Array();
	var i, key;
	for (i=0; i < URI_bits.length; i++) {
		key = URI_bits[i].split('=');
		if(!(key[1].search(/\b\d+\b/)!=-1)){
			key[1]="'" + key[1] + "'";
		}else{
			key[1]=parseInt(unescape(key[1]));
		}
    	eval("var "+ key[0]+"="+unescape(key[1]));
	}
}

function f_isFlash(f_flashVerRequired){
	var f_flashVersion = 0;
	var f_ie_win;
	f_ie_win = 0;
	
	if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)){
  		f_ie_win = 1;
  		
		function w1270(s) {
			document.writeln(s);
		}
		
  		w1270('<script language="VBscript">');
  		w1270('Dim f_detect_vb');
  		w1270('f_detect_vb = 0');
  		w1270('If ScriptEngineMajorVersion >=2 then');
  		w1270('    f_detect_vb =1');
  		w1270('End If');
  		w1270('Function f_activeXDetect(activeXname)');
  		w1270('	on error resume next');
  		w1270('	If ScriptEngineMajorVersion >=2 then');
  		w1270('		f_activeXDetect = False');
  		w1270('		f_activeXDetect = IsObject(CreateObject(activeXname))');
  		w1270('		If (err) then');
  		w1270('		f_activeXDetect = False');
  		w1270('		End If');
  		w1270('	Else');
  		w1270('		f_activeXDetect = False');
  		w1270('	End If');
  		w1270('End Function');
  		w1270('</scr' + 'ipt>');
	}
	
	if (document.layers || navigator.userAgent.indexOf('Mac') != -1 || navigator.userAgent.indexOf("Gecko")!=-1) {
		
		if (navigator.plugins && navigator.mimeTypes &&navigator.mimeTypes['application/x-shockwave-flash'] && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){
	        var f_isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
	        var f_flashDescription = navigator.plugins["Shockwave Flash" + f_isVersion2].description;
	        f_flashVersion = parseInt(f_flashDescription.charAt(f_flashDescription.indexOf(".") - 1));
 		}
 		
	} else if (f_ie_win && typeof f_detect_vb != 'undefined' && f_detect_vb){
		
		for(i=1;i<12;i++){
			if(f_activeXDetect('ShockwaveFlash.ShockwaveFlash.' + i)){
				f_flashVersion = i;
		}
	}
}
	
	if(f_flashVersion>=f_flashVerRequired){
		return true;
	} else {
		return false;
	}
}
