	
	function rsDoDownload () {
		
		//allGo = "yes";
		
		window.open("/files/RSInstaller.exe");
		
		return false;
	}
	
	/*
		try to initialize redswoosh
	*/
	function rsInstallInit () {		
		redswooshInitialize(rsInstallInitCallback, "Foo", gRedSwooshCID);
		document.getElementById('next').style.display = 'none';
	}		
		
	function rsInstallInitCallback (success, handle) {
		var osValue = document.getElementById('clientdownload_userselectedos').value;
		
		document.getElementById('norssection').style.display = 'none';
		document.getElementById('alreadyhavers').style.display = 'none';
		document.getElementById('rsinstalledsection').style.display = 'none';		
		document.getElementById('otherosusers').style.display = 'none';		

		document.getElementById('downloadandinstall').style.display = '';			
		
		if (success == true) {
			// if unknown set to have (2)
			if (gAlreadyHaveRedswoosh == 1) {
				gAlreadyHaveRedswoosh = 2;
			}
			
			// the member already have redswoosh  
			if (gAlreadyHaveRedswoosh == 2) {
				document.getElementById('alreadyhavers').style.display = '';
			}
			else {
				document.getElementById('rsinstalledsection').style.display = '';
			}
			
			document.getElementById('downloadandinstall').style.display = 'none';
			document.getElementById('next').style.display = '';
		} else {
			// if unknown set to have (2)
			if (gAlreadyHaveRedswoosh == 1) {
				gAlreadyHaveRedswoosh = 3;
			}			
						
			if (osValue != 1) {
				document.getElementById('otherosusers').style.display = '';		
				document.getElementById('downloadandinstall').style.display = 'none';
			}
			else {
				document.getElementById('next').style.display = 'none';
				document.getElementById('norssection').style.display = '';
				setTimeout("rsInstallInit()",5000);
			}
		}
	}
