/* <![CDATA[ */

			

		var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;

		function modalBox(content, width, callback) {
			
			if(!content){

				$('#modal').remove();

				$('#modalOverlay').fadeOut(function(){$(this).remove();});

				try{if(IE6){$('body').find('select').visibility('visible');}}catch(err){};
				

				return false;

			}

			try{if(IE6){$('body').find('select').visibility('hidden');}}catch(err){};

			$('body').append('<div id="modalOverlay"><\/div>');

			$('#modalOverlay').css({

				width     :   '100%',

				height    :   $(document).height(),

				position  :   'absolute',

				left      :   0,

				top       :   0,

				backgroundColor : '#000',

				zIndex    : 9990,

				opacity   :   0

			}).fadeTo("slow", 0.5);

			$('body').append('<div id="modal"><\/div>');

			$('#modal').css({

				width     :   width ? width : 350,

				position  : 'absolute',
				
				background: '#ffffff',

				left      : '50%',

				top       : $(document).scrollTop()+50,

				zIndex    : 9995,

				marginLeft: -(Math.ceil((width ? width : 300)/2))

			}).html("<div id='close'><img src='images/closebox.png' title='Close Buton' id='close' /></div><div id='modalContent'>"+content+"</div>");

			$('#modal a:eq(0), #modal input, #modal textarea').focus();

			try{

				callback.call();

			}catch(err){};  

			$(document).bind('scroll', function(){

				$('#modal').css({

					top:$(document).scrollTop()+50

				});

			});

		};

		/* ]]> */

