// Flowplayer skin
var flowplayerconf = {
	skins: {
		site: {
//			buttonOverColor: '#f00',
//      volumeSliderColor: '#7f0b23',
//      buttonColor: '#5F747C',
//      tooltipColor: '#5F747C',
//      sliderColor: '#fb76f8',
//      tooltipTextColor: '#ffffff',
//      backgroundGradient: [0.6,0.3,0,0,0],
//      backgroundColor: '#b5277f',
//      timeBgColor: '#d84fbc',
//      bufferGradient: 'none',
//      bufferColor: '#7f0b23',
//      borderRadius: '0px',
//      progressColor: '#fb76f8',
//      sliderGradient: 'none',
//      durationColor: '#ffffff',
//      timeColor: '#01DAFF',
//      progressGradient: 'medium',
//      volumeSliderGradient: 'none',
//      height: 24
		}
	}
}

// preload images
var img1 = new Image();
img1.src = "http://"+location.hostname+"/sites/westmill/img/email-button-hover.png";

var img2 = new Image();
img2.src = "http://"+location.hostname+"/sites/westmill/img/submit-app-hover.png";

var img3 = new Image();
img3.src = "http://"+location.hostname+"/sites/westmill/img/all-jobs-hover.png";

var img4 = new Image();
img4.src = "http://"+location.hostname+"/sites/westmill/img/search-box-button-hover.png";

document.observe("dom:loaded", function() {
  if($$('div.image')) {
    $$('div.image').each(function(el) {
      
      var img = el.down('img');
      
      var t = new Element('div').addClassName('t');
      var b = new Element('div').addClassName('b');
      
      img.wrap(t);
      t.wrap(b);
    });
  }
});
