﻿// JavaScript Document中文
var countries = [];//国家数据
countries.push({id:"us",name:"United States",language:"en",age:21,adminName:"USA",redirect:"http://www.acceptresponsibility.org", active:true});
countries.push({id:"uk",name:"United Kingdom",language:"en-gb",age:17,redirect:"http://www.drinkaware.co.uk/about-us/information-for-under-18s"});
countries.push({id:"ca",name:"Canada",age:19});
countries.push({id:"es",name:"Spain",language:"es-es",age:18,redirect:"http://www.alcoholysociedad.org"});
countries.push({id:"af",name:"Afghanistan",ban:true,adminName:""});
countries.push({id:"al",name:"Albania",age:18});
countries.push({id:"dz",name:"Algeria",age:18});
countries.push({id:"ad",name:"Andorra",age:18});
countries.push({id:"ao",name:"Angola",age:18});
countries.push({id:"ag",name:"Antigua and Barbuda",age:18});
countries.push({id:"ar",name:"Argentina",age:18});
countries.push({id:"am",name:"Armenia",age:18});
countries.push({id:"au",name:"Australia",age:18,redirect:"http://www.drinkwise.com.au",language:"de-de", active:true});
countries.push({id:"at",name:"Austria",age:18,language:"de-at", active:true});
countries.push({id:"az",name:"Azerbaijan",age:18});
countries.push({id:"bs",name:"Bahamas",age:18});
countries.push({id:"bh",name:"Bahrain",age:21});
countries.push({id:"bd",name:"Bangladesh",ban:true});
countries.push({id:"bb",name:"Barbados",age:18});
countries.push({id:"by",name:"Belarus",age:21});
countries.push({id:"be",name:"Belgium",age:18});
countries.push({id:"bz",name:"Belize",age:18});
countries.push({id:"bj",name:"Benin",age:18});
countries.push({id:"bt",name:"Bhutan",age:18});
countries.push({id:"bo",name:"Bolivia",age:18});
countries.push({id:"ba",name:"Bosnia and Herzegovina",age:18});
countries.push({id:"bw",name:"Botswana",age:18});
countries.push({id:"br",name:"Brazil",age:18});
countries.push({id:"bn",name:"Brunei",ban:true,adminName:"Brunei Darussalam"});
countries.push({id:"bg",name:"Bulgaria",age:18});
countries.push({id:"bf",name:"Burkina Faso",age:18});
countries.push({id:"kh",name:"Cambodia",age:18});
countries.push({id:"cm",name:"Cameroon",age:18});
countries.push({id:"cv",name:"Cape Verde",age:18});
countries.push({id:"cf",name:"Central African Republic",age:18});
countries.push({id:"td",name:"Chad",age:18});
countries.push({id:"cl",name:"Chile",age:18});
countries.push({id:"cn",name:"China",language:"zh-cn",age:18});
countries.push({id:"co",name:"Colombia",age:18});
countries.push({id:"cg",name:"Congo",age:18});
countries.push({id:"cr",name:"Costa Rica",age:18});
countries.push({id:"ci",name:"Côte d'lvoire",age:18});
countries.push({id:"hr",name:"Croatia",age:18});
countries.push({id:"cu",name:"Cuba",age:18});
countries.push({id:"cy",name:"Cyprus",age:18});
countries.push({id:"cz",name:"Czech Republic",age:18,redirect:"http://www.forum-psr.cz"});
countries.push({id:"dk",name:"Denmark",age:18,redirect:"http://www.goda.dk"});
countries.push({id:"dj",name:"Djibouti",age:18});
countries.push({id:"dm",name:"Dominica",age:18});
countries.push({id:"do",name:"Dominican Republic",age:18});
countries.push({id:"ec",name:"Ecuador",age:18});
countries.push({id:"eg",name:"Egypt",age:21,adminName:"Egypte"});
countries.push({id:"sv",name:"El Salvador",age:18});
countries.push({id:"gq",name:"Equatorial Guinea",age:18});
countries.push({id:"ee",name:"Estonia",age:18});
countries.push({id:"fj",name:"Fiji",age:18});
countries.push({id:"fi",name:"Finland",age:20});
countries.push({id:"fr",name:"France",age:18,language:"fr-fr",redirect:"http://www.spiritueux.fr", active:true});
countries.push({id:"pf",name:"French Polynesia",age:18});
countries.push({id:"ga",name:"Gabon",age:18});
countries.push({id:"gm",name:"Gambia",age:18});
countries.push({id:"ge",name:"Georgia",age:18});
countries.push({id:"de",name:"Germany",age:18,language:"de-de", active:true});
countries.push({id:"gh",name:"Ghana",age:18});
countries.push({id:"gr",name:"Greece",age:18});
countries.push({id:"gd",name:"Grenada",age:18});
countries.push({id:"gt",name:"Guatemala",age:18});
countries.push({id:"gn",name:"Guinea",age:18});
countries.push({id:"gw",name:"Guinea-Bissau",age:18});
countries.push({id:"gy",name:"Guyana",age:18});
countries.push({id:"ht",name:"Haiti",age:18});
countries.push({id:"hn",name:"Honduras",age:18});
countries.push({id:"hk",name:"Hong Kong",age:18});
countries.push({id:"hu",name:"Hungary",age:18,redirect:"http://www.hafrac.com"});
countries.push({id:"is",name:"Iceland",age:20,adminName:"Island"});
countries.push({id:"in",name:"India",age:25});
countries.push({id:"id",name:"Indonesia",age:21});
countries.push({id:"ir",name:"Iran",ban:true});
countries.push({id:"iq",name:"Iraq",ban:true,adminName:"Irak"});
countries.push({id:"ie",name:"Ireland",age:18,redirect:"http://www.drinkaware.ie"});
countries.push({id:"il",name:"Israel",age:18});
countries.push({id:"it",name:"Italy",age:18});
countries.push({id:"jm",name:"Jamaica",age:18});
countries.push({id:"jp",name:"Japan",age:20, language:"ja-jp",redirect:"http://www.malibu-rum.com/jp?bypassagegate=false"});
countries.push({id:"jo",name:"Jordan",ban:true});
countries.push({id:"kz",name:"Kazakhstan",age:18});
countries.push({id:"ke",name:"Kenya",age:18});
countries.push({id:"kw",name:"Kuwait",age:21});
countries.push({id:"kg",name:"Kyrgyzstan",age:18});
countries.push({id:"la",name:"Laos",age:18});
countries.push({id:"lv",name:"Latvia",age:18});
countries.push({id:"lb",name:"Lebanon",age:18});
countries.push({id:"ls",name:"Lesotho",age:18});
countries.push({id:"lr",name:"Liberia",age:18});
countries.push({id:"ly",name:"Libya",ban:true});
countries.push({id:"li",name:"Liechtenstein",age:18});
countries.push({id:"lt",name:"Lithuania",age:18});
countries.push({id:"lu",name:"Luxembourg",age:18});
countries.push({id:"mk",name:"Macedonia",age:18});
countries.push({id:"mg",name:"Madagascar",age:18});
countries.push({id:"mw",name:"Malawi",age:18});
countries.push({id:"my",name:"Malaysia",age:18});
countries.push({id:"mv",name:"Maldives",age:18});
countries.push({id:"ml",name:"Mali",age:18});
countries.push({id:"mt",name:"Malta",age:18});
countries.push({id:"mr",name:"Mauritania",age:18});
countries.push({id:"mu",name:"Mauritius",age:18});
countries.push({id:"mx",name:"Mexico",age:18,redirect:"http://www.alcoholinformate.com.mx"});
countries.push({id:"mn",name:"Micronesia",age:18});
countries.push({id:"md",name:"Moldova",age:18});
countries.push({id:"mc",name:"Monaco",age:18});
countries.push({id:"mn",name:"Mongolia",age:21});
countries.push({id:"ma",name:"Morocco",age:18});
countries.push({id:"mz",name:"Mozambique",age:18});
countries.push({id:"na",name:"Namibia",age:18});
countries.push({id:"np",name:"Nepal",age:18});
countries.push({id:"nl",name:"Netherlands",age:18});
countries.push({id:"nz",name:"New Zealand",age:18});
countries.push({id:"ni",name:"Nicaragua",age:19});
countries.push({id:"ne",name:"Niger",age:18});
countries.push({id:"ng",name:"Nigeria",age:21});
countries.push({id:"kp",name:"North Korea",age:18});
countries.push({id:"no",name:"Norway",age:20});
countries.push({id:"om",name:"Oman",age:21});
countries.push({id:"pk",name:"Pakistan",ban:true});
countries.push({id:"pa",name:"Panama",age:18});
countries.push({id:"pg",name:"Papua New Guinea",age:18});
countries.push({id:"py",name:"Paraguay",age:20});
countries.push({id:"pe",name:"Peru",age:18});
countries.push({id:"ph",name:"Philippines",age:18});
countries.push({id:"pl",name:"Poland",age:18});
countries.push({id:"pt",name:"Portugal",age:18});
countries.push({id:"qa",name:"Qatar",age:18});
countries.push({id:"ro",name:"Romania",age:18});
countries.push({id:"ru",name:"Russia",age:18});
countries.push({id:"rw",name:"Rwanda",age:18});
countries.push({id:"kn",name:"Saint Kitts and Nevis",age:18});
countries.push({id:"lc",name:"Saint Lucia",age:18});
countries.push({id:"vc",name:"Saint Vincent & The Grenadines",age:18});
countries.push({id:"ws",name:"Samoa",age:21});
countries.push({id:"sm",name:"San Marino",age:18});
countries.push({id:"st",name:"Sao Tome and Principe",age:18});
countries.push({id:"sa",name:"Saudi Arabia",ban:true});
countries.push({id:"sn",name:"Senegal",age:18});
countries.push({id:"rs",name:"Serbia and Montenegro",age:18});
countries.push({id:"sc",name:"Seychelles",age:18});
countries.push({id:"sl",name:"Sierra Leone",age:18});
countries.push({id:"sg",name:"Singapore",age:18});
countries.push({id:"sk",name:"Slovakia",age:18});
countries.push({id:"si",name:"Slovenia",age:18});
countries.push({id:"so",name:"Somalia",age:18});
countries.push({id:"za",name:"South Africa",age:18});
countries.push({id:"kr",name:"South Korea",age:19});
countries.push({id:"lk",name:"Sri Lanka",age:18});
countries.push({id:"sd",name:"Sudan",ban:true});
countries.push({id:"sr",name:"Suriname",age:18});
countries.push({id:"sz",name:"Swaziland",age:18});
countries.push({id:"se",name:"Sweden",age:25});
countries.push({id:"ch",name:"Switzerland",age:18});
countries.push({id:"sy",name:"Syria",age:18});
countries.push({id:"tz",name:"Tanzania",age:18});
countries.push({id:"tw",name:"Taiwan",age:18});
countries.push({id:"th",name:"Thailand",age:18});
countries.push({id:"tg",name:"Togo",age:18});
countries.push({id:"to",name:"Tonga",age:18});
countries.push({id:"tt",name:"Trinidad and Tobago",age:18});
countries.push({id:"tn",name:"Tunisia",ban:true});
countries.push({id:"tr",name:"Turkey",age:18});
countries.push({id:"tm",name:"Turkmenistan",age:18});
countries.push({id:"tv",name:"Tuvalu",age:18});
countries.push({id:"ug",name:"Uganda",age:18});
countries.push({id:"ua",name:"Ukraine",age:18});
countries.push({id:"ae",name:"United Arab Emirates",age:21});
countries.push({id:"uy",name:"Uruguay",age:18});
countries.push({id:"uz",name:"Uzbekistan",ban:true});
countries.push({id:"vu",name:"Vanuatu",age:18});
countries.push({id:"ve",name:"Venezuela",age:18});
countries.push({id:"vn",name:"Vietnam",age:18});
countries.push({id:"ye",name:"Yemen",ban:true});
countries.push({id:"zm",name:"Zambia",age:18});
countries.push({id:"zw",name:"Zimbabwe",age:18});

