var logo_alphabet = new Array(
'Bitte wählen Sie ein Logo', '0',
'ATLANTIC','Atlantic',
'BIANCA','bianca',
'Caribic','caribic',
'carneval','carneval',
'CartaTyp','carta_typ',
'Chagall INSIZE','chagall_insize',
'Circle gloss Premium White','Circle_gloss_Premium_White',
'Circle matt White','Circle_matt_White',
'Circle offset Premium White','Circle_offset_Premium_White',
'Circle offset White','Circle_offset_White',
'Circle preprint Premium White','Circle_preprint_Premium_White',
'Circle silk Premium White','Circle_silk_Premium_White',
'classic art','classic_art',
'classic naturel','classic_naturel',
'Coffe to print','Coffe-to-print',
'CONTIFARBLASER','contifarblaser',
'CONTIFOL','contifol',
'CONTIJET','contijet',
'CONTILABEL','contilabel',
'CONTINENTAL LX','continental_lx',
'CONTIPREPRINT','contipreprint',
'CoverRidged','coverridged',
'Dali INSIZE','dali_insize',
'DESIGN OFFSET','design_offset',
'evergreen','evergreen',
'extra + DIGITAL', 'extra_plus_digital',
'extra + MATT','extra_plus_matt',
'extra + LINEN','extra_plus_linen',
'extra + FEEL','extra_plus_feel',
'extra + PURE','extra_plus_pure',
'Fauna','fauna',
'Flora','flora',
'Gautama','Gautama',
'heaven 42','HEAVEN42_Logo',
'HighSpeed matt','HighSpeed_matt',
'IGEPACOPY','igepa_copy',
'IGEPAgroup Logo Negativ','igepa_group_logo_negativ',
'IGEPAgroup Logo Positiv','igepa_group_logo_positiv',
'IGEPA Logo Negativ','igepa_logo_negativ',
'IGEPA Logo Positiv','igepa_logo_positiv',
'imago','imago',
'Incada Silk','incada_silk',
'Invercote Albato','invercote_albato',
'Invercote Creato matt','invercote_creato_matt',
'Invercote Duo','invercote_duo',
'Invercote G','invercote_g',
'KA-PWELL N 18','ka_pwell_n_18',
'KA-PWELL N 20','ka_pwell_n_20',
'maxibulk 1.1','Maxi_Bulk-1.1',
'maxigloss','maxi_gloss',
'Maxioffset','Maxi-Offset',
'Maxipreprint','Maxipreprint',
'maxisatin','maxi_satin',
'Maxiscript','Maxiscript',
'maxisatin','maxi_satin',
'maxisilk','Maxi_silk',
'MULTIFUNKTION','multifunktion',
'MUNKEN BOOK','munken_book',
'MUNKEN PRINT EXTRA','munken_print_extra',
'MUNKEN PRINT','munken_print',
'opakal','opakal',
'Optibulk 1.3','Optibulk_1.3',
'Optigloss','Optigloss',
'Optisilk','Optisilk',
'PROFIbulk 1.1','Profibulk_1.1',
'PROFIbulk 1.3','PROFIbulk1.3',
'PROFIgloss','profi_gloss',
'PROFImatt','profi_matt',
'PROFIsilk','profi_silk',
'relex','relex',
'ResaOffset','resaoffset',
'Robuskin','robuskin',
'SoporSet PREMIUM OFFSET','Soporset_Premium_Offset',
'SoporSet PRE-PRINT','Soporset_preprint',
'Spezial-Chromo-Duplexkarton','spezial_chromo_duplexkarton',
'STARDREAM','stardream',
'STARDREAM geprägt','stardream_gepraegt',
'SUMMERTIME','summertime',
'TREASURY','treasury',
'ZANDERS Bankpost', 'ZANDERS_Bankpost',
'ZANDERS CLASSIC', 'ZANDERS_CLASSIC',
'ZANDERS Gohrsmuehle', 'ZANDERS_Gohrsmuehle',
'ZANDERS Reflex Special', 'ZANDERS_Reflex_Special',
'ZANDERS Spectral', 'ZANDERS_Spectral',
'ZANDERS T2000', 'ZANDERS_T2000',
'ZANDERS ZETA', 'ZANDERS_ZETA'
);


