//Productname to Categoryname table
var catDB = { 
	'Compact Pedals' : "OD-3 / OS-2 / SD-1 / BD-2 / DN-2 / DS-2 / DS-1 / MT-2 / MD-2 / ML-2 / FZ-5 / DD-7 / DD-3 / RV-5 / CE-5 / CH-1 / BF-3 / PH-3 / TR-2 / GE-7 / AW-3 / AC-3 / CS-3 / PS-5 / OC-3 / ODB-3 / CEB-3 / LMB-3 / GEB-7 / SYB-5 / RC-2 / NS-2 / LS-2 / TU-3",
	'Legend Series' : "FBM-1 / FDR-1 / FRV-1",
	'Twin Pedals Series' : "VE-20 / SL-20 / RE-20 / RT-20 / OD-20 / CE-20 / EQ-20 / RC-20XL / DD-20",
	'Multi-Effects' : "GT-Pro / GT-10 / ME-70 / ME-25 / GT-10B / ME-50B / ME-20B",
	'Wah / Volume & Loop Stations' : "PW-10 / FV-500H / FV-500L / RC-50 / RC-20XL / RC-2",
	' Audio Players / Recorders' : "eBand JS-8 / BR-1600CD Version 2 / BR-1200CD / BR-900CD Version 2 / BR-600 / MICRO BR",
	'Rhythm Machines & Metoronomes' : "DR-880 / DR-670 / DB-90 / DB-60 / DB-30",
	'Tuners' : "TU-1000 / TU-15 / TU-12BW / TU-12EX / TU-88 / TU-80 / TU-3",
	'Accessories' : "DI-1 / BCB-60 / FS-5U / FS-5L / FS-6 / AB-2 / FV-500H / FV-500L / FV-50H / FV-50L / FC-300 / GFC-50",
	'GK Equipments by Roland' : "VG-99 / FC-300 / V-Bass / GR-20 / GI-20 / GK-3 / GK-3B / US-20 /GKP-4",
	'Amplifiers by Roland' : "JC-120 / AC-90 / AC-60 / AC-33 / CUBE-60 / CUBE-80X / CUBE-30X / CUBE-20X / CUBE-15X / MICRO CUBE RX / Micro-CUBE / D-BASS 210 / D-BASS 115 / D-BASS 115X / CUBE-100 BASS / CUBE-30 BASS / MICRO CUBE BASS RX / CUBE Street / MOBILE CUBE / CM-30"
}

//Category to Filename table
var fnDB = { 
	'Compact Pedals' : "p_compactpedals.html",
	'Legend Series' : "p_legend.html",
	'Twin Pedals Series' : "p_twinpedals.html",
	'Multi-Effects' : "p_multieffects.html",
	'Wah / Volume & Loop Station' : "p_loopstation.html",
	'Audio Players / Recorders' : "p_recording.html",
	'Rhythm Machines & Metoronomes' : "p_rhythm.html",
	'Tuners' : "p_tuners.html",
	'Accessories' : "p_accessories.html",
	'GK Equipments by Roland' : "p_gk_equip.html",
	'Amplifiers by Roland' : "p_amplifiers.html"
}

//
function  getMyCat(PN){
		var prdName=PN;	
		var myCategory;
		var key;

		for (key in catDB) {
			if(catDB[key].match(prdName)) {
				myCategory=key;
				break;
			}
		}
		return myCategory;
}