var languages = [];//公共语言数据 
languages.push({id:"en", name:"English"});
languages.push({id:"fr", name:"French"});
languages.push({id:"es", name:"Spanish"});
languages.push({id:"de", name:"German"});

//languages.push({id:"de", name:"German"});
//languages.push({id:"de-at", name:"German/Austrian"});
//languages.push({id:"fr-ca", name:"Canadian French"});
//languages.push({id:"zh-cn", name:"Mandarin"});
//languages.push({id:"ja-jp", name:"Japanese"});

var langs={};//语言数据 根据国家代码来显示语言
langs["ca"]=[]
langs["ca"].push({id:"en", name:"English"})	
langs["ca"].push({id:"fr-ca", name:"French"})


langs["uk"]=[]
langs["uk"].push({id:"en-gb", name:"English"})	
langs["at"]=[]
langs["at"].push({id:"de-at", name:"German"})

langs["de"]=[]
//langs["de"].push({id:"de-de", name:"German"})

//langs["de"]=[]
langs["de"].push({id:"de-de", name:"German"})
langs["de"].push({id:"en-de", name:"English"})

//langs["ca"]=[]
//langs["ca"].push({id:"en-ca", name:"English"})	

var errorMsgs={
	birthDayError:"Please enter a valid birth date.",
	countryLanguageError:"Please select your country and desired language.",
	ageError:"We are sorry, but you don't meet the minimum age requirements set by your country's laws.",
	denyAccessError:"We are sorry, but the laws of your country prevent you from accessing this website."
	};//出错信息

var defaultRedirect= "http://www.pernod-ricard.com/en/pages/180/pernod/Corporate-responsibility/Responsible-consumption.html";

var apps = 
{
	//所有通过AgeGate传过来的appid对应应用的urls
	mbu 	: { url: '/byu/index.html',
				defaultLang : 'en'},
	mrbb 	: { url:'http://www.radiomaliboomboom.com/?bypassagegate=true',
				defaultLang : 'en'},
	originalSite 	: { url:'http://www.malibu-rum.com/jp?bypassagegate=true',
				defaultLang : 'ja'}
}

var DEFAULT_APP = 'byu';
