Template:2010/Donate-now-premiums-international

 table { background-color: transparent; } div.shirt-holder { width: 320px; position:relative; margin: 5px; } img#wordmark { position: absolute; top: 50px; left: 85px; } div#back-label { right: 20px; color: #222222; position: absolute; bottom: 30px; } table#premTable td { padding-top: .5em; padding-bottom: .5em; text-align: center; }  function validateForm( form ) {

var price = 25; var minimums = { 'USD' : price * 1, 'GBP' : price * 1, 'EUR' : price * 1, 'AUD' : price * 2, 'CAD' : price * 1, 'CHF' : price * 1, 'CZK' : price * 20, 'DKK' : price * 5, 'HKD' : price * 10, 'HUF' : price * 200, 'JPY' : price * 100, 'NZD' : price * 2, 'NOK' : price * 10, 'PLN' : price * 5, 'SGD' : price * 2, 'SEK' : price * 10, 'ILS' : price * 5 };

var error = true;

// Get amount selection var amount = null; for ( var i = 0; i < form.amount.length; i++ ) { if ( form.amount[i].checked ) { amount = form.amount[i].value; } }  if ( form.amountGiven.value != "" ) { var otherAmount = form.amountGiven.value; otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10'); otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2'); otherAmount = otherAmount.replace(/[\$,.]/g, ''); otherAmount = otherAmount.replace(/:/, '.'); form.amountGiven.value = otherAmount; amount = otherAmount; }

// Check amount is a real number error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); // Check amount is at least the minimum var currency = form.currency_code[form.currency_code.selectedIndex].value; if ( typeof( minimums[currency] ) == 'undefined' ) { minimums[currency] = 1; } if ( amount < minimums[currency] || error ) { alert( ' '.replace('$25', minimums[currency] + ' ' + currency ) ); error = true; } return !error; }

function DefaultSubmit(formfield,Action) { var keycode; if (window.event) keycode = window.event.keyCode; else if (Action) keycode = Action.which; else return true;

if (keycode == 13) {  redirectPayment; return false; } else return true; }

