jQuery(function($) {
	$("a.fancy").fancybox({
		'overlayOpacity':0.7,
		'imageScale':true,
		'hideOnContentClick':false
	});
	$("a.group").fancybox({
		'hideOnContentClick': false
	});
});
// gallery slider
function formatText(index, panel) {
	return index + "";
}
$(function () {
	$('.anythingSlider').anythingSlider({
		easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
		autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
		delay: 5000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 1000,             // How long the slide transition takes
		hashTags: true,                 // Should links change the hashtag in the URL?
		buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
		startText: "Go",             // Start text
		stopText: "Stop",               // Stop text
		navigationFormatter: null       // Details at the top of the file on this use (advanced use)
});
});

function go(item, color) {
	item.style.color = color;
	item.value='';
}
jQuery(function($) {
	$('input#frist-name')
		.focus(function(){if ($(this).val() == 'Frist Name') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Frist Name');} })
	$('input#frist-family')
		.focus(function(){if ($(this).val() == 'Family Name') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Family Name');} })
	$('input#company')
		.focus(function(){if ($(this).val() == 'Company / Organization') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Company / Organization');} })
	$('input#telephone')
		.focus(function(){if ($(this).val() == 'Telephone') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Telephone');} })
	$('input#email')
		.focus(function(){if ($(this).val() == 'Email') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Email');} })
	$('input#website')
		.focus(function(){if ($(this).val() == 'Website') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Website');} })
	$('textarea#comments')
		.focus(function(){if ($(this).val() == 'Comments') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Comments');} })
	$('input#email-2')
		.focus(function(){if ($(this).val() == 'Email') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Email');} })
	$('input#name-2')
		.focus(function(){if ($(this).val() == 'Name') {$(this).val('');} })
		.blur(function(){if ($(this).val() == '') {$(this).val('Name');} })
});