// JavaScript Document

var imgPath = '';
var hideSlideLine = true;

function getImgPath() {
 if (imgPath == '')
 {
  setImgPath();
 }
 return imgPath;
}

function setImgPath() {
 var height=0;
 if (self.screen)
 {
  height = screen.height
 }
 else if (self.java)
 {
  var jToolKit = java.awt.Toolkit.getDefaultToolkit();
  var scrsize = jToolKit.getScreenSize();
  height = scrsize.height;
 }

 imgPath = '';
 if (height > 800)
 {
  imgPath = '';
  hideSlideLine = false;
 }
}

jQuery(function($){
 setImgPath();
 
 if (hideSlideLine == true) {
  var slideLine = $('#slideshow-line');
  if (slideLine.hasClass('nohide') == false) {
   slideLine.hide();
   $('#blank-line').show();
  }
 }

 $('a.changed').each(function() {
  var endOfPath = $(this).attr('href');
  $(this).attr('href', imgPath + endOfPath);
 });
});
