// JavaScript Document
var EBX = new Object();
var EBXArray = new Array(name);

EBX.ListItem = function(style, cal, grain, ebx_a, ebx_b, ebx_c, ebx_d)
{
	this.style = style;
	this.cal = cal;
	this.grain = grain;
	this.ebx_a = ebx_a;
	this.ebx_b = ebx_b;
	this.ebx_c = ebx_c;
	this.ebx_d = ebx_d;
}

EBX.Init = function()
{
	EBX.ListDetails(name);	
}

EBX.ListDetails = function(name)
{
	var writeOut = "";
	
	try
	{
		writeOut += "<table width=\"500\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
		writeOut += "<tr width=\"500\">\n";
		writeOut += "<td width=\"180\">CALIBER</td>";
		writeOut += "<td width=\"60\" align=\"center\">GRAIN WT.</td>";
		writeOut += "<td width=\"50\" align=\"center\">EBX&#8482; <span class=\"EBXletter\">A</span></td>";
		writeOut += "<td width=\"50\" align=\"center\">EBX&#8482; <span class=\"EBXletter\">B</span></td>";
		writeOut += "<td width=\"50\" align=\"center\">EBX&#8482; <span class=\"EBXletter\">C</span></td>";
		writeOut += "<td width=\"50\" align=\"center\">EBX&#8482; <span class=\"EBXletter\">D</span></td>\n";
		writeOut += "</tr>";
		
		if(EBXArray[name].length > 0)
		{
			
			for(var i=0; i < EBXArray[name].length; i++)
			{
				writeOut += "<tr width=\"500\" class=\"" + EBXArray[name][i].style + "\">\n";
				writeOut += "<td width=\"180\">" + EBXArray[name][i].cal + "</td>\n";
				writeOut += "<td width=\"60\" align=\"center\">" + EBXArray[name][i].grain + "</td>\n";
				writeOut += "<td width=\"50\" align=\"center\">" + EBXArray[name][i].ebx_a + "</td>\n";
				writeOut += "<td width=\"50\" align=\"center\">" + EBXArray[name][i].ebx_b + "</td>\n";				
				writeOut += "<td width=\"50\" align=\"center\">" + EBXArray[name][i].ebx_c + "</td>\n";
				writeOut += "<td width=\"50\" align=\"center\">" + EBXArray[name][i].ebx_d + "</td>\n";
				writeOut += "</tr>\n";
			}
		}
		else
		{
			writeOut += "<tr>\n";
			writeOut += "<td><p>There is no information at this time.</p></td>\n";
			writeOut += "</tr>\n";
		}
		writeOut += "</table>\n";
	}
	catch(e){
	}
	document.getElementById("content").innerHTML = writeOut;
}

//-----------------------------------------------------------------------------------------------------
EBXArray["223_rem"] = new Array(
	new EBX.ListItem("odd", "223 Rem. (5.56x45mm)","60","200","295","375","450")
);
EBXArray["22-250_rem"] = new Array(
	new EBX.ListItem("odd", "22-250 Rem.","60","200","315","415","500")
);
EBXArray["243_win"] = new Array(
	new EBX.ListItem("odd", "243 Win. (6.16x51mm)","85","200","320","425","525"),
	new EBX.ListItem("even", "243 Win. (6.16x51mm)","95","200","305","405","505"),
	new EBX.ListItem("odd", "243 Win. (6.16x51mm)","100","200","305","405","505")
);

EBXArray["6mm_rem"] = new Array( 
	new EBX.ListItem("odd", "6mm Rem.", "100", "200", "310", "415", "520")
);
					 
EBXArray["257_roberts"] = new Array( 
	new EBX.ListItem("odd", "257 Roberts", "120", "200", "290", "375", "465")
);

EBXArray["25-06_rem"] = new Array(  
	new EBX.ListItem("odd", "25-06 Rem.", "100", "200", "320", "440", "550"),
	new EBX.ListItem("even", "25-06 Rem.", "115", "200", "305", "405", "510")
);

EBXArray["260_rem"] = new Array(  
	new EBX.ListItem("odd", "260 Rem.", "120", "200", "300", "400", "500"),
	new EBX.ListItem("even", "260 Rem.", "140", "200", "300", "400", "500")
);

EBXArray["270_win"] = new Array(  
	new EBX.ListItem("odd", "270 Win.", "110", "200", "330", "455", "570"),
	new EBX.ListItem("even", "270 Win.", "130", "200", "315", "420", "525"),
	new EBX.ListItem("odd", "270 Win.", "140", "200", "310", "410", "520"),
	new EBX.ListItem("even", "270 Win.", "150", "200", "295", "395", "490")
);

EBXArray["270_win_short_magnum"] = new Array(  
	new EBX.ListItem("odd", "270 Win. Short Magnum", "110", "200", "340", "470", "590"),
	new EBX.ListItem("even", "270 Win. Short Magnum", "130", "200", "330", "455", "570"),
	new EBX.ListItem("odd", "270 Win. Short Magnum", "140", "200", "325", "450", "570"),
	new EBX.ListItem("even", "270 Win. Short Magnum", "150", "200", "315", "430", "540")
);

EBXArray["270_weatherby_magnum"] = new Array(  
	new EBX.ListItem("odd", "270 Weatherby Magnum", "130", "200", "320", "440", "555"),
	new EBX.ListItem("even", "270 Weatherby Magnum", "140", "200", "320", "435", "550")
);

EBXArray["7-30_waters"] = new Array(  
	new EBX.ListItem("odd", "7-30 Waters", "120", "200", "265", "325", "385")
);

EBXArray["7mm_mauser"] = new Array(  
	new EBX.ListItem("odd", "7mm Mauser (7x57mm Mauser)", "140", "200", "285", "365", "450")    
);

