function initialize(){		//sets up sliders and click events
			$('#slider').anythingSlider({autoPlay:true, delay: 3000, animationTime : 2000, playRtl:true, infiniteSlides: true, resumeDelay : 0});
			$('#slider').data('AnythingSlider').startStop(false);
			
			$('#menuslider').anythingSlider({vertical:true, animationTime : 300});
			$('#workslider').anythingSlider({autoPlay:false, animationTime : 300});
			
			$(window).bind("load", function(){$('#coverblack').fadeOut(2000); $('#slider').data('AnythingSlider').startStop(true);});
			//$('#coverblack').fadeOut(3500); //might need to enable this line and disable the one above it to run locally
			
			$('#close').click(function(){
					$('#workholder').fadeOut(500);
					$('#backgrey').css({ opacity: 0, 'width':0,'height':0});
					$('#menuslider').anythingSlider(1);
					
					$('#bigclick').css('display', 'block');
				});
				
			$('#contactclick').click(function(){ //ORIG LOGO POS: position:absolute; top:50%; margin-top:-111px; left:50%; margin-left:-399px; z-index:3;
				$('#close').click();
					$('#contactinfo').fadeIn(1000);
					$('#backgrey').css({ opacity: 0.8, 'width':$(document).width(),'height':$(document).height()});
					$('#evolvelogo').animate({width: 467, height: 110, top: '0', marginLeft: '-238px'});
					$('#evolvelogo').fadeOut(1000);
				});
				
			$('#contactclose').click(function(){
					$('#contactinfo').fadeOut(250);
					$('#backgrey').css({ opacity: 0, 'width':0, 'height':0 });
					
					$('#evolvelogo').fadeIn(250);
					$('#evolvelogo').animate({width: '786px', height: '185px', top: '119px', marginLeft: '-399px'});					
					
					$('#bigclick').css('display', 'block');
				});
			
			$('#bigclick').click(function(){
				$('#contactclose').click();
				
				$('#menuslider').anythingSlider(2); 
				
				if ($('#workholder').css('display') == 'none'){
								$('#backgrey').css({ opacity: 0.7, 'width':$(document).width(),'height':$(document).height()});
								$('#workholder').fadeIn(500);
							}
				$('#workslider').anythingSlider(1); 
				fadeinoutText(1, true); 
				
				$('#bigclick').css('display', 'none');});
			
			$('#Map area').each(function(index){
				 $(this).bind("click", function(){			
				 			
							$('#menuslider').anythingSlider(index + 2);
							
							//alert($('#backgrey').css('display'));
							if ($('#workholder').css('display') == 'none'){
								$('#backgrey').css({ opacity: 0.7, 'width':$(document).width(),'height':$(document).height()});
								$('#workholder').fadeIn(500);
							}
							//alert(index);
							$('#workslider').anythingSlider(index + 1);
							
							fadeinoutText(index + 2, true);
						});
                });
				
			$('#forwardwork').bind({click: function(){$('#workslider').data('AnythingSlider').goForward();if ($('#menuslider').data('AnythingSlider').currentPage == 25){$('#menuslider').anythingSlider(2);}else{ $('#menuslider').data('AnythingSlider').goForward(); }  fadeinoutText($('#menuslider').data('AnythingSlider').currentPage + 1, true); }}); 
			$('#backwork').bind({click: function(){$('#workslider').data('AnythingSlider').goBack();if ($('#menuslider').data('AnythingSlider').currentPage == 2){$('#menuslider').anythingSlider(25);}else{$('#menuslider').data('AnythingSlider').goBack();}fadeinoutText($('#menuslider').data('AnythingSlider').currentPage - 1, false); }}); 
			
		}

