$(document).ready(function(){
//	var sudoSlider1 = $("#headslider").sudoSlider({
//		numeric:false,
//		auto:true,
//		autowidth:false,
//		prevNext:false,
//		fade: true,
//		continuous:true,
//		crossFade:false,
//		pause: '4000' 
//	});
//
//	var sudoSlider1 = $("#artists .slider").sudoSlider({
//		numeric:false,
//		/*auto:true,*/
//		autowidth:false,
//		//   numeric:'pages',
//		slideCount:4,
//		prevNext:true,
//		continuous:true,
//		moveCount:4
//	});
//
//	var sudoSlider2 = $("#corporate .slider").sudoSlider({
//		numeric:false,
//		/*auto:true,*/
//		autowidth:false,
//		//  
//		//   numeric:'pages',
//		slideCount:4,
//		prevNext:true,
//		continuous:true,
//		moveCount:4
//	});
//
//	var sudoSlider3 = $("#wedding .slider").sudoSlider({ 
//		numeric:false,
//		/*auto:true,*/
//		autowidth:false,
//		//  
//		//   numeric:'pages',
//		slideCount:4,
//		prevNext:true,
//		continuous:true,
//		moveCount:4
//	});

	$('#mainmenu li:has(ul)').click(function(event){
		if (this == event.target) {
			$(this).css('background',
				(!$(this).children().is(':hidden')) ? 
					'url(img/plus.png) 0 5px' : 
					'url(/img/minus.png)  0 5px');
			$('#mainmenu li:has(ul)').not(this).children().not("span").hide("slow");
			$('#mainmenu li:has(ul)').not(this).css('background','url(/img/plus.png)  0 5px no-repeat');
			$(this).children().not('span').toggle('slow');

		}

	})
	.css({
		cursor:'pointer',
		'background':'url(/img/plus.png) 0 5px'
	})
	.children().not("span").hide();
	$('#mainmenu li:not(:has(ul))').css({
		cursor: 'default',
		'background':'none'
	});


	$('#search .example').click(function(){
		$('#searchinput').attr("value", "Звездные клоуны")
	});

	var typelogin = document.getElementById('typelogin');
	var typepassword = document.getElementById('typepassword');

	if (typelogin){
		typelogin.onfocus = function() {
			if (this.value == 'Your login' ) {
				this.value = '';
			}
		}
		typelogin.onblur = function() {
			if (this.value == '') {
				this.value ='Your login';
			}
		}
	}

if (typepassword){
	typepassword.value = '********';
	typepassword.onfocus = function() {
		if (this.value == '********' ) {
			this.value = '';
		}
	}
	typepassword.onblur = function() {
		if (this.value == '') {
			this.value ='********';
		}
	}
}

$('#submitlogin').attr('value', 'Enter my profile')

});




