I am looking for some help for my website. I am using arrays to hold different categories for my images but when I load my website it doesn't show the images it comes up with the broken link. How can I fix this? The website http://tacticalcards.esy.es/
HTML
<button class="open" onclick="pack100()">Open £250 Cards.</button>
<br />
<div class=card-group>
<img class="card" src="http://tacticalcards.esy.es/images/blank.png" id="cp1" />
<p>Worth: £<span id="w1">0</span></p>
</div>
JAVASCRIPT
var bronze = "http://tacticalcards.esy.es/images/a.k.a.bronze.jpg";
var silver = new Array("http://tacticalcards.esy.es/images/ssgsilver.jpg","http://tacticalcards.esy.es/images/tacticalknife.silver.jpg","http://tacticalcards.esy.es/images/clockpistol.silver.jpg");
var gold = new Array("http://tacticalcards.esy.es/images/a.w.p.gold.jpg","http://tacticalcards.esy.es/images/m4ai-s.gold.jpg");
var legends = "http://tacticalcards.esy.es/images/karambitee.jpg";
var cards = new Array(bronze, silver, gold, legends);
function pack100(){
var c1 = Math.floor(Math.random() * cards.length);
document.getElementById("cp1").src = cards[c1];
var cp1 = document.getElementById('cp1').src;
if (cp1 == bronze){
profit += 25;
document.getElementById("w1").innerHTML = 25;
document.getElementById("profit").innerHTML = profit;
};
if (cp1 silver){
profit +=50 ;
document.getElementById("w1").innerHTML = 50;
document.getElementById("profit").innerHTML = profit;
};
if (cp1 == gold){
profit += 100;
document.getElementById("w1").innerHTML = 100;
document.getElementById("profit").innerHTML = profit;
};
if (cp1 == legends){
profit += 250;
document.getElementById("w1").innerHTML = 250;
document.getElementById("profit").innerHTML = profit;
};
};
cards[c1]will be an array at indexc1objectinstead of array which could be differentiated usingkey