jQuery.fn.movableLabel = function () {
	return this.each( function (index) {
		if ( this.htmlFor ) {
			var label = jQuery ( this );
			var input = jQuery ( '#' + this.htmlFor);
			if ( !input ) {
				return false;	
			}

			label.hide ();
			
			inputPosition = input.position();
			
			positionX = inputPosition.left;
			positionY = inputPosition.top;
	
			plusX = 5;
			plusY = 0;

			label.css({
				'position': 'absolute',
				'left':     positionX + plusX + 'px',
				'top':      positionY + plusY + 'px',
				'cursor':  'text'
			});
			input.focus(function(){
				label.hide();
			});
			
			input.blur(function(){
				if ( this.value == '')
					label.show();
			});
			
			label.click(function() {
				label.hide();
			});
			
			if ( input.val() == '')
				label.show();

		}
	} );
}
$(function(){
	$('label.movable').movableLabel();
	if($.browser.msie && $.browser.version == '8.0'){
		$('<span>').html('&nbsp;').css({'position':'absolute','right':'-2px','top':'11px','background':'#fff'}).appendTo('h2.stylize');
	}
	if($(window).width() <1000) {
		$('body').css('overflow-x','scroll');
	} else {
		$('body').css('overflow-x','hidden');
	}
	$(window).bind('resize',function(){
		if($(this).width() <1000) {
			$('body').css('overflow-x','scroll');
		} else {
			$('body').css('overflow-x','hidden');
		}	
	})
	
});
