// Select a Region Dropdown
function MM_jumpMenuGo(selName,targ,restore) { //v3.0
	var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_findObj(n, d) { //v4.01
	var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

/*radio portal regions array, associates cookie name with a
  string name and utc offset, other information may be added
  as necessary */
var rpRegions = {
	vancouver: { 
		name: 'Vancouver',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/vancouver.html',
			player_program_key: 'vancouver'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/vancouver.html',
			player_program_key: 'pacific'
		},
		utcOffsetSeconds: 28800	
	},
	whitehorse: {
		name: 'Whitehorse',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/whitehorse.html',
			player_program_key: 'whitehorse'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/vancouver.html',
			player_program_key: 'pacific'		
		},
		utcOffsetSeconds: 28800
	},	
	kelowna: {
		name: 'Kelowna',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/kelowna.html',
			player_program_key: 'kelowna'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/vancouver.html',
			player_program_key: 'pacific'		
		},
		utcOffsetSeconds: 28800
	},
	victoria: {
		name: 'Victoria',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/victoria.html',
			player_program_key: 'victoria'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/vancouver.html',
			player_program_key: 'pacific'		
		},
		utcOffsetSeconds: 28800
	},
	princegeorge: {
		name: 'Prince George',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/prince_george.html',
			player_program_key: 'prince_george'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/vancouver.html',
			player_program_key: 'pacific'		
		},
		utcOffsetSeconds: 28800
	},
	calgary: {
		name: 'Calgary',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/calgary.html',
			player_program_key: 'calgary'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/edmonton.html',
			player_program_key: 'mountain'		
		},
		utcOffsetSeconds: 25200
	},
	edmonton: {
		name: 'Edmonton',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/edmonton.html',
			player_program_key: 'edmonton'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/edmonton.html',
			player_program_key: 'mountain'		
		},
		utcOffsetSeconds: 25200
	},
	inuvik: {
		name: 'Inuvik',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/inuvik.html',
			player_program_key: 'inuvik'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/edmonton.html',
			player_program_key: 'mountain'		
		},
		utcOffsetSeconds: 25200
	},
	yellowknife: {
		name: 'Yellowknife',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/yellow_knife.html',
			player_program_key: 'yellow_knife'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/edmonton.html',
			player_program_key: 'mountain'		
		},
		utcOffsetSeconds: 25200
	},
	regina: {
		name: 'Regina',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/regina.html',
			player_program_key: 'regina'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/winnipeg.html',
			player_program_key: 'central'		
		},
		utcOffsetSeconds: 21600
	},
	winnipeg: {
		name: 'Winnipeg',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/winnipeg.html',
			player_program_key: 'winnipeg'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/winnipeg.html',
			player_program_key: 'central'		
		},
		utcOffsetSeconds: 21600
	},
	iqaluit: {
		name: 'Iqaluit',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/iqaluit.html',
			player_program_key: 'iqaluit'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	ottawa: {
		name: 'Ottawa',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/ottawa.html',
			player_program_key: 'ottawa'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	toronto: {
		name: 'Toronto',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/toronto.html',
			player_program_key: 'toronto'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	thunderbay: {
		name: 'Thunder Bay',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/thunderbay.html',
			player_program_key: 'thunderbay'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	sudbury: {
		name: 'Sudbury',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/sudbury.html',
			player_program_key: 'sudbury'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	windsor: {
		name: 'Windsor',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/windsor.html',
			player_program_key: 'windsor'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	quebec: {
		name: 'Queb&eacute;c City',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/quebec_city.html',
			player_program_key: 'quebec_city'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	montreal: {
		name: 'Montreal',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/montreal.html',
			player_program_key: 'montreal'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/toronto.html',
			player_program_key: 'eastern'		
		},
		utcOffsetSeconds: 18000
	},
	charlottetown: {
		name: 'Charlottetown',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/charlottetown.html',
			player_program_key: 'charlottetown'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	halifax: {
		name: 'Halifax',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/halifax.html',
			player_program_key: 'halifax'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	fredericton: {
		name: 'Fredericton',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/fredericton.html',
			player_program_key: 'fredericton'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	saintjohn: {
		name: 'Saint John',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/saint_john.html',
			player_program_key: 'saint_john'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	grandfalls: {
		name: 'Grand Falls',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/grand_falls_gander.html',
			player_program_key: 'grand_falls_gander'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	moncton: {
		name: 'Moncton',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/moncton.html',
			player_program_key: 'moncton'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	sydney: {
		name: 'Sydney',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/halifax.html',
			player_program_key: 'halifax'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 14400
	},
	goosebay: {
		name: 'Goose Bay',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/labrador.html',
			player_program_key: 'goosebay'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 12600
	},
	cornerbrook: {
		name: 'Corner Brook',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/corner_brook.html',
			player_program_key: 'corner_brook'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 12600
	},
	stjohns: {
		name: 'St. John\'s',
		radio1: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_one/st_johns.html',
			player_program_key: 'st_johns'
		},
		radio2: {
			now_playing_file: '/webcache/programguide/nowplaying/cbc_radio_two/halifax.html',
			player_program_key: 'atlantic'		
		},
		utcOffsetSeconds: 12600
	}
};
