$(document).ready(function() {
	
	$('.errorField').css('background-color','#ffffff')
	$('.errorField').animate({ backgroundColor: "#ffbfbf" }, 2000);
	
	$('#directions').hide();
	
	$('#iso9001').addClass('disabled');
	$('#iso9001').hover(
			function() { $(this).removeClass('disabled'); },
			function() { $(this).addClass('disabled'); }
	);
	
	$('#investors').addClass('disabled');
	$('#investors').hover(
			function() { $(this).removeClass('disabled'); },
			function() { $(this).addClass('disabled'); }
	);
	
	$('#iso14001').addClass('disabled');
	$('#iso14001').hover(
			function() { $(this).removeClass('disabled'); },
			function() { $(this).addClass('disabled'); }
	);
	
	$('#ipia').addClass('disabled');
	$('#ipia').hover(
			function() { $(this).removeClass('disabled'); },
			function() { $(this).addClass('disabled'); }
	);
	
	$('#iso9001').qtip({position: {corner: {tooltip: 'bottomLeft', target: 'topMiddle'}},
		content: $('#iso9001content').html(),
		hide: {fixed: true},
		show: {effect: { type: 'fade' } },
		style: {
			width: {min: 300, max: 450},border: {width: 5,radius: 10},
			padding: 10, 
			tip: true, // Give it a speech bubble tip with automatic corner detection
			name: 'light'
		}
	
	
});
	
	$('#investors').qtip({position: {corner: {tooltip: 'bottomLeft', target: 'topMiddle'}},
		content: $('#investorscontent').html(),
		hide: {fixed: true},
		show: {effect: { type: 'fade' } },
		style: {
			width: {min: 300, max: 450},border: {width: 5,radius: 10},
			padding: 10, 
			tip: true, // Give it a speech bubble tip with automatic corner detection
			name: 'light'
		}
	});
	
	$('#iso14001').qtip({position: {corner: {tooltip: 'bottomRight', target: 'topMiddle'}},
		content: $('#iso14001content').html(),
		hide: {fixed: true},
		show: {effect: { type: 'fade' } },
		style: {
			width: {min: 300, max: 450},border: {width: 5,radius: 10},
			padding: 10, 
			tip: true, // Give it a speech bubble tip with automatic corner detection
			name: 'light'
		}
	});
	
	$('#ipia').qtip({position: {corner: {tooltip: 'bottomRight', target: 'topMiddle'}},
		content: $('#ipiacontent').html(),
		hide: {fixed: true},
		show: {effect: { type: 'fade' } },
		style: {
			width: {min: 300, max: 450},border: {width: 5,radius: 10},
			padding: 10, 
			tip: true, // Give it a speech bubble tip with automatic corner detection
			name: 'light'
		}
	});
	
	$('#warrant').qtip({position: {corner: {tooltip: 'bottomRight', target: 'topLeft'}},
		content: $('#warrantcontent').html(),
		hide: {fixed: true},
		show: {effect: { type: 'fade' } },
		style: {
			width: {min: 300, max: 390},border: {width: 5,radius: 10},
			padding: 10, 
			tip: true, // Give it a speech bubble tip with automatic corner detection
			name: 'light'
		}
	});
	
});

function lightbox(){
	
	$('.lightbox').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.6,
		imageLoading: '/images/lightbox/loading.gif',
		imageBtnClose: '/images/lightbox/close.gif',
		imageBtnPrev: '/images/lightbox/prev.gif',
		imageBtnNext: '/images/lightbox/next.gif',
		containerResizeSpeed: 250,
		txtImage: 'Image',
		txtOf: 'of'
	   });
	
}