//class handles all button and thumbnail functions

var arrAutomate = {
		subMenuLeft : 428,
		subMenuSpacing : 12,
		subMenu: [
			{
				title : "Wi-Fi",
				thumbnails : [ 
				],
				heros : [
				],
				contentDiv : "",
				elWidth : 40,
				clickHandler : "loadWiFiFlash();",
				elLeft : 0 //remains blank
			},
			{
				title : "Web",
				thumbnails : [ 
				],
				heros : [
				],
				contentDiv : "",
				elWidth : 35,
				clickHandler : "loadWebFlash();",
				elLeft : 0 //remains blank
			},
			{
				title : "Voicemail",
				thumbnails : [ 
				],
				heros : [
				],
				contentDiv : "",
				elWidth : 70,
				clickHandler : "loadVoicemailFlash();",
				elLeft : 0 //remains blank
			},
			{
				title : "Calendar and email",
				thumbnails : [ 
				],
				heros : [
				],
				contentDiv : "",
				elWidth: 135,
				clickHandler : "loadCalEmailFlash();",
				elLeft : 0
			},
			{
				title : "Ringer switch",
				thumbnails : [ 
				],
				heros : [
				],
				contentDiv : "",
				elWidth: 105,
				clickHandler : "loadSilenceFlash();",
				elLeft : 0
			}
		]
		
}


loadWiFiFlash = function() {
		var mainFlash = new Swiff('flash/SW_wifi2.swf', {
			id: 'flashMain',
			width: 475,
			height: 325,
			container : 'heroOverviewLeft',
			params: {
				wmode: 'transparent'
			}
		});	
		$('textWrapper').innerHTML = $("menu1text").innerHTML;
		
}
loadWebFlash = function() {
		var mainFlash = new Swiff('flash/SW_web_search.swf', {
			id: 'flashMain',
			width: 475,
			height: 325,
			container : 'heroOverviewLeft',
			params: {
				wmode: 'transparent'
			}
		});	
		$('textWrapper').innerHTML = $("menu2text").innerHTML;
}
loadVoicemailFlash = function() {
		var mainFlash = new Swiff('flash/SW_blink.swf', {
			id: 'flashMain',
			width: 475,
			height: 325,
			container : 'heroOverviewLeft',
			params: {
				wmode: 'transparent'
			}
		});	
		$('textWrapper').innerHTML = $("menu3text").innerHTML;
}
loadCalEmailFlash = function() {
		var mainFlash = new Swiff('flash/SW_cal_email.swf', {
			id: 'flashMain',
			width: 475,
			height: 325,
			container : 'heroOverviewLeft',
			params: {
				wmode: 'transparent'
			}
		});	
		$('textWrapper').innerHTML = $("menu4text").innerHTML;
}
loadSilenceFlash = function() {
		var mainFlash = new Swiff('flash/SW_ringer.swf', {
			id: 'flashMain',
			width: 475,
			height: 325,
			container : 'heroOverviewLeft',
			params: {
				wmode: 'transparent'
			}
		});	
		$('textWrapper').innerHTML = $("menu5text").innerHTML;
}
