var age_no_limit = 'hr,th,vn'; var age_16_limit = 'aw,be,vg,fr,fx,it,jm,pt,es'; var age_18_limit = 'uk'; var age_19_limit = 'ca,kp,kr'; var age_20_limit = 'fi,is,jp,nz,no,se'; var age_21_limit = 'ee,hn,id,my,us'; var year_now = 2008; function getById(id) { return document.getElementById?document.getElementById(id):(document.all?document.all(id):null); } function openPostcards() { window.open('/cruzan-espana.html', null, ',type=fullWindow,fullscreen,scrollbars=1,resizable=1,menubar=0'); } function termspopup(url) { terms = window.open(url + ".html","absolut_terms","width=500,height=400,scrollbars=1,resizable=1,menubar=0"); terms.focus(); } function copyrightpopup(url) { privacy = window.open(url + ".html","copyright","width=500,height=400,scrollbars=1,resizable=1,menubar=0"); privacy.focus(); } function privacypopup(url) { privacy = window.open(url + ".html","privacy_policy","width=500,height=400,scrollbars=1,resizable=1,menubar=0"); privacy.focus(); } function responsibilitypopup(url) { responsibility = window.open("http://www.drinksmart.es/","responsibility","width=782,height=620,scrollbars=1,resizable=1,menubar=0"); responsibility.focus(); } function competitionpopup(url) { responsibility = window.open(url + ".html","responsibility","width=500,height=400,scrollbars=1,resizable=1,menubar=0"); responsibility.focus(); } function localradiopopup(url) { responsibility = window.open(url + ".html","responsibility","width=500,height=400,scrollbars=1,resizable=1,menubar=0"); responsibility.focus(); } function jamesieopen() { jamesie = window.open("http://www.jamesieproject.com/","jamesie","width=800,height=600,scrollbars=1,resizable=1,menubar=1"); jamesie.focus(); } function openKennyChesney() { kenny = window.open("http://cruzanrum.com/kennychesney","kenny","width=800,height=600,scrollbars=1,resizable=1,menubar=1"); kenny.focus(); } function resizeBrowserWindow(width, height) { window.resizeTo(width,height) window.moveTo(screen.availWidth/2-(width/2),screen.availHeight/2-(height/2)) } function resizeBrowserWindowFullscreen() { var width = self.screen.availWidth; var height = self.screen.availHeight; window.resizeTo(width,height) window.moveTo(0, 0) } function agecheck(country, year) { country = country.toLowerCase(); if (isNaN(year)) return false; if (year <= 1900) return false; if (country.length != 2) country = 'xx'; var year_compare = 20; if (age_no_limit.indexOf(country) >= 0) year_compare = -1; if (age_16_limit.indexOf(country) >= 0) year_compare = 16; if (age_18_limit.indexOf(country) >= 0) year_compare = 18; if (age_19_limit.indexOf(country) >= 0) year_compare = 19; if (age_20_limit.indexOf(country) >= 0) year_compare = 20; if (age_21_limit.indexOf(country) >= 0) year_compare = 21; if (year_now - year > year_compare) return true; return false; } function agecheck(country, day, month, year) { country = country.toLowerCase(); if (isNaN(year)) return false; if (year <= 1900) return false; if (country.length != 2) country = 'xx'; var year_compare = 20; if (age_no_limit.indexOf(country) >= 0) year_compare = -1; if (age_16_limit.indexOf(country) >= 0) year_compare = 16; if (age_18_limit.indexOf(country) >= 0) year_compare = 18; if (age_19_limit.indexOf(country) >= 0) year_compare = 19; if (age_20_limit.indexOf(country) >= 0) year_compare = 20; if (age_21_limit.indexOf(country) >= 0) year_compare = 21; if (year_now - year > year_compare) return true; return false; } function GetActionTag(URL) { //var tmp = new Image(); //tmp.src = 'http://switch.atdmt.com/action/' + URL; } function spotlight(tagVal) { /*var spotlighttag; var Tag; var axel = Math.random() + ""; var ord = axel * 1000000000000000000; var prx = "?"; spotlighttag="http://ad.se.doubleclick.net/activity;src=1167401;type=absol034;cat="+tagVal+";ord="+ord+prx; Tag = new Image(); Tag.src = spotlighttag;*/ } var adcom_ro_total = 0; function adcomPixelCall() { /*if(!adcom_ro_total) { adcom_ro_total = 1; parent.document.getElementById('adcompixel').src = 'http://servedby.advertising.com/action/type=753002344/bins=1/rich=0/mnum=1516/logs=0/site=695501/betr=absolut_cs=2'; }*/ }