/***** ScriptReaction Mutli Media Development - All Code Copyright ScriptReaction - www.scriptreaction.com *****/

var sftWare = {
	versions: {
		regattadata_latest: '1.3',
		monthmaker_latest: '1.0.1'
	},
	ask: function (){
		var msg = 'ScriptReaction.com\n';
		msg += 'Software Download:  ' + sftWare._display + '™  v' + sftWare._version + '\n\n\n';
		msg += 'TERMS OF DOWNLOAD:\n\n';
		msg += 'You agree that this program is provided as-is, without warranty of any kind (either express or implied) including, without limitation, any implied warranty of merchantability and fitness for a particular purpose, and any warranty of non infringement. In no event shall ScriptReaction, or anyone involved with this software, be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of the program, even if advised of the possibility of such damage.';
		msg += '\n\n\nBy clicking OK, you accept these terms of download.\n';
		release = confirm(msg);
		if(release){
			return true;
		}else{
			return false;
		}
	},
	get: function (id,version){
		switch(id) {
			case 'rgdt':
				sftWare._display = 'regattaDATA';
				sftWare._name = 'regattadata';
				break;
			case 'mnmk':
				sftWare._display = 'monthMAKER';
				sftWare._name = 'monthmaker';
				break;
		}
		sftWare._version = (version == 'latest') ? sftWare.versions[sftWare._name + '_latest'] : version;
		if(sftWare.ask()){
			sftWare.download();
		}
	},
	download: function (){
		location.href = 'downloads/srx_' + sftWare._name	+ '_v' + sftWare._version + '.exe';
	}
}