var logo_categories = new Array(
																	'Wählen Sie eine Kategorie', '0',
																	'----------------------------', '0',
																	'IGEPAgroup', '1',
																	'----------------------------', '0',
																	'Bilderdruck matt', '2',
																	'Bilderdruck glänzend', '3',
																	'Naturpapiere', '4',
																	'Feinstpapiere', '5',
																	'Haftpapier/Kunststoff', '6',
																	'Kartei-/Elfenbeinkarton', '7',
																	'Bucheinband & Karton', '8',
																	'Bürokommunikation', '9',
																	'Karton', '10'
																);


var logos = new Array();

logos[0] = new Array(
											'Keine Kategorie gewählt', '0'
										);
//igepa-group-logos
logos[1] = new Array(
'Bitte wählen Sie ein Logo', '0',
'IGEPAgroup Logo Negativ','igepa_group_logo_negativ',
'IGEPAgroup Logo Positiv','igepa_group_logo_positiv',
'IGEPA Logo Negativ','igepa_logo_negativ',
'IGEPA Logo Positiv','igepa_logo_positiv'
										);
										
//bilderdruck matt
logos[2] = new Array(
'Bitte wählen Sie ein Logo', '0',
'BIANCA','bianca',
'Circle matt White','Circle_matt_White',
'Circle silk Premium White','Circle_silk_Premium_White',
'classic art','classic_art',
'classic naturel','classic_naturel',
'heaven 42','HEAVEN42_Logo',
'HighSpeed matt','HighSpeed_matt',
'maxibulk 1.1','Maxi_Bulk-1.1',
'maxisatin','maxi_satin',
'maxisilk','Maxi_silk',
'Optibulk 1.3','Optibulk_1.3',
'Optisilk','Optisilk',
'PROFIbulk 1.1','Profibulk_1.1',
'PROFIbulk 1.3','PROFIbulk1.3',
'PROFImatt','profi_matt',
'PROFIsilk','profi_silk'
										);
//bilderdruck glänzend
logos[3] = new Array(
'Bitte wählen Sie ein Logo', '0',
'Circle gloss Premium White','Circle_gloss_Premium_White',
'imago','imago',
'maxigloss','maxi_gloss',
'Optigloss','Optigloss',
'PROFIgloss','profi_gloss'
										);

//naturpapiere
logos[4] = new Array(
'Bitte wählen Sie ein Logo', '0',
'Caribic','caribic',
'carneval','carneval',
'Circle offset Premium White','Circle_offset_Premium_White',
'Circle offset White','Circle_offset_White',
'Circle preprint Premium White','Circle_preprint_Premium_White',
'CONTIPREPRINT','contipreprint',
'DESIGN OFFSET','design_offset',
'Maxioffset','Maxi-Offset',
'Maxipreprint','Maxipreprint',
'Maxiscript','Maxiscript',
'MUNKEN BOOK','munken_book',
'MUNKEN PRINT EXTRA','munken_print_extra',
'MUNKEN PRINT','munken_print',
'opakal','opakal',
'ResaOffset','resaoffset',
'SoporSet PREMIUM OFFSET','Soporset_Premium_Offset',
'SoporSet PRE-PRINT','Soporset_preprint'
	);

//feinstpapiere
logos[5] = new Array(
'Bitte wählen Sie ein Logo', '0',
'ATLANTIC','Atlantic',
'Chagall INSIZE','chagall_insize',
'Coffe to print','Coffe-to-print',
'CoverRidged','coverridged',
'Dali INSIZE','dali_insize',
'evergreen','evergreen',
'extra + DIGITAL', 'extra_plus_digital',
'extra + MATT','extra_plus_matt',
'extra + LINEN','extra_plus_linen',
'extra + FEEL','extra_plus_feel',
'extra + PURE','extra_plus_pure',
'Fauna','fauna',
'Flora','flora',
'Gautama','Gautama',
'relex','relex',
'STARDREAM','stardream',
'STARDREAM geprägt','stardream_gepraegt',
'SUMMERTIME','summertime',
'TREASURY','treasury',
'ZANDERS Bankpost', 'ZANDERS_Bankpost',
'ZANDERS CLASSIC', 'ZANDERS_CLASSIC',
'ZANDERS Gohrsmuehle', 'ZANDERS_Gohrsmuehle',
'ZANDERS Reflex Special', 'ZANDERS_Reflex_Special',
'ZANDERS Spectral', 'ZANDERS_Spectral',
'ZANDERS T2000', 'ZANDERS_T2000',
'ZANDERS ZETA', 'ZANDERS_ZETA'
	);
	
