function random_img(){
	var bigIdea=new Array()
	
	//specify BIG IDEA images below. Put as many as you'd like
	bigIdea[1]="flashBlock_idea_01.jpg"
	bigIdea[2]="flashBlock_idea_02.jpg"
	bigIdea[3]="flashBlock_idea_03.jpg"
	bigIdea[4]="flashBlock_idea_04.jpg"
	
	//specify corresponding text below
	var bigIdea_txt=new Array()
	bigIdea_txt[1]="By 2010 Chicago will be the Greenest city in the USA."
	bigIdea_txt[2]="Idea #2"
	bigIdea_txt[3]="Idea #3"
	bigIdea_txt[4]="Idea #4"
	
	var ry=Math.floor(Math.random()*bigIdea.length)
	if (ry==0)
	ry=1
	document.write('<div id="idea"><img src="../../scripts/nav/'+bigIdea[ry]+'" alt="'+bigIdea_txt[ry]+'" width="528" height="267" /></div>');
}


function show_feedback(flash_active) {
document.getElementById('feedback_box').style.display='block';
if (flash_active) {
thisMovie('base').stopAuto();
}
}
function hide_feedback(flash_active) {
document.getElementById('feedback_box').style.display='none';
if (flash_active) {
thisMovie("base").startAuto();
}
}
/* This utility function resolves the string movieName to a Flash object reference based on browser type. */
function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}

function getObject(obj) {
  var theObj;
  if(document.all) {
    if(typeof obj=="string") {
      return document.all(obj);
    } else {
      return obj.style;
    }
  }
  if(document.getElementById) {
    if(typeof obj=="string") {
      return document.getElementById(obj);
    } else {
      return obj.style;
    }
  }
  return null;
}


function form_limit(field_id,message_id,message,max_length) {
  var field_obj=getObject(field_id);
  var message_obj=getObject(message_id);
  var remaining=max_length - field_obj.value.length;
  if(remaining <= 0) {
    remaining=0;
    field_obj.value=field_obj.value.substr(0,max_length);
  }
  message_obj.innerHTML = message.replace("{CHAR}",remaining);
}