function preload() {
var tnt1;
var tnt2;
var tnt3;
tnt1 = new Image();
tnt2 = new Image();
tnt3 = new Image();
tnt1.src = "../img/various/lin_double.gif";
tnt2.src = "../img/various/lin_double_2.gif";
tnt3.src = "../img/various/lin_double_3.gif";
}

function comment(work,ln) {
  window.open('competition/comment.php?ln='+ln+'&work='+work, 'Comments', config='height=600,width=400,toolbar=no,menubar=no,resizable=no,location=no,status=no,scrollbars=yes');
}

function master_vote(work,ln) {
  window.open('competition/master_voting.php?ln='+ln+'&id='+work, 'Comments', config='height=700,width=550,toolbar=no,menubar=no,resizable=no,location=no,status=no,scrollbars=yes');
}

function swap(aidi,pic1,pic2) {
if (document.all) {
eval("document."+pic1+".src='../img/various/lin_double_3.gif'");
eval("document."+pic2+".src='../img/various/lin_double_2.gif'");
eval("document.all."+aidi+".style.backgroundColor='fbf9d9'");
}
else {
eval("document."+pic1+".src='../img/various/lin_double_3.gif'");
eval("document."+pic2+".src='../img/various/lin_double_2.gif'");
eval('document.getElementById("' + aidi + '").style.backgroundColor="fbf9d9"');
}
}

function unswap(aidi,pic1,pic2) {
if (document.all) {
eval("document."+pic1+".src='../img/various/lin_double.gif'");
eval("document."+pic2+".src='../img/various/lin_double.gif'");
eval("document.all."+aidi+".style.backgroundColor='d4dfff'");
}
else {
eval("document."+pic1+".src='../img/various/lin_double.gif'");
eval("document."+pic2+".src='../img/various/lin_double.gif'");
eval('document.getElementById("' + aidi + '").style.backgroundColor="d4dfff"');
}
}
