$(document).ready(function(){
	$("a.started").hover(function(){
		$(this).find('img').attr('src', '/Templates/Designbox2/Images/button_started_hover.png');
	});
	$("a.started").mouseout(function(){
		$(this).find('img').attr('src', '/Templates/Designbox2/Images/button_started.png');
	});
	
	$("a.skype-button").hover(function(){
		$(this).find('img').attr('src', '/Templates/Designbox2/Images/button_skype_hover.png');
	});
	$("a.skype-button").mouseout(function(){
		$(this).find('img').attr('src', '/Templates/Designbox2/Images/button_skype.png');
	});
	
	$("a.facebook-button").hover(function(){
		$(this).find('img').attr('src', '/Templates/Designbox2/Images/button_facebook_hover.png');
	});
	$("a.facebook-button").mouseout(function(){
		$(this).find('img').attr('src', '/Templates/Designbox2/Images/button_facebook.png');
	});
	$(".works .w .holder").each(function(){
		$(this).hover(function(){
			if($(this).css('background-image') == 'none')
				$(this).css('background-image', 'url(/Templates/Designbox2/Images/hover.png)');
		});
		$(this).mouseout(function(){
			if($(this).css('background-image').search('hover.png') != -1)
				$(this).css('background-image', 'none')
		});
	});
	
	$("a#sc-left img").hover(function(){
		$(this).attr('src', '/Templates/Designbox2/Images/arrow_left_hover.png');
	});
	
	$("a#sc-left img").mouseout(function(){
		$(this).attr('src', '/Templates/Designbox2/Images/arrow_left.png');
	});
	
	$("a#sc-right img").hover(function(){
		$(this).attr('src', '/Templates/Designbox2/Images/arrow_right_hover.png');
	});
	$("a#sc-right img").mouseout(function(){
		$(this).attr('src', '/Templates/Designbox2/Images/arrow_right.png');
	});
	
	$('a').each(function(){
		if($(this).attr('href') != null && $(this).attr('href').search('#') == 0)
		{
			$(this).click(function(){
				WeblancetScrollTo($(this).attr('href'));
				
				return false;
			});
		}
	});
});
