//Functions
function setMessage(){			
	if (random_message == true)
		{
		current_message = message[Math.floor(Math.random()*message.length)];
		}
	else
		{
		current_message = default_message;		
		}
	return current_message
	}

function setAnimation(filename){			
	// Flash Variables
	var flashvars = {};
	flashvars.message =  setMessage() // Get random message
	
	// Animation Parameters
	var params = {};
	params.play = "true";
	params.loop = "false";
	params.menu = "false";
	params.quality = "best";
	params.scale = "noborder";
	params.wmode = "transparent";
	
	//Animation object attributes
	var attributes = {};
	attributes.id = "hunter";
	attributes.align = "left";
	
	//embed animation at specificied DIV
	swfobject.embedSWF(filename, "hunter-animation", "603", "276", "9.0.0", false, flashvars, params, attributes); 
	}
	
/*************************************************************************
**************************************************************************
************************* - USER SETTINGS - ******************************
**************************************************************************
*************************************************************************/

animation_file = "/sites/all/themes/corolla/hunter.swf" // SWF file, relative path
random_message = true;  // If set to 'true', one of messages defined below will be displayed at random on page load
						// If set to 'false', the default message will be displayed
						
default_message = "Welcome to our website! Enjoy your visit!" // Default message if 'random_message' is set to 'false'  

//Thought-Bubble Messages
message = new Array();

// Messages can be added,removed or edited here	
message[0] = "<font size='15'>Welcome to the FNIGC website! Enjoy the visit!<font color='#0000FF'></font></a>";
message[1] = "<font size='15'>Check the Careers with FNIGC for exciting opportunities.<br /><a href='/node/20'><font color='#0000FF'>Careers with FNIGC</font></a>";
message[2] = "<font size='13'>Visit the Downloads Page for documents or publications that you are looking for!<br /><a href='/node/6'><font color='#0000FF'>Click Here!</font></a>";
message[3] = "<font size='15'>Look here for news on the Regional Education and Employment Survey!</font>";



setAnimation(animation_file); // inserts the SWF file			
