// JavaScript Document
<!--

/*

14" Medium Crash	       	cymbals_meinl_soundcaster_crash_14_mod	£99.00
15" Medium Crash			cymbals_meinl_soundcaster_crash_15_mod	£111.00
16" Thin/Medium Crash		cymbals_meinl_soundcaster_crash_16_mod	£139.00
17" Medium/Powerful Crash	cymbals_meinl_soundcaster_crash_17_mod	£149.00
18" Medium/Powerful Crash	cymbals_meinl_soundcaster_crash_18_mod	£159.00
19" Powerful Crash			cymbals_meinl_soundcaster_crash_19_mod	£179.00
20" Powerful Crash			cymbals_meinl_soundcaster_crash_20_mod	£199.00

*/

// Stock availablity

var crash14medium = "(5-7 days)";

var crash15medium = "(5-7 days)";

var crash16medium = "(IN STOCK)";
var crash16thin = "(5-7 days)";
var crash16fusion = "(5-7 days)";

var crash17medium = "(5-7 days)";
var crash17powerful = "(5-7 days)";

var crash18medium = "(5-7 days)";
var crash18powerful = "(5-7 days)";
var crash18fusion = "(5-7 days)";

var crash19powerful = "(5-7 days)";

var crash20powerful = "(5-7 days)";


/* Global variables */

var brand = "meinl";
var subbrand = "soundcaster";
var type = "crash";
var image = "cymbals_"+brand+"_"+subbrand+"_"+type+".jpg";

/* END Global variables */


// Stock availablity

function fill_promos(){

// copy from here
var x = 14;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "119";
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 = 15;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "139";
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 = 16;
var itemcode = "cymbals_"+brand+"_"+subbrand+"_"+type+"_"+x+"_mod";
var price = "165";
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 = "175";
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 = "189";
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 = "219";
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 = "239";
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==14){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium>"+subbrand+" medium "+type+" "+crash14medium+"</option></select>");
	}
	
	if (x==15){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium>"+subbrand+" medium "+type+" "+crash15medium+"</option></select>");
	}
	
	if (x==16){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=thin>"+subbrand+" thin "+type+" "+crash16thin+"</option><option value=medium>"+subbrand+" medium "+type+" "+crash16medium+"</option><option value=fusion>"+subbrand+" fusion "+type+" "+crash16fusion+"</option></select>");
	}
	
	if (x==17){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium>"+subbrand+" medium "+type+" "+crash17medium+"</option><option value=powerful>"+subbrand+" powerful "+type+" "+crash17powerful+"</option></select>");
	}
	
	if (x==18){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=medium>"+subbrand+" medium "+type+" "+crash18medium+"</option><option value=powerful>"+subbrand+" powerful "+type+" "+crash18powerful+"</option><option value=fusion>"+subbrand+" fusion "+type+" "+crash18fusion+"</option></select>");
	}

	if (x==19){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=powerful>"+subbrand+" powerful "+type+" "+crash19powerful+"</option></select>");
	}
	
	if (x==20){
	document.write("<select id=cymbals_"+brand+"_"+subbrand+"_"+x+type+"_selector><option value=powerful>"+subbrand+" powerful "+type+" "+crash20powerful+"</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+'_'+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==15){
	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==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 *********

//-->

