// MON 14/10/2008


//launches the popup window size correctly in different browsers to account for scrollbars...
function showPlatform2(theURL) {
	var theArgs;
	var theBrowser = getBrowser2();


	if (theBrowser == 'msie') {
		//IE
		theArgs = 'width=963,height=600,scrollbars=yes,resizable=yes';
	}else if (theBrowser == 'mozilla') {
		//firefox
		theArgs = 'width=967,height=600,scrollbars=yes,resizable=yes';
	}else if (theBrowser == 'safari') {
		//safari
		theArgs = 'width=965,height=600,scrollbars=yes,resizable=yes';
	}else{
		//others...
		theArgs = 'width=967,height=600,scrollbars=yes,resizable=yes';
	}


	window.open(theURL,'wtp',theArgs);
}

function getBrowser2(){
	var ua = navigator.userAgent.toLowerCase();
	var browserName;
	
	if (ua.indexOf('opera') != -1) {
		browserName = 'opera';
	}else if (ua.indexOf('msie') != -1) {
		browserName = 'msie';
	}else if (ua.indexOf('safari') != -1) {
		browserName = 'safari';
	}else if (ua.indexOf('mozilla') != -1) {
		browserName = 'mozilla';
	}
	
	return browserName;
	
}