function putSubtopic(PN) {
		myCategory=getMyCat(PN);
		

		if (myCategory == 'Compact Pedals') {
			document.write('<a href="../p_compactpedals.html"><img src="../images/button_p_cpedals_a.gif" width="171" height="21" alt="Compact Pedals" border="0"></a><br>');
		} else {
			document.write('<a href="../p_compactpedals.html"><img src="../images/button_p_cpedals.gif" width="171" height="21" alt="Compact Pedals" border="0"></a><br>');
		}

		if (myCategory == 'Legend Series') {
			document.write('<a href="../p_legend.html"><img src="../images/button_p_legend_a.gif" width="171" height="21" alt="Legend Series" border="0"></a><br>');
		} else {
			document.write('<a href="../p_legend.html"><img src="../images/button_p_legend.gif" width="171" height="21" alt="Legend Series" border="0"></a><br>');
		}

		if (myCategory == 'Twin Pedals Series') {
			document.write('<a href="../p_twinpedals.html"><img src="../images/button_p_twinpedals_a.gif" width="171" height="21" alt="Twin Pedals Series" border="0"></a><br>');
		} else {
			document.write('<a href="../p_twinpedals.html"><img src="../images/button_p_twinpedals.gif" width="171" height="21" alt="Twin Pedals Series" border="0"></a><br>');
		}

		if (myCategory == 'Multi-Effects') {
			document.write('<a href="../p_multieffects.html"><img src="../images/button_p_meffects_a.gif" width="171" height="21" alt="Multi-Effects" border="0"></a><br>');
		} else {
			document.write('<a href="../p_multieffects.html"><img src="../images/button_p_meffects.gif" width="171" height="21" alt="Multi-Effects" border="0"></a><br>');
		}

		if (myCategory == 'Wah / Volume & Loop Stations') {
			document.write('<a href="../p_loopstation.html"><img src="../images/button_p_loopstation_a.gif" width="171" height="21" alt="Wah / Volume & Loop Stations" border="0"></a><br>');
		} else {
			document.write('<a href="../p_loopstation.html"><img src="../images/button_p_loopstation.gif" width="171" height="21" alt="Wah / Volume & Loop Stations" border="0"></a><br>');
		}

		if (myCategory == 'Digital Recorder') {
			document.write('<a href="../p_recording.html"><img src="../images/button_p_recorder_a.gif" width="171" height="21" alt="Digital Recorder" border="0"></a><br>');
		} else {
			document.write('<a href="../p_recording.html"><img src="../images/button_p_recorder.gif" width="171" height="21" alt="Digital Recorder" border="0"></a><br>');
		}

		if (myCategory == 'Rhythm Machines & Metoronomes') {
			document.write('<a href="../p_rhythm.html"><img src="../images/button_p_rhythm_a.gif" width="171" height="21" alt="Rhythm Machines & Metronomes" border="0"></a><br>');
		} else {
			document.write('<a href="../p_rhythm.html"><img src="../images/button_p_rhythm.gif" width="171" height="21" alt="Rhythm Machines & Metronomes" border="0"></a><br>');
		}

		if (myCategory == 'Tuners') {
			document.write('<a href="../p_tuners.html"><img src="../images/button_p_tuners_a.gif" width="171" height="21" alt="Tuners" border="0"></a><br>');
		} else {
			document.write('<a href="../p_tuners.html"><img src="../images/button_p_tuners.gif" width="171" height="21" alt="Tuners" border="0"></a><br>');
		}

		if (myCategory == 'Accessories') {
			document.write('<a href="../p_accessories.html"><img src="../images/button_p_accesorries_a.gif" width="171" height="21" alt="Accessories" border="0"></a><br>');
		} else {
			document.write('<a href="../p_accessories.html"><img src="../images/button_p_accesorries.gif" width="171" height="21" alt="Accessories" border="0"></a><br>');
		}

		if (myCategory == 'GK Equipments by Roland') {
			document.write('<a href="../p_gk_equip.html"><img src="../images/button_p_gk_equip_a.gif" width="171" height="21" alt="GK Equipments by Roland" border="0"></a><br>');
		} else {
			document.write('<a href="../p_gk_equip.html"><img src="../images/button_p_gk_equip.gif" width="171" height="21" alt="GK Equipments by Roland" border="0"></a><br>');
		}

		if (myCategory == 'Amplifiers by Roland') {
			document.write('<a href="../p_amplifiers.html"><img src="../images/button_p_amplifiers_a.gif" width="171" height="21" alt="Amplifiers by Roland" border="0"></a><br>');
		} else {
			document.write('<a href="../p_amplifiers.html"><img src="../images/button_p_amplifiers.gif" width="171" height="21" alt="Amplifiers by Roland" border="0"></a><br>');
		}
}
