/*
 * jQuery Backstretch 1.0
 * http://srobbin.com/jquery-plugins/jquery-backstretch/
 *
 * Add a dynamically-resized background image to the page
 *
 * Copyright (c) 2009 Scott Robbin (srobbin.com)
 * Dual licensed under the MIT and GPL licenses.
*/

	/* <![CDATA[ */
	
		$(document).ready(function(){
		
			// external links
			$('a[rel=external], a.external').click(function(){
				window.open(this.href);
				return false;
			});
			
		
			
		
			$.backstretch("http://lipstickdesignstudio.com/images/bg-lds.jpg");
		
 
		
		
			/*if($(window).width() > 1450){
				$('.floated-image').css('visibility', 'visible');
			}*/
			
		});
		
		
		
		function setHeight() {
			if($(window).height() > $('body').height()){
				$('body').css('height', $(window).height());
			}
			var header = 296;
			var topMargin = parseInt($('.floated-image').css('margin-top'));
			var newHeight = parseInt($('body').height()) - header - topMargin;
			
			$('.floated-image').css({height: newHeight});
		}
		
	/* ]]> */

