// JavaScript Document
<!--

/*

18" Rock China	cymbals_meinl_mb20_china_18_mod	£199.00
20" Rock China	cymbals_meinl_mb20_china_20_mod	£239.00

*/

// Stock availablity

var china18rock = "(5-7 days)";
var china20rock = "(5-7 days)";


/* Global variables */

var brand = "meinl";
var subbrand = "mb20";
var type = "china";
var image = "cymbals_"+brand+"_"+subbrand+"_"+type+".jpg";

/* END Global variables */


// Stock availablity

function fill_promos(){

// 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 = 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==18){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=rock>"+subbrand+" rock "+type+" "+china18rock+"</option></select>");
	}
	
	if (x==20){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=rock>"+subbrand+" rock "+type+" "+china20rock+"</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==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==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 *********

//-->