function checkSlideText(slidenum){ //returns true if all three info divs are to be shown, otherwise false when only description
		if (slidenum == 19 || slidenum == 20){
 				$('#textdesc').css({width:'255px', bottom: '275px', left:'150px', color: '#000', textAlign: 'left', fontSize: 16});
				return false;
 			}else if (slidenum == 21){
				$('#textdesc').css({width:'410px', bottom: '180px', left:'480px', color: '#000', textAlign: 'left', fontSize: 14});
				return false;
			}else if (slidenum == 22){
				$('#textdesc').css({width:'410px', bottom: '140px', left:'480px', color: '#000', textAlign: 'left', fontSize: 14});
				return false;
			}else if (slidenum == 23){
				$('#textdesc').css({width:'300px', bottom: '170px', left:'160px', color: '#000', textAlign: 'left', fontSize: 14});
				return false;
			}else if (slidenum == 24){
				$('#textdesc').css({width:'280px', bottom: '145px', left:'150px', color: '#000', textAlign: 'left', fontSize: 14});
				return false;
			}else if (slidenum == 25){
				$('#textdesc').css({width:'280px', bottom: '130px', left:'138px', color: '#000', textAlign: 'left', fontSize: 14});
				return false;
			}else if (slidenum == 4){
				$('#textdesc').css({width:'800px', bottom: '180px', left:'120px', color: '#FFF', textAlign: 'left', fontSize: 24});
				return false;
			}else if (slidenum == 5){
				$('#textdesc').css({width:'600px', bottom: '215px', left:'205px', color: '#FFF', textAlign: 'center', fontSize: 40});
				return false;
			}else if (slidenum == 7 || slidenum == 12 || slidenum == 13 || slidenum == 15 || slidenum == 16 || slidenum == 18){
				$('#textdesc').css({width:'520px', bottom: '25px', left:'95px', color: '#FFF', textAlign: 'center', fontSize: 16});
				return true;
			}else{
				$('#textdesc').css({width:'520px', bottom: '10px', left:'95px', color: '#FFF', textAlign: 'center', fontSize: 16});
				return true;
			}
	 	}

function changeTitle(){
	var text = window.location + "";
			
			//alert(text.lastIndexOf("#"));
			if (text.lastIndexOf("#") > 0){
				var locate = text.substring(text.lastIndexOf("#") + 1);
			}
	$('#pageTitleItem').text(locate);	
}		
		
