	function init() {
		 $("#logo_showcase").fadeTo(2000, 1.0, function() {
			$("#logo_showcase").fadeOut(1000, function() {
				$("#showcase_clip").fadeIn(2000);
				$("img.smalllogo").fadeIn(2000);
				$(".icon").fadeIn(2000);
				$(".icon").stop().fadeTo(2000, 0.2);
				$(".icon").hover(function(){
					$(this).stop().fadeTo("normal", 1.0);
					},function(){
						$(this).stop().fadeTo("normal", 0.2);
					});
				});
				
			});
		
			
		
		$(".icon_contactus").click(function () {
			$("#showcase_clip, #aboutus_clip").css({display: "none"	});
			//$("#showcase_clip, #contact_clip").fadeOut(1000);
			$("#contact_clip, #contact_showcase").fadeIn(1000);
		});

		
		$(".icon_aboutus").click(function () {
			$("#showcase_clip, #contact_clip").css({display: "none"	});
			//$("#showcase_clip, #contact_clip").fadeOut(1000);
			$("#aboutus_clip, #aboutus_showcase").fadeIn(1000);
		});
		
		$(".icon_home").click(function () {
			$("#contact_clip, #aboutus_clip").css({display: "none"	});
			$("#showcase_clip").fadeIn(1000);
		});
		
		
		jQuery.easing.def = "easeOutQuint";
		$("#options").toggle();
		
		$("#next_project_btn").click(next_project);
		$("#previous_project_btn").click(previous_project);
		$('div.project_info, div.pi_background, div.pi_hitzone').fadeTo(5, 0);
		$('div.project_info, div.pi_background').show();
		$('div.project_info').hover(
			function() {$(this).fadeTo('normal', 1); $(this).siblings('div.pi_background').fadeTo('normal', .93);},
			function() {$(this).fadeTo('normal', 0); $(this).siblings('div.pi_background').fadeTo('normal', 0);}
			);
		$('a.showcase_secondary').click(function() {
			$(this).siblings('a.showcase_link').children('img.showcase_main').attr('src', $(this).attr('href'));
			return preventDefaultAction();
			});		
		}
	
	function new_proj_id(which) {
		current = $("#projects div.current").attr("id");
		var num = current.substring(current.lastIndexOf('_') + 1, current.length);
		if(which == 'next')
			num++;
		else
			num--;
		var new_id = 'project_' + num;
		return new_id;
		}
	
	function get_last_project_id() {
		return $("#projects div.last").attr("id");
		}
	
	function set_current(id) {
		$("#projects .current").removeClass('current');
		$('#' + id).addClass('current');
		}
						
	function next_project(e) {
		if($('#projects div.current').hasClass('last')) {
			to_project('project_1', 1200);
			}
		else {
			var new_id = new_proj_id('next');
			to_project(new_id, 600);		
			}
		return preventDefaultAction(e);
		}	
	
	function previous_project(e) {
		if($('#projects div.current').hasClass('first')) {
			var last_id = get_last_project_id()
			to_project(last_id, 1200);	
			}
		else {
			var new_id = new_proj_id('previous');	
			to_project(new_id, 600);
			}
		return preventDefaultAction(e);
		}
		
	function to_project(new_id, speed) {
		if(speed) {
			$("#projects").animate({
					left: 70-$('#' + new_id).position().left
					}, speed);
				set_current(new_id);
			}
		else {
			$("#projects").animate({
					left: 70-$('#' + new_id).position().left
					}, 600);
				set_current(new_id);
			}
		}
		
	//initiate when the document is ready
	$(document).ready(function(){
		init();	 
	});
	
	function preventDefaultAction(e)	{
	if (e)	{
		if (typeof e.preventDefault != 'undefined')	{ 
			e.preventDefault(); 
			}               
		else	{ 
			e.returnValue = false; 
			}                   
		}
	// safety for handling DOM Level 0
	return false;
	}