function redirectPayment(i) { //if i == 1 var paymentType ="cc"; var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang= \x26masthead=\x26form_name=\x26text_template=\x26language= " ; if (i==2) {action_url="http://wikimediafoundation.org/wiki/Special:ContributionTracking/ "; paymentType = "pp"; }   document.paypalcontribution.action = action_url; document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage + '.' + paymentType; if(validateForm(document.paypalcontribution)){ if(typeof(OWA) !== 'undefined'){OWATracker.shareStateByPost( document.paypalcontribution );} document.paypalcontribution.submit; } } function updateShirt(language) { var an_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/6b/Wordmark-rev-AN.png'; var ab_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/6e/AB-Abkhaz.png'; var am_img = 'http://upload.wikimedia.org/wikipedia/foundation/0/06/AM-Amharic.png'; var ar_img = 'http://upload.wikimedia.org/wikipedia/foundation/1/19/AR-Arabic.png'; var ast_img = 'http://upload.wikimedia.org/wikipedia/foundation/7/77/AST-Asturian.png'; var az_img = 'http://upload.wikimedia.org/wikipedia/foundation/2/21/AZ-Azerbaijani.png'; var be_img = 'http://upload.wikimedia.org/wikipedia/foundation/0/0a/BE-Belarusian.png'; var bg_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/6c/BG-Bulgarian.png'; var bn_img = 'http://upload.wikimedia.org/wikipedia/foundation/c/cf/BN-Bengali.png'; var bo_img = 'http://upload.wikimedia.org/wikipedia/foundation/d/d8/BO-Tibetan.png'; var ca_img = 'http://upload.wikimedia.org/wikipedia/foundation/f/f9/CA-Catalan.png'; var chr_img = 'http://upload.wikimedia.org/wikipedia/foundation/f/f2/CHR-Cherokee.png'; var cr_img = 'http://upload.wikimedia.org/wikipedia/foundation/9/98/CR-Cree.png'; var cs_img = 'http://upload.wikimedia.org/wikipedia/foundation/9/99/CS-Czech.png'; var cu_img = 'http://upload.wikimedia.org/wikipedia/foundation/a/ae/CU-Church-Slavonic.png'; var cy_img = 'http://upload.wikimedia.org/wikipedia/foundation/5/50/CY-Welsh.png'; var diq_img = 'http://upload.wikimedia.org/wikipedia/foundation/5/5d/DIQ-Zazaki-.png'; var dv_img = 'http://upload.wikimedia.org/wikipedia/foundation/c/ca/DV-Dhivehi.png'; var el_img = 'http://upload.wikimedia.org/wikipedia/foundation/5/5f/EL-Greek.png'; var en_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/65/EN-English.png'; var eo_img = 'http://upload.wikimedia.org/wikipedia/foundation/e/ed/EO-Esperanto.png'; var et_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/6b/ET-Estonian.png'; var fa_img = 'http://upload.wikimedia.org/wikipedia/foundation/9/97/FA-Persian.png'; var ff_img = 'http://upload.wikimedia.org/wikipedia/foundation/c/c2/FF-Fula.png'; var fr_img = 'http://upload.wikimedia.org/wikipedia/foundation/a/a6/FR-French.png'; var fy_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/60/FY-Western-Frisian.png'; var gn_img = 'http://upload.wikimedia.org/wikipedia/foundation/d/d3/GN-Guaran%C3%AD.png'; var gu_img = 'http://upload.wikimedia.org/wikipedia/foundation/b/b3/GU-Gujarati.png'; var haw_img = 'http://upload.wikimedia.org/wikipedia/foundation/0/00/HAW-Hawaiian.png'; var he_img = 'http://upload.wikimedia.org/wikipedia/foundation/5/58/HE-Hebrew.png'; var hi_img = 'http://upload.wikimedia.org/wikipedia/foundation/3/3a/HI-Hindi.png'; var ht_img = 'http://upload.wikimedia.org/wikipedia/foundation/2/24/HT-Haitian.png'; var io_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/89/IO-Ido.png'; var iu_img = 'http://upload.wikimedia.org/wikipedia/foundation/4/4a/IU-Inuktitut.png'; var ja_img = 'http://upload.wikimedia.org/wikipedia/foundation/f/f7/JA-Japanese.png'; var ka_img = 'http://upload.wikimedia.org/wikipedia/foundation/3/31/KA-Georgian.png'; var kk_img = 'http://upload.wikimedia.org/wikipedia/foundation/5/58/KK-Kazakh.png'; var ko_img = 'http://upload.wikimedia.org/wikipedia/foundation/7/72/KO-Korean.png'; var ku_img = 'http://upload.wikimedia.org/wikipedia/foundation/1/19/KU-Kurdish.png'; var la_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/8a/LA-Latin.png'; var lt_img = 'http://upload.wikimedia.org/wikipedia/foundation/9/9c/LT-Lithuanian.png'; var lv_img = 'http://upload.wikimedia.org/wikipedia/foundation/d/dd/LV-Latvian.png'; var mk_img = 'http://upload.wikimedia.org/wikipedia/foundation/1/1f/MK-Macedonian.png'; var ml_img = 'http://upload.wikimedia.org/wikipedia/foundation/e/e3/ML-Malayalam.png'; var nrm_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/81/NRM-Nouormand.png'; var nv_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/82/NV-Navajo.png'; var qu_img = 'http://upload.wikimedia.org/wikipedia/foundation/f/fb/QU-Quechua.png'; var ru_img = 'http://upload.wikimedia.org/wikipedia/foundation/0/01/RU-Russian.png'; var sah_img = 'http://upload.wikimedia.org/wikipedia/foundation/9/93/SAH-Sakha.png'; var sg_img = 'http://upload.wikimedia.org/wikipedia/foundation/2/2c/SG-Sango.png'; var si_img = 'http://upload.wikimedia.org/wikipedia/foundation/3/38/SI-Sinhala.png'; var sl_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/80/SL-Slovene.png'; var sr_img = 'http://upload.wikimedia.org/wikipedia/foundation/e/e7/SR-Serbian.png'; var ta_img = 'http://upload.wikimedia.org/wikipedia/foundation/d/d2/TA-Tamil.png'; var te_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/84/TE-Telugu.png'; var th_img = 'http://upload.wikimedia.org/wikipedia/foundation/8/82/TH-Thai.png'; var tr_img = 'http://upload.wikimedia.org/wikipedia/foundation/6/6f/TR-Turkish.png'; var uk_img = 'http://upload.wikimedia.org/wikipedia/foundation/d/d6/UK-Ukrainian.png'; var ur_img = 'http://upload.wikimedia.org/wikipedia/foundation/a/af/UR-Urdu.png'; var vo_img = 'http://upload.wikimedia.org/wikipedia/foundation/a/a3/VO-Volap%C3%BCk.png'; var zh_img = 'http://upload.wikimedia.org/wikipedia/foundation/5/57/ZH-Chinese.png'; switch (language) { case "ab": document.getElementById('wordmark').src = ab_img; break; case "am": document.getElementById('wordmark').src = am_img; break; case "ar": document.getElementById('wordmark').src = ar_img; break; case "ast": document.getElementById('wordmark').src = ast_img; break; case "az": document.getElementById('wordmark').src = az_img; break; case "be": document.getElementById('wordmark').src = be_img; break; case "bg": document.getElementById('wordmark').src = bg_img; break; case "bn": document.getElementById('wordmark').src = bn_img; break; case "bo": document.getElementById('wordmark').src = bo_img; break; case "ca": document.getElementById('wordmark').src = ca_img; break; case "chr": document.getElementById('wordmark').src = chr_img; break; case "cr": document.getElementById('wordmark').src = cr_img; break; case "cs": document.getElementById('wordmark').src = cs_img; break; case "cu": document.getElementById('wordmark').src = cu_img; break; case "cy": document.getElementById('wordmark').src = cy_img; break; case "diq": document.getElementById('wordmark').src = diq_img; break; case "dv": document.getElementById('wordmark').src = dv_img; break; case "el": document.getElementById('wordmark').src = el_img; break; case "en": document.getElementById('wordmark').src = en_img; break; case "eo": document.getElementById('wordmark').src = eo_img; break; case "et": document.getElementById('wordmark').src = et_img; break; case "fa": document.getElementById('wordmark').src = fa_img; break; case "ff": document.getElementById('wordmark').src = ff_img; break; case "fr": document.getElementById('wordmark').src = fr_img; break; case "fy": document.getElementById('wordmark').src = fy_img; break; case "gn": document.getElementById('wordmark').src = gn_img; break; case "gu": document.getElementById('wordmark').src = gu_img; break; case "haw": document.getElementById('wordmark').src = haw_img; break; case "he": document.getElementById('wordmark').src = he_img; break; case "hi": document.getElementById('wordmark').src = hi_img; break; case "ht": document.getElementById('wordmark').src = ht_img; break; case "io": document.getElementById('wordmark').src = io_img; break; case "iu": document.getElementById('wordmark').src = iu_img; break; case "ja": document.getElementById('wordmark').src = ja_img; break; case "ka": document.getElementById('wordmark').src = ka_img; break; case "kk": document.getElementById('wordmark').src = kk_img; break; case "ko": document.getElementById('wordmark').src = ko_img; break; case "ku": document.getElementById('wordmark').src = ku_img; break; case "la": document.getElementById('wordmark').src = la_img; break; case "lt": document.getElementById('wordmark').src = lt_img; break; case "lv": document.getElementById('wordmark').src = lv_img; break; case "mk": document.getElementById('wordmark').src = mk_img; break; case "ml": document.getElementById('wordmark').src = ml_img; break; case "nrm": document.getElementById('wordmark').src = nrm_img; break; case "nv": document.getElementById('wordmark').src = nv_img; break; case "qu": document.getElementById('wordmark').src = qu_img; break; case "ru": document.getElementById('wordmark').src = ru_img; break; case "sah": document.getElementById('wordmark').src = sah_img; break; case "sg": document.getElementById('wordmark').src = sg_img; break; case "si": document.getElementById('wordmark').src = si_img; break; case "sl": document.getElementById('wordmark').src = sl_img; break; case "sr": document.getElementById('wordmark').src = sr_img; break; case "ta": document.getElementById('wordmark').src = ta_img; break; case "te": document.getElementById('wordmark').src = te_img; break; case "th": document.getElementById('wordmark').src = th_img; break; case "tr": document.getElementById('wordmark').src = tr_img; break; case "uk": document.getElementById('wordmark').src = uk_img; break; case "ur": document.getElementById('wordmark').src = ur_img; break; case "vo": document.getElementById('wordmark').src = vo_img; break; case "zh": document.getElementById('wordmark').src = zh_img; break; case "an": document.getElementById('wordmark').src =an_img; break; } }

       

   <label for="input_amount_2"> <input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value=" "><label for="input_amount_3">

<input type="radio" name="amount" id="input_amount_other" value="Other"><label for="input_amount_other"> <input type="text" name="amountGiven" size="4" onfocus="this.form.input_amount_other.checked=true;" onKeyPress="return DefaultSubmit(this,event)">

<select name="currency_code" id="input_currency_code" size="1" style="width:7em;" onchange="updateCC(this.value);"><option value=" " selected>  – <option value="XXX">--- <option value="GBP">GBP – £ <option value="EUR">EUR – € <option value="USD">USD - $ <option value="AUD">AUD – $ <option value="CAD">CAD – $

<option value="CHF">CHF – Fr. <option value="CZK">CZK – Kč <option value="DKK">DKK – kr <option value="HKD">HKD – HK$ <option value="HUF">HUF – Ft <option value="ILS">ILS - ₪ <option value="JPY">JPY – ¥ <option value="NOK">NOK – kr <option value="NZD">NZD – NZ$ <option value="PLN">PLN – zł <option value="SEK">SEK – kr <option value="SGD">SGD – S$

<input type="button" value=" " class="input-button  " onclick="redirectPayment('1');"/>

<input type="button" value=" " class="input-button  " onclick="redirectPayment('2');"/>

* *  * <p style="margin-top: 1em;">

<script type="text/javascript"> function getQuerystring( key ) { key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ); var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' ); var qs = regex.exec( window.location.search ); return qs == null ? '' : qs[1]; }

function getLandingPage {  var path = "  ";

if( path == "default"){ pathArray = window.location.pathname.split( '/' ); return pathArray[2]; }  else return path; }

function updateCC( currency ) { if ( ( currency == 'AUD' ) || ( currency == 'CAD' ) || ( currency == 'EUR' ) ||    (currency == 'GBP' ) || ( currency == 'JPY' ) || ( currency == 'USD' ) ) { document.getElementById('cc-donate-button').style.display = " "; } else { document.getElementById('cc-donate-button').style.display = "none"; } } document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); document.paypalcontribution.referrer.value = document.referrer;

( function( $ ) { $(document).ready(function{ var currency = $("#input_currency_code").val; updateCC(currency); })

//lightboxes

$("a[rel^='prettyPhoto']").prettyPhoto( {theme:'light_rounded', overlay_gallery: false});

} )( jQuery );