2014-04-25 05:02:53 +00:00
! function ( ) { "use strict" ; var a = "crs-country" , b = "Select country" , c = "Select region" , d = [ [ "Afghanistan" , "AF" , "Badakhshan|Badghis|Baghlan|Balkh|Bamyan|Daykundi|Farah|Faryab|Ghazni|Ghor|Helmand|Herat|Jowzjan|Kabul|Kandahar|Kapisa|Khost|Kunar|Kunduz|Laghman|Logar|Nangarhar|Nimruz|Nurestan|Oruzgan|Paktia|Paktika|Panjshir|Parvan|Samangan|Sare Pol|Takhar|Wardak|Zabul" ] , [ "Åland Islands" , "AX" , "Brändö|Eckerö|Finström|Föglö|Geta|Hammarland|Jomala|Kumlinge|Kökar|Lemland|Lumparland|Mariehamn|Saltvik|Sottunga|Sund|Vårdö" ] , [ "Albania" , "AL" , "Berat|Dibër|Durrës|Elbasan|Fier|Gjirokastër|Korçë|Kukës|Lezhë|Shkodër|Tirana|Vlorë" ] , [ "Algeria" , "DZ" , "Adrar|Ain Defla|Ain Timouchent|Algiers|Annaba|Batna|Béchar|Béjaïa|Biskra|Blida|Bordj Bou Arréridj|Bouïra|Boumerdes|Chlef|Constantine|Djelfa|El Bayadh|El Taref|El Oued|Illizi|Ghardaia|GuelmaJijel|Khenchela|Laghouat|Mascara|Médéa|Mila|Mostaganem|M'Sila|Naâma|Oran|Ouargla|Oum El Bouaghi|Saïda|Sétif|Sidi Bel Abbès|Skikda|Souk Ahras|Tamanrasset|Tébessa|Tiaret|Tindouf|Tipaza|Tissemsilt|Tizi Ouzou|Tlemcen" ] , [ "American Samoa" , "AS" , "Tutuila|Aunu'u|Ta'ū|Ofu‑ Olosega|Rose Atoll|Swains Island" ] , [ "Andorra" , "AD" , "Andorra la Vella|Canillo|Encamp|Escaldes-Engordany|La Massana|Ordino|Sant Julià de Lòria" ] , [ "Angola" , "AO" , "Bengo|Benguela|Bié|Cabinda|Cuando Cubango|Cuanza Norte|Cuanza Sul|Cunene|Huambo|Huila|Luanda|Lunda Norte|Lunda Sul|Malanje|Moxico|Namibe|Uíge|Zaire" ] , [ "Anguilla" , "AI" , "Blowing Point|East End|George Hill|Island Harbour|North Hill|North Side|Sandy Ground|Sandy Hill|South Hill|Stoney Ground|The Farrington|The Quarter|The Valley|West End" ] , [ "Antarctica" , "AQ" , "East Antarctica|West Antarctica" ] , [ "Antigua and Barbuda" , "AG" , "Antigua|Barbuda|Bird Island|Bishop Island|Blake Island|Cinnamon Island|Codrington Island|Crump Island|Dulcina Island|Exchange Island|Five Islands|Great Bird Island|Green Island|Guiana Island|Hale Gate Island|Hawes Island|Henry Island|Johnson Island|Kid Island|Laviscounts Islan|Lobster Island|Long Island|Maid Island|Moor Island|Nanny Island|Pelican Island|Prickly Pear Island|Rabbit Island|Rat Island|Red Head Island|Redonda|Sandy Island|Smith Island|The Sisters|Vernon Island|Wicked Will Island|York Island" ] , [ "Argentina" , "AR" , "Autonomous City of Buenos Airesa|Buenos Aires|Catamarca|Chaco|Chubut|Córdoba|Corrientes|Entre Ríos|Formosa|Jujuy|La Pampa|La Rioja|Mendoza|Misiones|Neuquén|Río Negrob|Salta|San Juan|San Luis|Santa Cruz|Santa Fe|Santiago del Estero|Tierra del Fuego, Antártida e Islas del Atlántico Surc|Tucumán" ] , [ "Armenia" , "AM" , "Aragatsotn|Ararat|Armavir|Gegharkunik|Kotayk|Lori|Shirak|Syunik|Tavush|Vayots Dzor|Yerevan" ] , [ "Aruba" , "AW" , "Aruba" ] , [ "Australia" , "AU" , "Australian Capital Territory|New South Wales|Northern Territory|Queensland|South Australia|Tasmania|Victoria|Western Australia" ] , [ "Austria" , "AT" , "Burgenland|Kaernten|Niederoesterreich|Oberoesterreich|Salzburg|Steiermark|Tirol|Vorarlberg|Wien" ] , [ "Azerbaijan" , "AZ" , "Abseron Rayonu|Agcabadi Rayonu|Agdam Rayonu|Agdas Rayonu|Agstafa Rayonu|Agsu Rayonu|Ali Bayramli Sahari|Astara Rayonu|Baki Sahari|Balakan Rayonu|Barda Rayonu|Beylaqan Rayonu|Bilasuvar Rayonu|Cabrayil Rayonu|Calilabad Rayonu|Daskasan Rayonu|Davaci Rayonu|Fuzuli Rayonu|Gadabay Rayonu|Ganca Sahari|Goranboy Rayonu|Goycay Rayonu|Haciqabul Rayonu|Imisli Rayonu|Ismayilli Rayonu|Kalbacar Rayonu|Kurdamir Rayonu|Lacin Rayonu|Lankaran Rayonu|Lankaran Sahari|Lerik Rayonu|Masalli Rayonu|Mingacevir Sahari|Naftalan Sahari|Naxcivan Muxtar Respublikasi|Neftcala Rayonu|Oguz Rayonu|Qabala Rayonu|Qax Rayonu|Qazax Rayonu|Qobustan Rayonu|Quba Rayonu|Qubadli Rayonu|Qusar Rayonu|Saatli Rayonu|Sabirabad Rayonu|Saki Rayonu|Saki Sahari|Salyan Rayonu|Samaxi Rayonu|Samkir Rayonu|Samux Rayonu|Siyazan Rayonu|Sumqayit Sahari|Susa Rayonu|Susa Sahari|Tartar Rayonu|Tovuz Rayonu|Ucar Rayonu|Xacmaz Rayonu|Xankandi Sahari|Xanlar Rayonu|Xizi Rayonu|Xocali Rayonu|Xocavand Rayonu|Yardimli Rayonu|Yevlax Rayonu|Yevlax Sahari|Zangilan Rayonu|Zaqatala Rayonu|Zardab Rayonu" ] , [ "Bahamas" , "BS" , " Acklins and Crooked Islands | Bimini | Cat Island | Exuma | Freeport | Fresh Creek | Governor ' s
2014-03-25 03:53:49 +00:00
} , f = function ( ) { var a = this ; a . length = 0 ; var c = $ ( a ) . attr ( "data-default-option" ) , e = c ? c : b , f = $ ( a ) . attr ( "data-default-value" ) , j = $ ( a ) . attr ( "data-value" ) , k = 0 ; this . options [ 0 ] = new Option ( e , "" ) ; for ( var l = 0 ; l < d . length ; l ++ ) { var m = "2-char" === j ? d [ l ] [ 1 ] : d [ l ] [ 0 ] ; a . options [ a . length ] = new Option ( d [ l ] [ 0 ] , m ) , null != f && f === m && ( k = l + 1 ) } this . selectedIndex = k ; var n = $ ( a ) . attr ( "data-region-id" ) ; if ( n ) { var o = $ ( "#" + n ) [ 0 ] ; if ( o ) { if ( g ( o ) , $ ( this ) . on ( "change" , function ( ) { i ( a , o ) } ) , f ) { i ( a , o ) ; var p = $ ( o ) . attr ( "data-default-value" ) ; if ( null !== p ) { var q = d [ a . selectedIndex - 1 ] [ 2 ] . split ( "|" ) ; h ( o , q , p ) } } } else console . error ( "Region dropdown DOM node with ID " + n + " not found." ) } } , g = function ( a ) { var b = $ ( a ) . attr ( "data-blank-option" ) , c = b ? b : "-" ; a . length = 0 , a . options [ 0 ] = new Option ( c , "" ) , a . selectedIndex = 0 } , h = function ( a , b , c ) { for ( var d = 0 ; d < b . length ; d ++ ) if ( b [ d ] === c ) { a . selectedIndex = d + 1 ; break } } , i = function ( a , b ) { var e = a . selectedIndex - 1 , f = $ ( b ) . attr ( "data-default-option" ) , h = f ? f : c ; if ( "" === a . value ) g ( b ) ; else { b . length = 0 , b . options [ 0 ] = new Option ( h , "" ) ; for ( var i = d [ e ] [ 2 ] . split ( "|" ) , j = 0 ; j < i . length ; j ++ ) b . options [ b . length ] = new Option ( i [ j ] , i [ j ] ) ; b . selectedIndex = 0 } } ; $ ( e ) } ( ) ;