

var picdir; var styleid;
if (location.href.indexOf('1.html') > 0 || location.href.indexOf('1_') > 0) {picdir = "p1"; styleid = "hatter1"}
else if (location.href.indexOf('2.html') > 0 || location.href.indexOf('2_') > 0) {picdir = "p2"; styleid = "hatter2"}
else if (location.href.indexOf('3.html') > 0 || location.href.indexOf('3_') > 0) {picdir = "p3"; styleid = "hatter3"}
else if (location.href.indexOf('4.html') > 0 || location.href.indexOf('4_') > 0) {picdir = "p4"; styleid = "hatter4"}
else if (location.href.indexOf('5.html') > 0 || location.href.indexOf('5_') > 0) {picdir = "p5"; styleid = "hatter5"}
else {picdir = "p0"; styleid = "hatter0"}

function settoppic() {
document.getElementById('toppic1').src = '../images/' + picdir + '/a11.jpg';
document.getElementById('toppic2').src = '../images/' + picdir + '/a12.jpg';
document.getElementById('toppic3').src = '../images/' + picdir + '/a13.jpg';
document.getElementById('toppic4').src = '../images/' + picdir + '/a21.jpg';
document.getElementById('toppic6').src = '../images/' + picdir + '/a23.jpg';
document.getElementById('toppic5').style.backgroundImage = 'url("http://www.novinex.hu/images/' + picdir + '/a22.jpg")';
}