EBXArray["7mm-08_rem"] = new Array(  
	new EBX.ListItem("odd", "7mm-08 Rem.", "140", "200", "290", "385", "475")
);

EBXArray["280_rem"] = new Array(  
	new EBX.ListItem("odd", "280 Rem.", "140", "200", "310", "420", "525"),
	new EBX.ListItem("even", "280 Rem.", "150", "200", "300", "400", "500"),
	new EBX.ListItem("odd", "280 Rem.", "160", "200", "295", "395", "495")
);

EBXArray["7mm_rem_magnum"] = new Array(  
	new EBX.ListItem("odd", "7mm Rem. Magnum", "140", "200", "320", "435", "550"),
	new EBX.ListItem("even", "7mm Rem. Magnum", "150", "200", "315", "425", "535"),
	new EBX.ListItem("odd", "7mm Rem. Magnum", "160", "200", "305", "410", "515"),
	new EBX.ListItem("even", "7mm Rem. Magnum", "175", "200", "285", "375", "460")
);

EBXArray["7mm_win_short_magnum"] = new Array(  
	new EBX.ListItem("odd", "7mm Win. Short Magnum", "140", "200", "335", "465", "590"),
	new EBX.ListItem("even", "7mm Win. Short Magnum", "160", "200", "320", "440", "555")
);

EBXArray["7mm_weatherby_magnum"] = new Array(  
	new EBX.ListItem("odd", "7mm Weatherby Magnum", "160", "200", "320", "435", "555")    
);

EBXArray["7mm_stw"] = new Array(  
	new EBX.ListItem("odd", "7mm STW", "160", "200", "320", "440", "555")    
);

EBXArray["30-30_win"] = new Array(  
	new EBX.ListItem("odd", "30-30 Win.", "170", "100", "165", "220", "275")    
);

EBXArray["308_win"] = new Array(  
	new EBX.ListItem("odd", "308 Win. (7.62x51mm)", "150", "200", "295", "385", "480"),
	new EBX.ListItem("even", "308 Win. (7.62x51mm)", "165", "200", "285", "370", "450"),
	new EBX.ListItem("odd", "308 Win. (7.62x51mm)", "180", "200", "285", "370", "455")
);

EBXArray["30-06_spring"] = new Array(  
	new EBX.ListItem("odd", "30-06 Spring. (7.62x63mm)", "150", "200", "300", "400", "500"),
	new EBX.ListItem("even", "30-06 Spring. (7.62x63mm)", "165", "200", "290", "380", "470"),
	new EBX.ListItem("odd", "30-06 Spring. (7.62x63mm)", "180", "200", "290", "380", "470")
);

EBXArray["300_h_h_magnum"] = new Array(  
	new EBX.ListItem("odd", "300 H&H Magnum", "180", "200", "290", "380", "470")
);

EBXArray["300_win_magnum"] = new Array(  
	new EBX.ListItem("odd", "300 Win. Magnum", "130", "200", "340", "465", "580"),
	new EBX.ListItem("even", "300 Win. Magnum", "165", "200", "310", "415", "515"),
	new EBX.ListItem("odd", "300 Win. Magnum", "180", "200", "310", "415", "520"),
	new EBX.ListItem("even", "300 Win. Magnum", "200", "200", "285", "365", "450")
);

EBXArray["300_win_short_magnum"] = new Array(  
	new EBX.ListItem("odd", "300 Win. Short Magnum", "130", "200", "340", "460", "575"),
	new EBX.ListItem("even", "300 Win. Short Magnum", "150", "200", "325", "445", "560"),
	new EBX.ListItem("odd", "300 Win. Short Magnum", "165", "200", "315", "425", "530"),
	new EBX.ListItem("even", "300 Win. Short Magnum", "180", "200", "310", "415", "520")
);

EBXArray["300_weatherby_magnum"] = new Array(  
	new EBX.ListItem("odd", "300 Weatherby Magnum", "180", "200", "320", "435", "550")
);

EBXArray["300_rem_ultra_magnum"] = new Array(  
	new EBX.ListItem("odd", "300 Rem. Ultra Magnum", "180", "200", "320", "435", "550"),
	new EBX.ListItem("even", "300 Rem. Ultra Magnum", "200", "200", "320", "435", "550")
);

EBXArray["338_federal"] = new Array(  
	new EBX.ListItem("odd", "338 Federal", "180", "200", "290", "380", "465"),
	new EBX.ListItem("even", "338 Federal", "185", "200", "285", "365", "445"),
	new EBX.ListItem("odd", "338 Federal", "210", "200", "280", "360", "440")
);

EBXArray["338_win_magnum"] = new Array(  
	new EBX.ListItem("odd", "338 Win. Magnum", "180", "200", "310", "415", "520"),
	new EBX.ListItem("even", "338 Win. Magnum", "210", "200", "290", "385", "475"),
	new EBX.ListItem("odd", "338 Win. Magnum", "225", "200", "300", "385", "495")
);

EBXArray["338_rem_ultra_magnum"] = new Array(  
	new EBX.ListItem("odd", "338 Rem. Ultra Magnum", "210", "200", "310", "410", "515"),
	new EBX.ListItem("even", "338 Rem. Ultra Magnum", "225", "200", "315", "430", "545")
);

EBXArray["35_whelen"] = new Array(  
	new EBX.ListItem("odd", "35 Whelen", "225", "200", "275", "350", "420")
);

EBXArray["375_h_h_magnum"] = new Array(  
	new EBX.ListItem("odd", "375 H&H Magnum", "250", "200", "275", "355", "430"),
	new EBX.ListItem("even", "375 H&H Magnum", "260", "200", "285", "375", "465")
);
