$(function(){
  //oslider for the header
	$('#color_lines').oSlider({
		layers: {
			first: {
				className: 'layer-color-lines',
				offset: 20,
				direction: 'ltr'
			}
		}
	});
	
	//replacement target=_blank
  $('a[rel*=external]').click(function() {
    var w = window.open(this.href);
    if(!w) alert("Boo! A popup blocker stopped our window from opening");
    return false;
  });
  
  $('.btn>div').corner('15px bl br');

  $('.box2').corner('15px bl tr');

  $('.rounded, .rounded span').corner();
  
  position_contact();
  
  Shadowbox.init();
});

$(window).resize(function() {
  position_contact();
});

function position_contact() {
  if($(document).width() < 1200) {
    $('#contact>div').css('right', '0');
  } else {
    $('#contact>div').css('right', '');
  }
}
