$(document).ready(function() {
$('#r').coinslider({ width:400, height:300,hoverPause: false });
});	  
	  $('#b').parallax({
      'elements': [
        {
          'selector': '#b',
          'properties': {
            'x': {
              'background-position-x': {
                'initial': 0,
                'multiplier': 0.1,
                'invert': false
              }
            }
          }
        },
        {
          'selector': '#a',
          'properties': {
            'x': {
              'background-position-x': {
                'initial':0,
                'multiplier': 0.02,
                'unit': '%'
              }
            }
          }
        }
      ]
    });
$(window).resize(function() {
var bottomPosition = $(document).height();
$('#a').css({
        'position': 'absolute',
        'left': 0,
        'top': bottomPosition - 334 + "px"
    });
});
  	
	
