
// this is where we do jQuery magic.
$('a.bg-link').click(function(){
  // this happens everytime a link with class 'bg-link' is clicked
  var str = null;
  if ($(this).is('#link1')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link2')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link3')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link4')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link5')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link6')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link7')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link8')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link9')) { str = 'url(navi/listing-item-selected.png)'; }
  if ($(this).is('#link10')) {str = 'url(navi/listing-item-selected.png)'; }
  $('div#job_div').css('background-image',str);
});
