function init() {
		if (navigator.appVersion.indexOf("iPhone") != -1) {
			//alert("iPhone!");
			//document.getElementById("flashcontent").display = none;
			window.location="http://reasoninteractive.com/iphone";
		}
	}	
function getFlashMovie(movieName) {
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		return (isIE) ? window[movieName] : document[movieName];
		}
	function formSend() {
		var text = document.htmlForm.sendField.value;
		getFlashMovie("index").sendTextToFlash(text);  
		}
	function getTextFromFlash(str) {
		var myWidth = 0, myHeight = 0;
 		if (typeof(window.innerWidth) == 'number') {
  			//Non-IE
  			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
 			} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
   			//IE 6+ in 'standards compliant mode'
    		myWidth = document.documentElement.clientWidth;
    		myHeight = document.documentElement.clientHeight;
  			} else if( document.body && (document.body.clientWidth || document.body.clientHeight)) {
    		//IE 4 compatible
    		myWidth = document.body.clientWidth;
    		myHeight = document.body.clientHeight;
  		}

	var ary_str=str.split(",");
	cont.style.height='100%';cont.style.width='100%'
	
	if (ary_str[0] <= 650 && myHeight <= 650) {
  		cont.style.height='650px';
  		} else {
  		cont.style.height='100%';
 	}
 
 	if (ary_str[1] <= 770 && myWidth <= 770) {
  		cont.style.width='770px';
  		} else {
  		cont.style.width='100%';
 	}
 
 	return str + " received";
 
	}
