// JavaScript Document

$(document).ready(function(){



//	this is the function that reveals the tag line on the index page	//					
		$('.text').hide();
		$('#text1').delay(2000);
		$('#text1').fadeIn(2000); 
		$('#text2').delay(4000);
		$('#text2').fadeIn(2000);   
		$('#text3').delay(6000);
		$('#text3').fadeIn(2000);

//	this is the function that shows the line hovers	//					
		$('.inside_lines').hide();
		$('#line2_1').show();
		$('#line3_1').show();
		$('#line4_1').show();
		
		$('#line2').hover(function() {
		$('.inside_lines').hide();
		$('#line2_3').show();
		$('#line3_1').show();
		$('#line4_1').show();
		});
		
		$('#line3').hover(function() {
		$('.inside_lines').hide();
		$('#line2_1').show();
		$('#line3_3').show();
		$('#line4_1').show();
		});
		
		$('#line4').hover(function() {
		$('.inside_lines').hide();
		$('#line2_1').show();
		$('#line3_1').show();
		$('#line4_2').show();
		});
		
		$('#projects').hover(function() {
		$('.inside_lines').hide();
		$('#line2_3').show();
		$('#line3_1').show();
		$('#line4_1').show();
		});
		
		$('#media').hover(function() {
		$('.inside_lines').hide();
		$('#line2_1').show();
		$('#line3_3').show();
		$('#line4_1').show();
		});
		
		$('#prototyping').hover(function() {
		$('.inside_lines').hide();
		$('#line2_1').show();
		$('#line3_1').show();
		$('#line4_2').show();
		});
//	this is the function that adds a class to the innovate links//					
		$("#line2").hover(function(){
		$("#media").removeClass("current_line");
		$("#prototyping").removeClass("current_line");
		$("#projects").addClass("current_line");
		});
		
		$("#line3").hover(function(){
		$("#prototyping").removeClass("current_line");
		$("#projects").removeClass("current_line");
		$("#media").addClass("current_line");
		});
		
		$("#line4").hover(function(){
		$("#projects").removeClass("current_line");
		$("#media").removeClass("current_line");
		$("#prototyping").addClass("current_line");
		});
}); 
