// JavaScript Document
<!--

/*

16" Medium Heavy/Heavy Crash	cymbals_meinl_mb20_crash_16_mod	£179.00
17" Heavy Crash					cymbals_meinl_mb20_crash_17_mod	£189.00
18" Medium Heavy/Heavy Crash	cymbals_meinl_mb20_crash_18_mod	£199.00
19" Heavy crash					cymbals_meinl_mb20_crash_19_mod	£219.00
20" Medium Heavy/Heavy Crash	cymbals_meinl_mb20_crash_20_mod	£239.00

*/

// Stock availablity

var crash16medium_heavy = "(5-7 days)";
var crash16heavy = "(5-7 days)";

var crash17heavy = "(5-7 days)";

var crash18medium_heavy = "(5-7 days)";
var crash18heavy = "(5-7 days)";

var crash19heavy = "(5-7 days)";

var crash20medium_heavy = "(5-7 days)";
var crash20heavy = "(5-7 days)";

/* Global variables */

var brand = "meinl";
var subbrand = "mb20";
var type = "crash";
var image = "cymbals_"+brand+"_"+subbrand+"_"+type+".jpg";

/* END Global variables */


// Stock availablity

function fill_promos(){

// copy from here
var x = 16;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "207";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href = "http://www.romancart.com/cart.asp?storeid=20377&itemcode="+itemcode+"&quantity=1"; // Landing page from add to basket within quotes
// copy to here

// copy from here
var x = 17;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "233";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href = "http://www.romancart.com/cart.asp?storeid=20377&itemcode="+itemcode+"&quantity=1"; // Landing page from add to basket within quotes
// copy to here

// copy from here

var x = 18;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "255";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href = "http://www.romancart.com/cart.asp?storeid=20377&itemcode="+itemcode+"&quantity=1"; // Landing page from add to basket within quotes
// copy to here

// copy from here

var x = 19;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "289";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href = "http://www.romancart.com/cart.asp?storeid=20377&itemcode="+itemcode+"&quantity=1"; // Landing page from add to basket within quotes
// copy to here


// copy from here

var x = 20;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "318";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href = "http://www.romancart.com/cart.asp?storeid=20377&itemcode="+itemcode+"&quantity=1"; // Landing page from add to basket within quotes
// copy to here




}

// ********* NEW modifiers coding DO NOT CHANGE BELOW *********

function renderDrop(x){ // this is where all the modifier selections are rendered into the HTML - see me if you need to change any of these modifiers in romancart

	if (x==16){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium_heavy>"+subbrand+" medium heavy "+type+" "+crash16medium_heavy+"</option><option value=heavy>"+subbrand+" heavy "+type+" "+crash16heavy+"</option></select>");
	}
	
	if (x==17){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=heavy>"+subbrand+" heavy "+type+" "+crash17heavy+"</option></select>");
	}
	
	if (x==18){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium_heavy>"+subbrand+" medium heavy "+type+" "+crash18medium_heavy+"</option><option value=heavy>"+subbrand+" heavy "+type+" "+crash18heavy+"</option></select>");
	}
	
	if (x==19){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=heavy>"+subbrand+" heavy "+type+" "+crash19heavy+"</option></select>");
	}
	
	if (x==20){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium_heavy>"+subbrand+" medium heavy "+type+" "+crash20medium_heavy+"</option><option value=heavy>"+subbrand+" heavy "+type+" "+crash20heavy+"</option></select>");
	}

	
	
	
}

function sendMod(x){ // this is what sends the modifiers to romancart - see me if you need to add or remove any cymbals from this range
	if (x==16){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}
	if (x==17){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}
if (x==18){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}

if (x==19){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}

if (x==20){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}

	
	
	

}

// ********* NEW modifiers coding DO NOT CHANGE ABOVE *********

//-->

