$(document).ready(function() {
		if(typeof(ddsmoothmenu) != 'undefined') { 
		ddsmoothmenu.init({
			arrowimages:[],
			mainmenuid: "mainmenu",
			orientation: 'h',
			classname: 'ddsmoothmenu',
			contentsource: "markup"
		});
		}
		$("#mainmenu").show();

		$('input[type=text], textarea').each(function() {
			$(this).val($(this).attr('title'));
			
			$(this).focus(function() {
			 	if($(this).val() == $(this).attr('title')) {
					$(this).val('');
				}
			});
			
			$(this).blur(function() {
				if($(this).val() == "") {
					$(this).val($(this).attr('title'));
				}
			});
		});
			
		$("a[rel=pop_image]").fancybox({
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'titlePosition' 	: 'over'
		});
		
		$("a[rel=pop_video]").fancybox({
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'titlePosition' 	: 'over',
					'type'				: 'iframe'
		});
		
		$(".send-friend").fancybox({
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'titlePosition' 	: 'over',
					'type':'iframe',
					'width':450,
					'height':320,
					'scrolling':'no'
		});
		
		$('a#special_search').fancybox({
						'titleShow' : false
		});
		
		$("#wallpaper_bar").click(function(e){
			$("#bodywrapper").children().fadeOut();
			$("#virtual_container").show();
			$("#wallpaper_bar_show").show();
		});
		
		$("#wallpaper_bar_show").click(function(e){
			$("#bodywrapper").children().fadeIn();
			$("#virtual_container").hide();
			$(this).hide();
		});
		
		$(".right.image_slider").imageCycle({slideStart:4000});
		$(".left.image_slider").imageCycle({slideTime:10000,slideStart:5000});
		
});
