text: 
  // usage: log('inside coolFunc', this, arguments);
  // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
  window.log = function(){
    log.history = log.history || [];   // store logs to an array for reference
    log.history.push(arguments);
    if(this.console) {
      arguments.callee = arguments.callee.caller;
      var newarr = [].slice.call(arguments);
      (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
    }
  };
  
  // make it safe to use console.log always
  (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
  {console.log();return window.console;}catch(err){return window.console={};}})());
  
  
  // place any jQuery/helper plugins in here, instead of separate, slower script files. Current helpers inside this file...
  	// jQuery Form Example 1.4.3
  	// Country State Drop Downs v1.0
  	// Orbit Image and HTML slideshow 1.2.3
  	// Reveal JQuery Modal Pop-Up 1.0
  
  // ========================================= start =============================
  
  /*
   * jQuery Form Example Plugin 1.4.3
   * Populate form inputs with example text that disappears on focus.
   *
   * e.g.
   *  $('input#name').example('Bob Smith');
   *  $('input[@title]').example(function() {
   *    return $(this).attr('title');
   *  });
   *  $('textarea#message').example('Type your message here', {
   *    className: 'example_text'
   *  });
   *
   * Copyright (c) Paul Mucur (http://mucur.name), 2007-2008.
   * Dual-licensed under the BSD (BSD-LICENSE.txt) and GPL (GPL-LICENSE.txt)
   * licenses.
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *http://mudge.github.com/jquery_example/ <-- demo page
   */
  		(function(a){a.fn.example=function(e,g){var d=a.isFunction(e),f=a.extend({},g,{example:e});return this.each(function(){var c=a(this),b=a.metadata?a.extend({},a.fn.example.defaults,c.metadata(),f):a.extend({},a.fn.example.defaults,f);if(!a.fn.example.boundClassNames[b.className]){a(window).unload(function(){a("."+b.className).val("")});a("form").submit(function(){a(this).find("."+b.className).val("")});a.fn.example.boundClassNames[b.className]=true}if(!c.attr("defaultValue")&&(d||c.val()==b.example))c.val("");
  		if(c.val()==""&&this!=document.activeElement){c.addClass(b.className);c.val(d?b.example.call(this):b.example)}c.focus(function(){if(a(this).is("."+b.className)){a(this).val("");a(this).removeClass(b.className)}});c.change(function(){a(this).is("."+b.className)&&a(this).removeClass(b.className)});c.blur(function(){if(a(this).val()==""){a(this).addClass(b.className);a(this).val(d?b.example.call(this):b.example)}})})};a.fn.example.defaults={className:"example"};a.fn.example.boundClassNames=[]})(jQuery);
  
  /*
  Country State Drop Downs v1.0.
  (c) Copyright 2005 Down Home Consulting, Inc.
  www.DownHomeConsulting.com
  
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, itness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
  
  */
  		
  		// If you have PHP you can set the post values like this
  		//var postState = '<?= $_POST["state"] ?>';
  		//var postCountry = '<?= $_POST["country"] ?>';
  		var postState = '';
  		var postCountry = '';
  		
  		// State table
  		//
  		// To edit the list, just delete a line or add a line. Order is important.
  		// The order displayed here is the order it appears on the drop down.
  		//
  		var state = '\
  		US:AK:Alaska|\
  		US:AL:Alabama|\
  		US:AR:Arkansas|\
  		US:AS:American Samoa|\
  		US:AZ:Arizona|\
  		US:CA:California|\
  		US:CO:Colorado|\
  		US:CT:Connecticut|\
  		US:DC:D.C.|\
  		US:DE:Delaware|\
  		US:FL:Florida|\
  		US:FM:Micronesia|\
  		US:GA:Georgia|\
  		US:GU:Guam|\
  		US:HI:Hawaii|\
  		US:IA:Iowa|\
  		US:ID:Idaho|\
  		US:IL:Illinois|\
  		US:IN:Indiana|\
  		US:KS:Kansas|\
  		US:KY:Kentucky|\
  		US:LA:Louisiana|\
  		US:MA:Massachusetts|\
  		US:MD:Maryland|\
  		US:ME:Maine|\
  		US:MH:Marshall Islands|\
  		US:MI:Michigan|\
  		US:MN:Minnesota|\
  		US:MO:Missouri|\
  		US:MP:Marianas|\
  		US:MS:Mississippi|\
  		US:MT:Montana|\
  		US:NC:North Carolina|\
  		US:ND:North Dakota|\
  		US:NE:Nebraska|\
  		US:NH:New Hampshire|\
  		US:NJ:New Jersey|\
  		US:NM:New Mexico|\
  		US:NV:Nevada|\
  		US:NY:New York|\
  		US:OH:Ohio|\
  		US:OK:Oklahoma|\
  		US:OR:Oregon|\
  		US:PA:Pennsylvania|\
  		US:PR:Puerto Rico|\
  		US:PW:Palau|\
  		US:RI:Rhode Island|\
  		US:SC:South Carolina|\
  		US:SD:South Dakota|\
  		US:TN:Tennessee|\
  		US:TX:Texas|\
  		US:UT:Utah|\
  		US:VA:Virginia|\
  		US:VI:Virgin Islands|\
  		US:VT:Vermont|\
  		US:WA:Washington|\
  		US:WI:Wisconsin|\
  		US:WV:West Virginia|\
  		US:WY:Wyoming|\
  		US:AA:Military Americas|\
  		US:AE:Military Europe/ME/Canada|\
  		US:AP:Military Pacific|\
  		CA:AB:Alberta|\
  		CA:MB:Manitoba|\
  		CA:AB:Alberta|\
  		CA:BC:British Columbia|\
  		CA:MB:Manitoba|\
  		CA:NB:New Brunswick|\
  		CA:NL:Newfoundland and Labrador|\
  		CA:NS:Nova Scotia|\
  		CA:NT:Northwest Territories|\
  		CA:NU:Nunavut|\
  		CA:ON:Ontario|\
  		CA:PE:Prince Edward Island|\
  		CA:QC:Quebec|\
  		CA:SK:Saskatchewan|\
  		CA:YT:Yukon Territory|\
  		AU:AAT:Australian Antarctic Territory|\
  		AU:ACT:Australian Capital Territory|\
  		AU:NT:Northern Territory|\
  		AU:NSW:New South Wales|\
  		AU:QLD:Queensland|\
  		AU:SA:South Australia|\
  		AU:TAS:Tasmania|\
  		AU:VIC:Victoria|\
  		AU:WA:Western Australia|\
  		BR:AC:Acre|\
  		BR:AL:Alagoas|\
  		BR:AM:Amazonas|\
  		BR:AP:Amapa|\
  		BR:BA:Baia|\
  		BR:CE:Ceara|\
  		BR:DF:Distrito Federal|\
  		BR:ES:Espirito Santo|\
  		BR:FN:Fernando de Noronha|\
  		BR:GO:Goias|\
  		BR:MA:Maranhao|\
  		BR:MG:Minas Gerais|\
  		BR:MS:Mato Grosso do Sul|\
  		BR:MT:Mato Grosso|\
  		BR:PA:Para|\
  		BR:PB:Paraiba|\
  		BR:PE:Pernambuco|\
  		BR:PI:Piaui|\
  		BR:PR:Parana|\
  		BR:RJ:Rio de Janeiro|\
  		BR:RN:Rio Grande do Norte|\
  		BR:RO:Rondonia|\
  		BR:RR:Roraima|\
  		BR:RS:Rio Grande do Sul|\
  		BR:SC:Santa Catarina|\
  		BR:SE:Sergipe|\
  		BR:SP:Sao Paulo|\
  		BR:TO:Tocatins|\
  		NL:DR:Drente|\
  		NL:FL:Flevoland|\
  		NL:FR:Friesland|\
  		NL:GL:Gelderland|\
  		NL:GR:Groningen|\
  		NL:LB:Limburg|\
  		NL:NB:Noord Brabant|\
  		NL:NH:Noord Holland|\
  		NL:OV:Overijssel|\
  		NL:UT:Utrecht|\
  		NL:ZH:Zuid Holland|\
  		NL:ZL:Zeeland|\
  		UK:AVON:Avon|\
  		UK:BEDS:Bedfordshire|\
  		UK:BERKS:Berkshire|\
  		UK:BUCKS:Buckinghamshire|\
  		UK:CAMBS:Cambridgeshire|\
  		UK:CHESH:Cheshire|\
  		UK:CLEVE:Cleveland|\
  		UK:CORN:Cornwall|\
  		UK:CUMB:Cumbria|\
  		UK:DERBY:Derbyshire|\
  		UK:DEVON:Devon|\
  		UK:DORSET:Dorset|\
  		UK:DURHAM:Durham|\
  		UK:ESSEX:Essex|\
  		UK:GLOUS:Gloucestershire|\
  		UK:GLONDON:Greater London|\
  		UK:GMANCH:Greater Manchester|\
  		UK:HANTS:Hampshire|\
  		UK:HERWOR:Hereford & Worcestershire|\
  		UK:HERTS:Hertfordshire|\
  		UK:HUMBER:Humberside|\
  		UK:IOM:Isle of Man|\
  		UK:IOW:Isle of Wight|\
  		UK:KENT:Kent|\
  		UK:LANCS:Lancashire|\
  		UK:LEICS:Leicestershire|\
  		UK:LINCS:Lincolnshire|\
  		UK:MERSEY:Merseyside|\
  		UK:NORF:Norfolk|\
  		UK:NHANTS:Northamptonshire|\
  		UK:NTHUMB:Northumberland|\
  		UK:NOTTS:Nottinghamshire|\
  		UK:OXON:Oxfordshire|\
  		UK:SHROPS:Shropshire|\
  		UK:SOM:Somerset|\
  		UK:STAFFS:Staffordshire|\
  		UK:SUFF:Suffolk|\
  		UK:SURREY:Surrey|\
  		UK:SUSS:Sussex|\
  		UK:WARKS:Warwickshire|\
  		UK:WMID:West Midlands|\
  		UK:WILTS:Wiltshire|\
  		UK:YORK:Yorkshire|\
  		EI:CO ANTRIM:County Antrim|\
  		EI:CO ARMAGH:County Armagh|\
  		EI:CO DOWN:County Down|\
  		EI:CO FERMANAGH:County Fermanagh|\
  		EI:CO DERRY:County Londonderry|\
  		EI:CO TYRONE:County Tyrone|\
  		EI:CO CAVAN:County Cavan|\
  		EI:CO DONEGAL:County Donegal|\
  		EI:CO MONAGHAN:County Monaghan|\
  		EI:CO DUBLIN:County Dublin|\
  		EI:CO CARLOW:County Carlow|\
  		EI:CO KILDARE:County Kildare|\
  		EI:CO KILKENNY:County Kilkenny|\
  		EI:CO LAOIS:County Laois|\
  		EI:CO LONGFORD:County Longford|\
  		EI:CO LOUTH:County Louth|\
  		EI:CO MEATH:County Meath|\
  		EI:CO OFFALY:County Offaly|\
  		EI:CO WESTMEATH:County Westmeath|\
  		EI:CO WEXFORD:County Wexford|\
  		EI:CO WICKLOW:County Wicklow|\
  		EI:CO GALWAY:County Galway|\
  		EI:CO MAYO:County Mayo|\
  		EI:CO LEITRIM:County Leitrim|\
  		EI:CO ROSCOMMON:County Roscommon|\
  		EI:CO SLIGO:County Sligo|\
  		EI:CO CLARE:County Clare|\
  		EI:CO CORK:County Cork|\
  		EI:CO KERRY:County Kerry|\
  		EI:CO LIMERICK:County Limerick|\
  		EI:CO TIPPERARY:County Tipperary|\
  		EI:CO WATERFORD:County Waterford|\
  		';
  		
  		// Country data table
  		//
  		// To edit the list, just delete a line or add a line. Order is important.
  		// The order displayed here is the order it appears on the drop down.
  		//
  		var country = '\
  		US:United States|\
  		CA:Canada|\
  		AF:Afghanistan|\
  		AL:Albania|\
  		DZ:Algeria|\
  		AS:American Samoa|\
  		AD:Andorra|\
  		AO:Angola|\
  		AI:Anguilla|\
  		AQ:Antarctica|\
  		AG:Antigua and Barbuda|\
  		AR:Argentina|\
  		AM:Armenia|\
  		AW:Aruba|\
  		AU:Australia|\
  		AT:Austria|\
  		AZ:Azerbaijan|\
  		AP:Azores|\
  		BS:Bahamas|\
  		BH:Bahrain|\
  		BD:Bangladesh|\
  		BB:Barbados|\
  		BY:Belarus|\
  		BE:Belgium|\
  		BZ:Belize|\
  		BJ:Benin|\
  		BM:Bermuda|\
  		BT:Bhutan|\
  		BO:Bolivia|\
  		BA:Bosnia And Herzegowina|\
  		XB:Bosnia-Herzegovina|\
  		BW:Botswana|\
  		BV:Bouvet Island|\
  		BR:Brazil|\
  		IO:British Indian Ocean Territory|\
  		VG:British Virgin Islands|\
  		BN:Brunei Darussalam|\
  		BG:Bulgaria|\
  		BF:Burkina Faso|\
  		BI:Burundi|\
  		KH:Cambodia|\
  		CM:Cameroon|\
  		CV:Cape Verde|\
  		KY:Cayman Islands|\
  		CF:Central African Republic|\
  		TD:Chad|\
  		CL:Chile|\
  		CN:China|\
  		CX:Christmas Island|\
  		CC:Cocos (Keeling) Islands|\
  		CO:Colombia|\
  		KM:Comoros|\
  		CG:Congo|\
  		CD:Congo, The Democratic Republic O|\
  		CK:Cook Islands|\
  		XE:Corsica|\
  		CR:Costa Rica|\
  		CI:Cote d` Ivoire (Ivory Coast)|\
  		HR:Croatia|\
  		CU:Cuba|\
  		CY:Cyprus|\
  		CZ:Czech Republic|\
  		DK:Denmark|\
  		DJ:Djibouti|\
  		DM:Dominica|\
  		DO:Dominican Republic|\
  		TP:East Timor|\
  		EC:Ecuador|\
  		EG:Egypt|\
  		SV:El Salvador|\
  		GQ:Equatorial Guinea|\
  		ER:Eritrea|\
  		EE:Estonia|\
  		ET:Ethiopia|\
  		FK:Falkland Islands (Malvinas)|\
  		FO:Faroe Islands|\
  		FJ:Fiji|\
  		FI:Finland|\
  		FR:France (Includes Monaco)|\
  		FX:France, Metropolitan|\
  		GF:French Guiana|\
  		PF:French Polynesia|\
  		TA:French Polynesia (Tahiti)|\
  		TF:French Southern Territories|\
  		GA:Gabon|\
  		GM:Gambia|\
  		GE:Georgia|\
  		DE:Germany|\
  		GH:Ghana|\
  		GI:Gibraltar|\
  		GR:Greece|\
  		GL:Greenland|\
  		GD:Grenada|\
  		GP:Guadeloupe|\
  		GU:Guam|\
  		GT:Guatemala|\
  		GN:Guinea|\
  		GW:Guinea-Bissau|\
  		GY:Guyana|\
  		HT:Haiti|\
  		HM:Heard And Mc Donald Islands|\
  		VA:Holy See (Vatican City State)|\
  		HN:Honduras|\
  		HK:Hong Kong|\
  		HU:Hungary|\
  		IS:Iceland|\
  		IN:India|\
  		ID:Indonesia|\
  		IR:Iran|\
  		IQ:Iraq|\
  		IE:Ireland|\
  		EI:Ireland (Eire)|\
  		IL:Israel|\
  		IT:Italy|\
  		JM:Jamaica|\
  		JP:Japan|\
  		JO:Jordan|\
  		KZ:Kazakhstan|\
  		KE:Kenya|\
  		KI:Kiribati|\
  		KP:Korea, Democratic People\'S Repub|\
  		KW:Kuwait|\
  		KG:Kyrgyzstan|\
  		LA:Laos|\
  		LV:Latvia|\
  		LB:Lebanon|\
  		LS:Lesotho|\
  		LR:Liberia|\
  		LY:Libya|\
  		LI:Liechtenstein|\
  		LT:Lithuania|\
  		LU:Luxembourg|\
  		MO:Macao|\
  		MK:Macedonia|\
  		MG:Madagascar|\
  		ME:Madeira Islands|\
  		MW:Malawi|\
  		MY:Malaysia|\
  		MV:Maldives|\
  		ML:Mali|\
  		MT:Malta|\
  		MH:Marshall Islands|\
  		MQ:Martinique|\
  		MR:Mauritania|\
  		MU:Mauritius|\
  		YT:Mayotte|\
  		MX:Mexico|\
  		FM:Micronesia, Federated States Of|\
  		MD:Moldova, Republic Of|\
  		MC:Monaco|\
  		MN:Mongolia|\
  		MS:Montserrat|\
  		MA:Morocco|\
  		MZ:Mozambique|\
  		MM:Myanmar (Burma)|\
  		NA:Namibia|\
  		NR:Nauru|\
  		NP:Nepal|\
  		NL:Netherlands|\
  		AN:Netherlands Antilles|\
  		NC:New Caledonia|\
  		NZ:New Zealand|\
  		NI:Nicaragua|\
  		NE:Niger|\
  		NG:Nigeria|\
  		NU:Niue|\
  		NF:Norfolk Island|\
  		MP:Northern Mariana Islands|\
  		NO:Norway|\
  		OM:Oman|\
  		PK:Pakistan|\
  		PW:Palau|\
  		PS:Palestinian Territory, Occupied|\
  		PA:Panama|\
  		PG:Papua New Guinea|\
  		PY:Paraguay|\
  		PE:Peru|\
  		PH:Philippines|\
  		PN:Pitcairn|\
  		PL:Poland|\
  		PT:Portugal|\
  		PR:Puerto Rico|\
  		QA:Qatar|\
  		RE:Reunion|\
  		RO:Romania|\
  		RU:Russian Federation|\
  		RW:Rwanda|\
  		KN:Saint Kitts And Nevis|\
  		SM:San Marino|\
  		ST:Sao Tome and Principe|\
  		SA:Saudi Arabia|\
  		SN:Senegal|\
  		XS:Serbia-Montenegro|\
  		SC:Seychelles|\
  		SL:Sierra Leone|\
  		SG:Singapore|\
  		SK:Slovak Republic|\
  		SI:Slovenia|\
  		SB:Solomon Islands|\
  		SO:Somalia|\
  		ZA:South Africa|\
  		GS:South Georgia And The South Sand|\
  		KR:South Korea|\
  		ES:Spain|\
  		LK:Sri Lanka|\
  		NV:St. Christopher and Nevis|\
  		SH:St. Helena|\
  		LC:St. Lucia|\
  		PM:St. Pierre and Miquelon|\
  		VC:St. Vincent and the Grenadines|\
  		SD:Sudan|\
  		SR:Suriname|\
  		SJ:Svalbard And Jan Mayen Islands|\
  		SZ:Swaziland|\
  		SE:Sweden|\
  		CH:Switzerland|\
  		SY:Syrian Arab Republic|\
  		TW:Taiwan|\
  		TJ:Tajikistan|\
  		TZ:Tanzania|\
  		TH:Thailand|\
  		TG:Togo|\
  		TK:Tokelau|\
  		TO:Tonga|\
  		TT:Trinidad and Tobago|\
  		XU:Tristan da Cunha|\
  		TN:Tunisia|\
  		TR:Turkey|\
  		TM:Turkmenistan|\
  		TC:Turks and Caicos Islands|\
  		TV:Tuvalu|\
  		UG:Uganda|\
  		UA:Ukraine|\
  		AE:United Arab Emirates|\
  		UK:United Kingdom|\
  		GB:Great Britain|\
  		UM:United States Minor Outlying Isl|\
  		UY:Uruguay|\
  		UZ:Uzbekistan|\
  		VU:Vanuatu|\
  		XV:Vatican City|\
  		VE:Venezuela|\
  		VN:Vietnam|\
  		VI:Virgin Islands (U.S.)|\
  		WF:Wallis and Furuna Islands|\
  		EH:Western Sahara|\
  		WS:Western Samoa|\
  		YE:Yemen|\
  		YU:Yugoslavia|\
  		ZR:Zaire|\
  		ZM:Zambia|\
  		ZW:Zimbabwe|\
  		';
  		
  		function TrimString(sInString) {
  		  if ( sInString ) {
  			sInString = sInString.replace( /^\s+/g, "" );// strip leading
  			return sInString.replace( /\s+$/g, "" );// strip trailing
  		  }
  		}
  		
  		// Populates the country selected with the counties from the country list
  		function populateCountry(defaultCountry) {
  		  if ( postCountry != '' ) {
  			defaultCountry = postCountry;
  		  }
  		  var countryLineArray = country.split('|');  // Split into lines
  		  var selObj = document.getElementById('countrySelect');
  		  selObj.options[0] = new Option('Select Country','');
  		  selObj.selectedIndex = 0;
  		  for (var loop = 0; loop < countryLineArray.length; loop++) {
  			lineArray = countryLineArray[loop].split(':');
  			countryCode  = TrimString(lineArray[0]);
  			countryName  = TrimString(lineArray[1]);
  			if ( countryCode != '' ) {
  			  selObj.options[loop + 1] = new Option(countryName, countryCode);
  			}
  			if ( defaultCountry == countryCode ) {
  			  selObj.selectedIndex = loop + 1;
  			}
  		  }
  		}
  		
  		function populateState() {
  		  var selObj = document.getElementById('stateSelect');
  		  var foundState = false;
  		  // Empty options just in case new drop down is shorter
  		  if ( selObj.type == 'select-one' ) {
  			for (var i = 0; i < selObj.options.length; i++) {
  			  selObj.options[i] = null;
  			}
  			selObj.options.length=null;
  			selObj.options[0] = new Option('Select State','');
  			selObj.selectedIndex = 0;
  		  }
  		  // Populate the drop down with states from the selected country
  		  var stateLineArray = state.split("|");  // Split into lines
  		  var optionCntr = 1;
  		  for (var loop = 0; loop < stateLineArray.length; loop++) {
  			lineArray = stateLineArray[loop].split(":");
  			countryCode  = TrimString(lineArray[0]);
  			stateCode    = TrimString(lineArray[1]);
  			stateName    = TrimString(lineArray[2]);
  		  if (document.getElementById('countrySelect').value == countryCode && countryCode != '' ) {
  			// If it's a input element, change it to a select
  			  if ( selObj.type == 'text' ) {
  				parentObj = document.getElementById('stateSelect').parentNode;
  				parentObj.removeChild(selObj);
  				var inputSel = document.createElement("SELECT");
  				inputSel.setAttribute("name","state");
  				inputSel.setAttribute("id","stateSelect");
  				parentObj.appendChild(inputSel) ;
  				selObj = document.getElementById('stateSelect');
  				selObj.options[0] = new Option('Select State','');
  				selObj.selectedIndex = 0;
  			  }
  			  if ( stateCode != '' ) {
  				selObj.options[optionCntr] = new Option(stateName, stateCode);
  			  }
  			  // See if it's selected from a previous post
  			  if ( stateCode == postState && countryCode == postCountry ) {
  				selObj.selectedIndex = optionCntr;
  			  }
  			  foundState = true;
  			  $('#stateSelect').show();
  			  optionCntr++
  			}
  		  }
  		  // If the country has no states, change the select to a text box
  		  if ( ! foundState ) {
  			/*
  			parentObj = document.getElementById('stateSelect').parentNode;
  			parentObj.removeChild(selObj);
  		  // Create the Input Field
  			var inputEl = document.createElement("INPUT");
  			inputEl.setAttribute("id", "stateSelect");
  			inputEl.setAttribute("type", "text");
  			inputEl.setAttribute("name", "state");
  			inputEl.setAttribute("size", 20);
  			inputEl.setAttribute("value", postState);
  			$("#state_province_label").html(inputEl);
  			*/
  			$('#stateSelect').val('');
  			$('#stateSelect').hide();
  		  }
  		}
  		
  		function initCountry(country) {
  		  populateCountry(country);
  		  populateState();
  		}
  		
  /*
   * jQuery Orbit Plugin 1.2.3
   * www.ZURB.com/playground
   * Copyright 2010, ZURB
   * Free to use under the MIT license.
   * http://www.opensource.org/licenses/mit-license.php
   * Example of customization $('.orbit_slideshow').orbit({
   *  animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
   *  animationSpeed: 800,                // how fast animtions are
   *  timer: true, 			 // true or false to have the timer
   *  advanceSpeed: 4000, 		 // if timer is enabled, time between transitions 
   *  pauseOnHover: false, 		 // if you hover pauses the slider
   *  startClockOnMouseOut: false, 	 // if clock should start on MouseOut
   *  startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
   *  directionalNav: true, 		 // manual advancing directional navs
   *  captions: true, 			 // do you want captions?
   *  captionAnimation: 'fade', 		 // fade, slideOpen, none
   *  captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
   *  bullets: false,			 // true or false to activate the bullet navigation
   *  bulletThumbs: false,		 // thumbnails for the bullets
   *  bulletThumbLocation: '',		 // location from this file where thumbs will be
   *  afterSlideChange: function(){} 	 // empty function 
  */
  
  (function(d){d.fn.orbit=function(a){a=d.extend({animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4E3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1E3,directionalNav:!0,captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",afterSlideChange:function(){}},a);return this.each(function(){function q(){if(!a.timer||a.timer=="false")return!1;else r.is(":hidden")?s=setInterval(function(){l("next")},a.advanceSpeed):
  (o=!0,x.removeClass("active"),s=setInterval(function(){var a="rotate("+m+"deg)";m+=2;t.css({"-webkit-transform":a,"-moz-transform":a,"-o-transform":a});m>180&&(t.addClass("move"),y.addClass("move"));m>360&&(t.removeClass("move"),y.removeClass("move"),m=0,l("next"))},a.advanceSpeed/180))}function n(){if(!a.timer||a.timer=="false")return!1;else o=!1,clearInterval(s),x.addClass("active")}function z(){if(!a.captions||a.captions=="false")return!1;else{var c=e.eq(b).data("caption");(_captionHTML=d(c).html())?
  (j.attr("id",c).html(_captionHTML),a.captionAnimation=="none"&&j.show(),a.captionAnimation=="fade"&&j.fadeIn(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideDown(a.captionAnimationSpeed)):(a.captionAnimation=="none"&&j.hide(),a.captionAnimation=="fade"&&j.fadeOut(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideUp(a.captionAnimationSpeed))}}function A(){if(a.bullets)C.children("li").removeClass("active").eq(b).addClass("active");else return!1}function l(c){function d(){e.eq(f).css({"z-index":1});
  u=!1;a.afterSlideChange.call(this)}var f=b,g=c;if(f==g)return!1;if(e.length=="1")return!1;u||(u=!0,c=="next"?(b++,b==p&&(b=0)):c=="prev"?(b--,b<0&&(b=p-1)):(b=c,f<b?g="next":f>b&&(g="prev")),A(),e.eq(f).css({"z-index":2}),a.animation=="fade"&&e.eq(b).css({opacity:0,"z-index":3}).animate({opacity:1},a.animationSpeed,d),a.animation=="horizontal-slide"&&(g=="next"&&e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,d),g=="prev"&&e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,
  d)),a.animation=="vertical-slide"&&(g=="prev"&&e.eq(b).css({top:v,"z-index":3}).animate({top:0},a.animationSpeed,d),g=="next"&&e.eq(b).css({top:-v,"z-index":3}).animate({top:0},a.animationSpeed,d)),a.animation=="horizontal-push"&&(g=="next"&&(e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,d),e.eq(f).animate({left:-h},a.animationSpeed)),g=="prev"&&(e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,d),e.eq(f).animate({left:h},a.animationSpeed))),z())}var b=0,
  p=0,h,v,u,f=d(this).addClass("orbit"),c=f.wrap('<div class="orbit-wrapper" />').parent();f.add(h).width("1px").height("1px");var e=f.children("img, a, div");e.each(function(){var a=d(this),b=a.width(),a=a.height();b>f.width()&&(f.add(c).width(b),h=f.width());a>f.height()&&(f.add(c).height(a),v=f.height());p++});if(e.length==1)a.directionalNav=!1,a.timer=!1,a.bullets=!1;e.eq(b).css({"z-index":3}).fadeIn(function(){e.css({display:"block"})});if(a.timer){c.append('<div class="timer"><span class="mask"><span class="rotator"></span></span><span class="pause"></span></div>');
  var r=c.children("div.timer"),o;if(r.length!=0){var t=d("div.timer span.rotator"),y=d("div.timer span.mask"),x=d("div.timer span.pause"),m=0,s;q();r.click(function(){o?n():q()});if(a.startClockOnMouseOut){var B;c.mouseleave(function(){B=setTimeout(function(){o||q()},a.startClockOnMouseOutAfter)});c.mouseenter(function(){clearTimeout(B)})}}}a.pauseOnHover&&c.mouseenter(function(){n()});if(a.captions){c.append('<div class="orbit-caption"></div>');var j=c.children(".orbit-caption");z()}if(a.directionalNav){if(a.directionalNav==
  "false")return!1;c.append('<div class="slider-nav"><span class="right">Right</span><span class="left">Left</span></div>');var k=c.children("div.slider-nav").children("span.left"),w=c.children("div.slider-nav").children("span.right");k.click(function(){n();l("prev")});w.click(function(){n();l("next")})}if(a.bullets){c.append('<ul class="orbit-bullets"></ul>');var C=c.children("ul.orbit-bullets");for(i=0;i<p;i++){k=d("<li>"+(i+1)+"</li>");if(a.bulletThumbs&&(w=e.eq(i).data("thumb")))k=d('<li class="has-thumb">'+
  i+"</li>"),k.css({background:"url("+a.bulletThumbLocation+w+") no-repeat"});c.children("ul.orbit-bullets").append(k);k.data("index",i);k.click(function(){n();l(d(this).data("index"))})}A()}})}})(jQuery);
  
  /*
   * jQuery Reveal Plugin 1.0
   * www.ZURB.com
   * Copyright 2010, ZURB
   * Free to use under the MIT license.
   * http://www.opensource.org/licenses/mit-license.php
  */
  