//haftpapier
logos[6] = new Array(
'Bitte wählen Sie ein Logo', '0',
'Robuskin','robuskin'
	);
		
//Kartei-/Elfenbeinkarton
logos[7] = new Array(
'Bitte wählen Sie ein Logo', '0',
'CartaTyp','carta_typ'
	);


//bucheinband
logos[8] = new Array(
'Bitte wählen Sie ein Logo', '0',
'Incada Silk','incada_silk',
'Invercote Albato','invercote_albato',
'Invercote Creato matt','invercote_creato_matt',
'Invercote Duo','invercote_duo',
'Invercote G','invercote_g'
	);

//bürokommunikation
logos[9] = new Array(
'Bitte wählen Sie ein Logo', '0',
'CONTIFARBLASER','contifarblaser',
'CONTIFOL','contifol',
'CONTIJET','contijet',
'CONTILABEL','contilabel',
'CONTINENTAL LX','continental_lx',
'IGEPACOPY','igepa_copy',
'MULTIFUNKTION','multifunktion'
	);

//karton
logos[10] = new Array(
'Bitte wählen Sie ein Logo', '0',
'KA-PWELL N 18','ka_pwell_n_18',
'KA-PWELL N 20','ka_pwell_n_20',
'Spezial-Chromo-Duplexkarton','spezial_chromo_duplexkarton'
);

										
function show_logo(id)
{
	if (id != 0) {
		document.images['logoimage'].src = 'thumbs/'+id+'.gif';
		
		d = document.getElementById('logo_download');
		d.innerHTML = '<img src="/images/icon_weiter.gif" width="15" height="7" border="0"> <a href="dl/'+id+'.zip" class="intern">Download</a><span class="copy-main"> (EPS / gezipped)</span>'; 
		
		
	} else {
		document.images['logoimage'].src = '/images/spacer.gif';
		d = document.getElementById('logo_download');
		d.innerHTML = '';
	}
	return(false);
}
	
function update_logos(id)
{
	logos_select = document.forms['logo_categories']['logos'];
	categories_select = document.forms['logo_categories']['categories'];
	if (id == 0) {
		categories_select.selectedIndex = id;
	}
	
	//clear logos_select
	for (i = logos_select.length; i >= 0; i--) {
				logos_select.options[i]=null;
	}

	//fill logos_select

	j=0;
	for (i = 0; i < logos[id].length/2; i++) {
		opt = new Option(logos[id][j], logos[id][j+1]);
		logos_select.options[i] = opt;
		j+=2;
	}
	document.images['logoimage'].src = '/images/spacer.gif';
	d = document.getElementById('logo_download');
		d.innerHTML = '';
}

function init_logos()
{	
	categories_select = document.forms['logo_categories']['categories'];
	
	//clear categories_select
	for (i = categories_select.length; i >= 0; i--) {
			categories_select.options[i]=null;
	}
	
	//fill categories_select
	j=0;
	for (i = 0; i < logo_categories.length/2; i++) {
			opt = new Option(logo_categories[j], logo_categories[j+1]);
			categories_select.options[i] = opt;
			j+=2;
	}
	//logos_select init
	update_logos(0);
	
	
	logo_alpha_select = document.forms['logos_alphabet']['logo_alpha'];
	//fill logo_alpha_select
		j=0;
		for (i = 0; i < logo_alphabet.length/2; i++) {
				opt = new Option(logo_alphabet[j], logo_alphabet[j+1]);
				logo_alpha_select.options[i] = opt;
				j+=2;
	}
}