function fadeinoutText(index, frwd){ //text animation for headers and text descriptions of slides
			if ($('#texthead').is(':animated') || $('#textdesc').is(':animated') || $('#textlinks').is(':animated')) return;
			
			$('#texthead').fadeOut(150);
			$('#textlinks').fadeOut(150);
			$('#textdesc').fadeOut(150);
			$('#menuslider').data('AnythingSlider').currentPage
			if ($('#menuslider').data('AnythingSlider').currentPage == 0)
			index = 0;
			
			if (index == 26){
				$('#contactclick').click();	
			}
			
			if (frwd){
				if (index == 1 || index == 0) index = 2;
			}else{
				if (index == 1) index = 25;
			}
			
			
			//get new slide info
								if (index == 2){ //around slide 1
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('');
								}else if(index == 3){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('');
								}else if(index == 4){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('');
								}else if(index == 5){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('');
								}else if(index == 6){
									$('#texthead').html('project: <span style="font-size:22px;">Koolpass and Merchpass</span>');
									$('#textlinks').html('logos');
									$('#textdesc').html('Brand creation needs a compass, symbol, or a flag which represents the organization. Something to sum up goals - a direction. That is how we apply the concept of the logo.');
								}else if(index == 7){
									$('#texthead').html('project: <span style="font-size:22px;">Merchpass</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Merchpass.com, an All-In-One merchant package designed to integrate the power of web merchant services with an organization, seamlessly.');
								}else if(index == 8){
									$('#texthead').html('project: <span style="font-size:22px;">Koolpass</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Your ticket to entertainment. Koolpass delivers Merchpass content to the world via its cloud based infrastructure. Restaurants, Events, Shops and more, Koolpass offers a wide range of entertainment opportunities accessible to everyone.');
								}else if(index == 9){
									$('#texthead').html('project: <span style="font-size:22px;">markxx</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Creating a new network as complex as the markx project was all encompassing. We started with the brand as we toiled with the psychology...');
								}else if(index == 10){
									$('#texthead').html('project: <span style="font-size:22px;">markxx</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('As the project grew the incorporation of a mobile application complimented the markx network. Both interfaces were paired to look and work the same across devices.');
								}else if(index == 11){
									$('#texthead').html('project: <span style="font-size:22px;">Technology Partners</span>');
									$('#textlinks').html('logos');
									$('#textdesc').html('Our technology partners are committed to providing specialized communication, printing, and statistics tracking services to help promote and manage your organization.');
								}else if(index == 12){
									$('#texthead').html('project: <span style="font-size:22px;">Technology Partners</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Each technology partner is connected to the world via a web presence.');
								}else if(index == 13){
									$('#texthead').html('project: <span style="font-size:22px;">Coastal Massage</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Smaller organizations can be assured their message will be handled in the care of professionals. Small business can mean BIG impact.');
								}else if(index == 14){
									$('#texthead').html('project: <span style="font-size:22px;">UAPF</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Any organization large or small can benefit from our branding services and collateral preparation. We can even help with things like Search Engine Optimization (SEO), data tracking and merchant/inventory services (over a secure communication channel of course).');
								}else if(index == 15){
									$('#texthead').html('project: <span style="font-size:22px;">Mr. Dupe</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('With our hands in film, photography and animation alongside web, print, and promotions, we can deliver in the medium you choose.');
								}else if(index == 16){
									$('#texthead').html('project: <span style="font-size:22px;">Bronskys </span>');
									$('#textlinks').html('logo - menu - collateral');
									$('#textdesc').html('A series of different styles were offered to suit the new venue’s movie theatres theme. Result - Bronsky\'s Cocktail Lounge.'); //Custom branding solutions sometimes require many revisions, we want your message to be just right. We ensure that until the message is perfected, our job is not complete.
								}else if(index == 17){
									$('#texthead').html('project: <span style="font-size:22px;">Urban Circus</span>');
									$('#textlinks').html('identity - web - collateral');
									$('#textdesc').html('Urban Circus had a number of media needs from film, online ticket ordering and a custom logistics interface...Our solution - a single interface for selling, tracking and inventory');
								}else if(index == 18){
									$('#texthead').html('project: <span style="font-size:22px;">Girl Talk</span>');
									$('#textlinks').html('posters - templates - handouts');
									$('#textdesc').html('We listen to our clients to make their messages pop, working with them to make it happen, regardless of the preconceived notions of the possible.');
								}else if(index == 19){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('');
								}else if(index == 20){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('');
								}else if(index == 21){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('<div style="width:100%;">Whether you\'re just starting your brand or your looking to revamp your presence, we think holistically when developing our work. It starts with listening, research and planning. Creating work that captivates, and is successful in delivering a message is an art. We do it across all current popular mediums. Just choose which approach best suits the goals of your brand.</div><div style="width:380px;padding-left;40px;font-size:16px;text-align:left;"><br/>Identity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collateral<br/>Rebranding&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Campaigns</div>');
								}else if(index == 22){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('Forever evolving, information architecture is best customised to individual needs so larger campaigns can be dynamic, while smaller campaigns use only the technologies necessary to enhance their brand. <br/><br style="line-height:5px;"/>Knowing which technologies to use and when to use the latest is a balance. Planning content for the future and also identifying your target audience’s ability to view your content are our specialities. With a harmony combining style, performance and security, we develop unique content that captivates.<br/><br /><div style="font-size:16px;">Cloud Server Solutions&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mobile Applications<br/>Secure Communications&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Content Management</div>');
								}else if(index == 23){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('Planning and managing a campaign across mutilple platforms can be daunting. Online, air time & ad space are valuable. You want return on your investment. So how do we evaluate the success of the message?<br/><br style="line-height:5px;"/> Tracktistics -  Tracking and organizing your media success with real time information. Become your own case study and make decisions based on results within your own branding campaigns.');
								}else if(index == 24){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('Choosing the right materials for your message is as important as your message.  From a simple business card to Billboards, clothing or products, using refined graphics combined with quality material assures no compromise when representing your brand.<br/><br style="line-height:5px;"/>Working closely with suppliers and constantly searching out new sources allows 3P to find new products that are of quality, and solutions that are both economical and environmentally friendly.');
								}else if(index == 25){
									$('#texthead').html('');
									$('#textlinks').html('');
									$('#textdesc').html('Navigating the social network can be daunting. Knowing how to attract your audience can be just as difficult. We speak and network differently through social mediums and the approach to your message should be in tune with your chosen social venues. <br/><br style="line-height:5px;"/>Communibyte uses a three step approach to social media. researching, Networking & Evaluating. Social Branding can be directed to your target audience real time... anytime, in the venues identified as relevant to your brand.');
								}
			//move slide text to specific location					
			var showAllSlideInfo = checkSlideText(index);
			
			if (showAllSlideInfo){
				
				$('#texthead').fadeIn(150);
				$('#textlinks').fadeIn(150);
				$('#textdesc').fadeIn(150);
			}else{
				$('#textdesc').fadeIn(150);
			}
			
		}
