//http://web05.mountainwatch.com:8080/portal/api/entity/56ae9293-8b80-4cff-9b89-9bea50a07080
var Settings = {
"people_count_prot" : "http",
"people_count_name" : "118.127.169.220",
"people_count_port" : "80",
"api_path"  : "/cache/cache/dam",
"entity_path" : "/entity/%s?callback=?",
"camera_search_path" : "/search?search=camera&foreignKey=%s&callback=?",
"camera_list" : "/search?search=camera&callback=?",
"data_path" : "/numerical?type=%s&location=%s&callback=?",
"data_search" : "/search?search=data&type=%s&location=%s&callback=?",
"ajax_waiting_img":"spinner.gif",
"error_img":"",
"blank_img":"images/blank.gif"
//"ajax_waiting_img":"http://www.ajaxload.info/cache/FF/FF/FF/5C/0E/0E/5-1.gif"
};

Settings.url_camera_list =  Settings.people_count_prot +"://" + Settings.people_count_name
		+ (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
		+ Settings.api_path + Settings.camera_list,
Settings.url_camera_search =  Settings.people_count_prot +"://" + Settings.people_count_name
		+ (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
		+ Settings.api_path + Settings.camera_search_path,
Settings.url_entity_info =  Settings.people_count_prot +"://" + Settings.people_count_name
        + (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
        + Settings.api_path + Settings.entity_path,
Settings.url_data = Settings.people_count_prot +"://" + Settings.people_count_name
        + (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
        + Settings.api_path + Settings.data_path;
Settings.url_wave_height_data_noaa = Settings.people_count_prot +"://" + Settings.people_count_name
        + (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
        + Settings.api_path + Settings.data_path;
Settings.url_wave_height_data_cam = Settings.people_count_prot +"://" + Settings.people_count_name
        + (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
        + Settings.api_path + Settings.data_path;
Settings.url_data_search = Settings.people_count_prot +"://" + Settings.people_count_name
		+ (Settings.people_count_prot == "" || Settings.people_count_prot == null?"":":" + Settings.people_count_port)
		+ Settings.api_path + Settings.data_search;

var Colours = {"now":"aaaaaa","noaa":"0000ff", "cam":"000000"};

var TimeSize = {"millisecond":1};
    TimeSize.second = TimeSize.millisecond * 1000;
    TimeSize.minute = TimeSize.second * 60;
    TimeSize.hour = TimeSize.minute * 60;
    TimeSize.day = TimeSize.hour * 24;
    TimeSize.week = TimeSize.day * 7;

var mnths_rev = {"Jan":0,"Feb":1,"Mar":2,"Apr":3,"May":4,"Jun":5,"Jul":6,"Aug":6,"Sep":8,"Oct":9,"Nov":10,"Dec":11};
var mnths = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];

var wh_no_data_text = 'Insufficient readings';
