// JavaScript Document
<!--

/*

14" China						cymbals_meinl_byzance_t_china_14_mod	£105.00
16" China Traditional/Brilliant	cymbals_meinl_byzance_t_china_16_mod	£145.00
18" China Traditional/Brilliant	cymbals_meinl_byzance_t_china_18_mod	£179.00
20 " China						cymbals_meinl_byzance_t_china_20_mod	£229.00

*/

// Stock availablity

var china14 = "(5-7 days)";
var china16traditional = "(5-7 days)";
var china18traditional = "(5-7 days)";
var china20 = "(5-7 days)";

/* Global variables */

var brand = "meinl";
var subbrand = "byzance";
var subsubband = "t";
var type = "china";
var image = "cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+type+".jpg";

/* END Global variables */


// Stock availablity

function fill_promos(){

// copy from here
var x = 14;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+type+"_"+x+"_mod";
var price = "140";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+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 = 16;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+type+"_"+x+"_mod";
var price = "204";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+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+"_"+subsubband+"_"+type+"_"+x+"_mod";
var price = "281";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+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+"_"+subsubband+"_"+type+"_"+x+"_mod";
var price = "307";

document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_price').innerHTML = price+" "; // Price
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_image').src = "img/"+brand+"_cymbals/"+image; // Image file location
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_details').innerHTML = ""; // Product details
document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+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==14){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+x+type+"_selector><option value=china>"+subbrand+" "+type+" "+china14+"</option></select>");
	}
	
	if (x==16){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+x+type+"_selector><option value=china_tradtional>"+subbrand+" traditional "+type+" "+china16traditional+"</option></select>");
	}
	
	if (x==18){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+x+type+"_selector><option value=china_tradtional>"+subbrand+" traditional "+type+" "+china18traditional+"</option></select>");
	}
	
	if (x==20){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+subsubband+"_"+x+type+"_selector><option value=china>"+subbrand+" "+type+" "+china20+"</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==14){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}
	if (x==16){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}
	if (x==18){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}
if (x==20){
	var a = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_landing').href;
	var b = document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').options[document.getElementById('cymbals_'+brand+'_'+subbrand+'_'+subsubband+'_'+x+type+'_selector').selectedIndex].value;
	window.location = a + "&itemname2=" + b;
	}

	
	
	

}

// ********* NEW modifiers coding DO NOT CHANGE ABOVE *********

//-->

