// Event Calendar
// copyright Stephen Chapman, 10th June 2006, 30th October 2006
var tb = 'b'; // top or bottom (t or b)
var todaybg = ' #ECEDED'; // current selected date background colour
var textclr = '#7B96A0'; // text colour
var linkclr = '#c04242'; // link text colour
var headbg= '#c04242';
var noMessage = ''; // message to display when no entry in array
var nextEvent='Próximos eventos'
var dateFormat='1'
var dA = new Array(); var x = 0;
// first 8 characters in ccyymmdd format for single date events
// first 8 characters in 0000mmdd format for every year events
//dA[x++] = "00000101 New Year";
//dA[x++] = "20080104 Torunn";
dA[x++] = "20080130 Seafood seminar - Barcelona", dA[x++] = "20080131 IV Curso de Ictiopatologia practica", dA[x++] = "20080201 Conferencia sobre sostenibilidad", dA[x++] = "20080603 ACUI-2008. Vilagarcía de Arousa . Pontevedra", dA[x++] = "20080915 Aquaculture Europe (AE 2008). Cracovia. (Polonia). 15-17 Sept.", dA[x++] = "20080915 III Conferencia Mundial de las conservas de pescados y mariscos. Vigo. España", dA[x++] = "20080916 World Fising Exhibition 2009. Vigo. Pontevedra", dA[x++] = "20080918 Interpescas 08. Aveiro. (Portugal) 18-21 Sept.", dA[x++] = "20080929 AquaVision 2008. Stavanger (Noruega) 29 Sept.-1 Oct.", dA[x++] = "20081007 Conxemar 2008. Vigo. Pontevedra. 7-9 Oct.", dA[x++] = "20081009 XI Foro de Recursos Marinos y Acuicultura en las Rías Bajas. Isla de la Toja. Pontevedra. 9-10 Oct.", dA[x++] = "20081019 Sial 2008. Paris (France). 19-23 Oct.", dA[x++] = "20081022 Offshore Mariculture 2008. Alicante. 22-24 Oct.", dA[x++] = "20081023 Future Fish Eurasia. Estambul (Turquía). 23-25 Oct.", dA[x++] = "20081111 Euro Tier 2008. Hanover (Alemania). 11-14 Nov.", dA[x++] = "20081121 AquaMedit 2008. Atenas (Grecia). 21-22 Nov", dA[x++] = "20090214 Salmon Show 2009. Norresundby (Dinamarca). 14 Febrero", dA[x++] = "20090304 North Atlantic Sea Food. Oslo (Noruega). 4 - 5 Marzo", dA[x++] = "20090305 Agadir Fish Marruecos. Agadir (Marruecos) 5 -8 Marzo", dA[x++] = "20090310 Frozen 09. Zaragoza. 10 - 12 Febrero", dA[x++] = "20090326 11ª Conferencia sobre seguros y gestión de riesgos en acuicultura. Dubronik (Croacia). 26 - 27 marzo", dA[x++] = "20090421 Scottish Aquaculture Research Forum. Edimburgo (Escocia). 21 - 22 de Abril", dA[x++] = "20090427 ISMS 09. II Simposio Internacional de Ciencias del Mar. 27 - 30 Abril. Facultad de Ciencias del Mar, Vigo. España", dA[x++] = "20090428 European Seafood Exhibition. Bruselas (Bélgica). 28 - 30 Abirl", dA[x++] = "20090521 Fishtech 09. Verona (Italia). 21 - 24 mayo", dA[x++] = "20090602 Seafood Rusia 2009. Moscú (Rusia) 2 - 4 Junio 2009", dA[x++] = "20090818 Aqua Nor. Trondheim (Noruega). 18 - 21 Agosto", dA[x++] = "20090914 14th International Conference on Diseases of Fish & Shellfish. Praga - Rep. Checa. 14-19 Septiembre.", dA[x++] = "20090916 Aqua Farming International. Vigo (España). 16 - 19 Septiembre", dA[x++] = "20090916 World Fishing Exhibition 2009. Vigo (España). 16 - 19 Septiembre", dA[x++] = "20090918 AQA Conference (en el marco del World Fishing Exhibition). Vigo - Pontevedra (España). 18 Septiembre.", dA[x++] = "20091008 XII Foro dos Recursos Mariños e de Acuicultura das Rías Galegas. Isla de la Toja. El Grove. Pontevedra (España). 8 - 10 de octubre", dA[x++] = "20091013 Jornadas sobre Terpéutica en Piscicultura. 13 -14 Octubre. San Carlos de la Rápita (Tarragona)", dA[x++] = "20091124 XII Congreso Nacional de Acuicultura. Universidad Politécnica de Madrid. 24 - 26 Noviembre", dA[x++] = "20091207 United Nations Climate Change Conference. Coopenague, Dinamarca. The impact of climate change onto the fisheries and fish farming industries will be a topic of discussion.", dA[x++] = "20100201 Seafood Summit. 1-2 Febrero. París . Francia.", dA[x++] = "20100221 Fish International . Feria Internacional de Pescados y Mariscos. 21-23 Febrero. Bremen. Alemania", dA[x++] = "20100302 ACUI 2010. IV Feria Internacional del Acuicultura en Galicia. 2-4 Marzo. Villagarcía de Arosa. Pontevedra", dA[x++] = "20100322 Alimentaria. Interpesca. Feria que incluye la presentación de productos procedentes de la acuicultura. 22-26 de Marzo. Fira de Barcelona.", dA[x++] = "20100322 Mortality Workshop (early life stages) 22-24 Marzo. Aberdeen.Escocia", dA[x++] = "20100324 Aqua Sur Conference 2010, Puerto Varas - Chile ", dA[x++] = "20100427 European Seafood Exposition 2010. Feria Europea de productos del mar. 27-29 Abril. Bruselas. Bégica.", dA[x++] = "20100514 Expo-Rápita. Feria Nacional nautico-pesquera y de cultivos marinos. 14-16 Mayo. San Carlos de la Rápita (Tarragona)", dA[x++] = "20100519 Aquaculture UK 2010. 19-20 Mayo. Aviemore. Escocia.", dA[x++] = "20100607 AquaVision 2010. 7-9 Junio. Stavanger. Noruega", dA[x++] = "20100616 Offshore Mariculture 2010 - Duvrovnik (Croacia). 16-18 Junio", dA[x++] = "20100702 FitFish Worshop. 2-3 Julio. Barcelona.", dA[x++] = "20100705 International Congress on Biology of Fish. 5-9 Julio. Barcelona.", dA[x++] = "20100916 Future Fish Eurasia. 16 - 18 de Septiembre. Izmir. Turquía", dA[x++] = "20101005 Aquaculture Europe 2010. 5-8 Oporto. Portugal", dA[x++] = "20101005 CONXEMAR, XII Feria Internacional de Productos del Mar congelados - Vigo (Pontevedra), 5 - 7 Octubre", dA[x++] = "20101027 Aqua Sur Exhibition 2010. 27-30 Octubre. Puerto Montt. Chile.", dA[x++] = "20110218 AQUA-FISCH. 18-20 Febrero. Friedrichshafen. Alemania", dA[x++] = "20110219 MSE. Mediterranean Seafood Exhibition. 19-23 Febrero. Rimini (Italia)", dA[x++] = "20110301 North Atlantic Seafood Forum. 1-3 marzo. Lilestrom (Noruega).", dA[x++] = "20110503 Aquafeed Horizons. Colonia (Alemania). 3-4 Mayo", dA[x++] = "20110503 European Seafood Exhibition & Seafood Processing Europe. 1-3 Mayo. Bruselas (Bélgica)", dA[x++] = "20110503 VICTAM International 2011. Colonia (Alemania). 3-5 mayo.", dA[x++] = "20110512 Les Rencontres de L\'aquaculture. Le Touquet (Francia). 12-14 Mayo", dA[x++] = "20110531 Polfish. 31Mayo-2 Junio. Gdansk (Polonia)", dA[x++] = "20110606 World Aquaculture 2011. Natal (Brasil). 6-10 Junio", dA[x++] = "20110622 Larval Fish Conferences. Wilmington, Carolina del Norte (USA). 22-26 Mayo", dA[x++] = "20110816 Aquanor. 16-19 Agosto. Trondheim. Noruega", dA[x++] = "20110907 Biomarine Business Convention. Nantes (France). 7-9 Septiembre.", dA[x++] = "20111004 Conxemar. 4-6 Octubre. Vigo (Pontevedra). España", dA[x++] = "20111006 XIV Foro do Recursos mariños e da Acuicultura da Rías Galegas. 6-7 de octubre. O Grove. Pontevedra", dA[x++] = "20111012 Danfish International. 12-14 Octubre. Aalborg. Dinamarca", dA[x++] = "20111018 Aquaculture Europe. 18-21 Octubre. Rhodas. Grecia", dA[x++] = "20111025 VII Curso de Ictiopatología práctica. Técnicas de diagnóstico en patología de peces. Módulo de teoría. 25-28 Octubre. Sala de Conferencias del Institut d\'Estudis Catalans IEC. Barcelona. Organiza: XRAq, ECIMAT (Universidad de Vigo), UAB (Universidad de Barcelona) IEC (instituto de estudios Catalanes) y SKRETTING España.", dA[x++] = "20111121 International Sturgeon Conference. 21-25 Noviembre. Varsovia. Polonia", dA[x++] = "20111201 5th. International Algae Conference. 1 Diciembre. Amsterdam. Holanda", dA[x++] = "20120625 Aqua 2012. San Petersburgo. Rusia. 25-29 de Junio", dA[x++] = "20120901 Aqua 2012: Global Aquaculture - Securing our future. Praga . República Checa. 1-5 de Septiembre"
var dList = new Array(); var y = 0;
dList[y++] = "25.06.2012¤Aqua 2012. San Petersburgo. Rusia. 25-29 de Junio¤www.easonline.org¤_blank¤20120625", dList[y++] = "01.09.2012¤Aqua 2012: Global Aquaculture - Securing our future. Praga . República Checa. 1-5 de Septiembre¤¤_self¤20120901"
// permission is granted to use this javascript provided that the below code is not altered
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;}
function loaded(i,f) {if (document.getElementById && document.getElementById(i) != null) f(); else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
function monthlength(month,year) {var dd = new Date(year, month, 0);return dd.getDate();}
var moy = ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'];var today = new Date();var selDate = today.getFullYear()+getmmdd(today.getMonth()+1,today.getDate());
function dispCal(yy,mm) {if (mm < 0 || mm > 12) {alert('month must be between 1 and 12'); return false;} if (yy != 0 && (yy < 1901 || yy > 2100)) {alert('year must be after 1900 and before 2101'); return false;} var dow = ['Lu','Ma','Mi','Ju','Vi','Sa','Do']; var calendar = new Date(); var today = calendar.getDate(); calendar.setDate(1); if (yy > 1900) calendar.setFullYear(yy); if (mm > 0) calendar.setMonth(mm - 1); var yy = year = calendar.getFullYear(); var month = calendar.getMonth(); calendar.setDate(today); var weekday = (calendar.getDay() - 1) % 7;; var daysInMonth = monthlength(month+1,year); var hilite_start = '
'; var td_start = ' | '; var cal = '| ' + moy[month] + ' | ' + year + '<\/b> | <\/td><\/tr> | '; for(dex=0; dex < 7; dex++) {cal += td_start + dow[dex] + '';} cal += '<\/tr> '; var day2 = today; for (dex = today; dex > 6; dex -=7) day2 = dex; weekday -= day2 - 1; while (weekday < 0) weekday += 7; for(dex=0; dex < weekday; dex++) cal += td_start + ' <\/td>'; for(dex=1; dex <= daysInMonth; dex++) {if(weekday == 7) {cal += ' '; weekday = 0;} if(selDate==year+getmmdd(month+1,dex)) cal += hilite_start +''+ dex + '<\/span><\/b><\/td>'; else cal += td_start + '' + dex + '<\/span><\/td>'; weekday += 1;} for(dex=weekday; dex < 7; dex++) cal += td_start + ' <\/td>';if (document.getElementById) {var mmb = month; mm = month + 1; var yya = yyb = yy; if (mmb <1) {mmb += 12; yyb--;} var mma = month + 2; if (mma > 12) {mma -= 12; yya++;} var yb = yy -1; var ya = yy +1; cal += ' |  | <\/tr><\/table><\/div>';} else {cal += ' ';} cal += ''; return cal;}
function start() {
var x = '
<\/div>';
var y = '';
if (tb == 't') y = x + dispCal(0,0); else y = dispCal(0,0) + x;
document.getElementById('calendar').innerHTML = y;
ev();
}
loaded('calendar',start);
function clickDate(day, month, year) {
var ct = nextDate(year + getmmdd(month+1,day));
if (ct == '') ct = nextDate('0000' + getmmdd(month+1,day));
if (ct == '') return 'style="color:'+textclr+'"'; else return 'style="text-decoration: underline;cursor:pointer;color:'+linkclr+'" onclick="selDate = '+year+ getmmdd(month+1,day)+'; isDate(' + day + ',' + month + ',' + year + '); return false;"';
}
function isDate(dayVal,monthVal,yearVal) {
var ct = nextDate(yearVal + getmmdd(monthVal+1,dayVal));
var ctlist = nextDateMultipleList(yearVal + getmmdd(monthVal+1,dayVal));
//if (ct == '') ct = nextDate('0000' + getmmdd(monthVal+1,dayVal));
//if (ct == '') ct = noMessage;document.getElementById('calDate').innerHTML =' '+selDate.toString().substr(6,2)+"."+selDate.toString().substr(4,2)+"."+ //selDate.toString().substr(0,4) + ': ' +ct + ' '+nextEvent+''
;
if (ctlist == '') ct = nextDateMultipleList('0000' + getmmdd(monthVal+1,dayVal));
if (ctlist == '') ct = noMessage;document.getElementById('calDate').innerHTML =' ';
return false;}
function nextDate(yymmdd) {
var x = dA.length;
var output = '';
//output = output + " ";
for (var i = 0; i < x; i++) {
if (dA[i].substr(0,8) == yymmdd) {
output = output + dA[i].substr(8) + " ";
}
}
//output = output + " ";
return output;
}
function nextDateMultipleList(yymmdd) {
var x = dA.length;
var y = dList.length;
var output = '';
var check = false;
output = output + " ";
for (var t = 0; t < y; t++) {
if (dList[t] != '') {
//get current string
var currentString =dList[t];
var stringArray = currentString.split('¤');
var date = stringArray [4];
if(date == yymmdd && stringArray != null) {
var realdate = stringArray[0];
var title = stringArray[1];
var URL = stringArray[2];
var target = stringArray[3];
if(dateFormat == 2) {
var tempdate = new Array;
tempdate = realdate.split('.');
var dateFormatted = '';
dateFormatted = tempdate[1]+'/'+tempdate[0]+'/'+tempdate[2];
}
if(URL == '' || URL == null) {
//change date format
if(dateFormat == 2) {
output = output + "| " + dateFormatted+ " | "+title+" | ";
}
else {
output = output + "| " + realdate + " | "+title+" | ";
}
} else {
//change date format
if(dateFormat == 2) {
output = output + "| " + dateFormatted+ " | "+title+" | ";;
}
else {
output = output + "| " + realdate+ " | "+title+" | ";
}
}
check = "true";
}
}
}
output = output + " ";
return output;
}
function getmmdd(mm,dd) {return (mm > 9 ? '' + mm : '0' + mm) + (dd > 9 ? dd : '0' + dd);
}
function ev() {var ct = nextDate(selDate);var ct = nextDate(selDate);if (ct == '') ct = nextDate('0000' + selDate.substr(4));if (ct == '') ct = noMessage; document.getElementById('calDate').innerHTML =' '+ct+' ';
}
|