/*___________________________COMMON VARIABLES_______________________________________*/

var animspeed = 0;
var animspeedslow = 0;
var colorwhite = '#ffffff';
var color0 = '#0099ff';
var color1 = '#781464';
var color2 = '#86C242';
var color3 = '#E7A235';
var color4 = '#D11780';
var color5 = '#F6D429';
var leftmoveneg = -188;
var leftmovepos = 139;
var widthline = 550;
var widthservtext = 538;
var nodeleft = -85;

/*____________________________________________________________________________________*/


$(document).ready(function(){
  $('#background').css({'background-color' : '#000'});
  $('#content').hide();
  $('#main_image').hide();
  $('#img_up').hide();
  $('#topline').hide();
  $('#extraload').hide();
  $('#contactform').hide();
  $('#dividerimage1').hide();
  $('#dividernode').hide();
  $('#downarrow').hide();
  $('#img_right').hide();


 BindService=function(){
	 
$('#servicestext h4.Services4').click(function() {
$addcomment = $(this).parent().find('.subcontent4');
$addcomment.each(function(index) {
	 $(this).toggle();
	 var ctext = $(this).html();
	 }); 
SwooshHeight();
VerticalLine();
});
  
 
$('#servicestext h5.fiveSomething').click(function() {
					  
$addcomment = $(this).parent().find('.subcontent5');
$addcomment.each(function(index) {
	 $(this).toggle();
	 var ctext = $(this).html();
  });

SwooshHeight();
VerticalLine();

});
 
$('#servicestext h4.Products4').click(function() {
						  
$addcomment = $(this).parent().find('.subcontent4');

$addcomment.each(function(index) {
	 $(this).toggle();
	 var ctext = $(this).html();

});
SwooshHeightProduct();
VerticalLine();

});

$('#servicestext h4.Partnerships4').click(function() {
						  
$addcomment = $(this).parent().find('.subcontent4');

$addcomment.each(function(index) {
	 $(this).toggle();
	 var ctext = $(this).html();

});
SwooshHeightProduct();
VerticalLine();

});

 
}

jQuery.fn.outerHTML = function() {
    return $('<div>').append( this.eq(0).clone() ).html();
};
/*____________________________________________________________________________________*/

/*$('#content').load('http://gt2009a.appspot.com/mob/html?feedid=232001');
*/
/*____________________________________________________________________________________*/

$(window).load(
    function() {
 $('#background').css({'background-color' : color0});
 $('#main_image').show();
 $('#background').css({'background-color' : color0});	
 $('h3,h4,h5').css({'color' : color1});
 $('#acrossdiv,#topcirclediv,#acrossandupdiv,#updiv').hide();
 $("#background").animate({ top:0}, animspeed)
 $('#imageup').css({'background-color' : color1});
 $('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color1});
 $("#img_up").animate({ left: "328", width:"360"}, animspeed)
 $("#dividernode").animate({ left: "103"}, animspeed)
 $("#servicestext").animate({ left: "0", width:"341"}, animspeed)
 $("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
 $('#wrapper2').show();
 $('#dividerimage1').hide();
 $('#img_right').hide();
 $("#wrappertext1a").animate({ left: "0", width:"350"},0)
 $('#acrossdiv').show();
 $('#imageright2, #imageright1').hide();
 $('#imageright3').hide();
 $('#imageright').css({'height' : '220px'});
 $('#img_right').css({'background-color' : color1});
 $('#img_up').fadeIn(animspeed);
 $('#topline').fadeIn(animspeed);
 $('#downarrow').fadeIn(animspeed);
 $('#background').css({'background-color' : color0});
 $('#dividerimage1').fadeIn(animspeed);
 $('#dividernode').fadeIn(animspeed);
 $("#dividernodeimg").animate({ height:(10)}, animspeed)    

 $('#img_right').fadeIn(animspeed);
 var $comment ='';
 $comment=$('#ID3Servicesblurb').html();
 $('#wrappertext1a').html($comment);
 var $comment ='';
 $comment=$('#ID3Services1blurb').html();
 $comment = $comment+$('#service1more').html();
 $('#servicestext').html($comment);
 $('#servicestext').fadeIn(animspeed);

 

    }
);
/*____________________________ON LOAD METHODS and FUNCTIONS_________________________*/


/*____________________________________________________________________________________*/

function SwooshHeight(){
var servlength = $('#servicestext').height();
var servchange = servlength - 100;
$("#background").animate({ top:servchange}, animspeed)
}

function VerticalLine(){
var servlength = $('#servicestext').height();
$("#dividernodeimg2").animate({ height:(servlength-10)}, 400)
}

function SwooshHeightProduct(){
   var servlength = $('#servicestext').height();
var servchange = servlength - 200;
$("#background").animate({ top:servchange}, 0)
}


/*___________________________________CLICK FUNCTIONS_________________________*/
/*___________________________________   SERVICES   _________________________*/



$('#services').click(function() {
$("#dividernodeimg2").animate({ height:(8)}, animspeedslow)  
$("#dividernodeimg").animate({ height:(10)}, animspeed)    
$('#background').css({'background-color' : color0});	
$('h3,h4,h5').css({'color' : color1});
$("#background").animate({ top:0}, animspeedslow)
$('#imageup').css({'background-color' : color1});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color1});
$("#img_up").animate({ left: "328", width:"360"}, animspeedslow)
$("#dividernode").animate({ left: "103"}, animspeedslow)
$('#imageright').css({'height' : '220px'});
$("#servicestext").animate({ left: "0", width:"341"}, animspeedslow)
$("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
$('#imageright2, #imageright1').hide();
$('#imageright3').hide();
$('#imageright0').show();
$('#imageright').css({'height' : '220px'});
$('#img_right').css({'background-color' : color1});
$('#wrapper2').show();
$('#dividerimage1').hide();
$('#img_right').hide();
$("#wrappertext1a").animate({ left: "0", width:"350"},0)
$('#acrossdiv').show();
$('#topcirclediv,#acrossandupdiv,#updiv').hide();
$('#img_up').fadeIn(animspeed);
$('#topline').fadeIn(animspeed);
$('#downarrow').fadeIn(animspeed);
$('#background').css({'background-color' : color0});
$('#dividerimage1').fadeIn(animspeedslow);
$('#dividernode').fadeIn(animspeedslow);
$('#img_right').fadeIn(animspeedslow);

var $comment ='';
$comment=$('#ID3Servicesblurb').html();
$('#wrappertext1a').html($comment);
var $comment ='';
$comment=$('#ID3Services1blurb').html();
$comment = $comment+$('#service1more').html();
$('#servicestext').html($comment);

$('#servicestext').fadeIn(animspeedslow);

});
/*____________________________________________________________________________________*/

$('#services1').click(function() {
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('h3,h4,h5').css({'color' : color1});

$('#img_right').hide();
$("#background").animate({ top:0}, animspeed)

$('#imageright2').hide();
$('#imageright3').hide();
$('#imageright1').hide();
$('#imageright0').show();
$('#imageright').css({'height' : '220px'});
$('#img_right').css({'background-color' : color1});


$('#img_up').fadeIn(animspeed);
$('#background').css({'background-color' : color1});
$('#imageup').css({'background-color' : color1});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color1});
$('#img_right').fadeIn(animspeed);
 
var $comment ='';
$comment=$('#ID3Services1blurb').html();
$comment = $comment+$('#service1more').html();
$('#servicestext').html($comment);

$('#servicestext').fadeIn(animspeed);

SwooshHeight();

});

/*____________________________________________________________________________________*/


$('#services2').click(function() {
$("#dividernodeimg2").animate({ height:(8)}, animspeed);  
$('h3,h4').css({'color' : color2});
$('h5').css({'color' : colorwhite});
$('#img_right').hide();
$("#background").animate({ top:0}, animspeed)

$('#img_right').css({'background-color' : color2});
$('#imageright0').hide();
$('#imageright,#imageright1,#imageright2,#imageright3').show();
$('#imageright2').css({'height' : '40px', 'width' : '10px'});
$('#imageright').css({'height' : '190px'});

$('#img_up').fadeIn(animspeed);
$('#background').css({'background-color' : color2 });
$('#imageup').css({'background-color' : color2});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color2});
$('#img_right').fadeIn(animspeed);

var $comment ='';
$comment=$('#ID3Services2blurb').html();
$comment = $comment+$('#service2more').html();

$('#servicestext').html($comment);

$('#servicestext').fadeIn(animspeed);
SwooshHeight();

});
/*____________________________________________________________________________________*/

$('#services3').click(function() {
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('h3,h4,h5').css({'color' : color3});
$('#img_right').hide();
$("#background").animate({ top:0}, animspeed)
$('#img_right').css({'background-color' : color3});
$('#imageright0').hide();

$('#imageright,#imageright1,#imageright2,#imageright3').show();
$('#imageright2').css({'height' : '89px', 'width' : '10px'});
$('#imageright').css({'height' : '130px'});

$('#img_up').fadeIn(animspeed);
$('#background').css({'background-color' : color3});
$('#imageup').css({'background-color' : color3});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color3});
$('#img_right').fadeIn(animspeed);

var $comment ='';
$comment=$('#ID3Services3blurb').html();
$comment = $comment+$('#service3more').html(); 
$('#servicestext').html($comment);

  $('#servicestext').fadeIn(animspeed);
SwooshHeight();

});
/*____________________________________________________________________________________*/

$('#services4').click(function() {
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('h3,h4,h5').css({'color' : color4});
$('#img_right').hide();
$("#background").animate({ top:0}, animspeed)
$('#img_right').css({'background-color' : color4});
$('#imageright0').hide();

$('#imageright,#imageright1,#imageright2,#imageright3').show();
$('#imageright2').css({'height' : '138px', 'width' : '10px'});
$('#imageright').css({'height' : '80px'});

$('#img_up').fadeIn(animspeed);
 $('#background').css({'background-color' : color4});
   $('#imageup').css({'background-color' : color4});
 $('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color4});
 $('#img_right').fadeIn(animspeed);

  var $comment ='';
  $comment=$('#ID3Services4blurb').html();
$comment = $comment+$('#service4more').html();
$('#servicestext').html($comment);

  $('#servicestext').fadeIn(animspeed);

});
/*___________________________________SERVICES5 click______________________________*/

$('#services5').click(function() {
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('h3,h4').css({'color' : color5});
$('h5').css({'color' : colorwhite});
$('#img_right').hide();
$("#background").animate({ top:0}, animspeed)
$('#img_right').css({'background-color' : color5});
$('#imageright0').hide();

$('#imageright,#imageright1,#imageright2,#imageright3').show();
$('#imageright2').css({'height' : '187px', 'width' : '10px'});
$('#imageright').css({'height' : '50px'});

$('#img_up').fadeIn(animspeed);
$('#background').css({'background-color' : color5});
$('#imageup').css({'background-color' : color5});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color5});
$('#img_right').fadeIn(animspeed);

  var $comment ='';
  $comment=$('#ID3Services5blurb').html();
$comment = $comment+$('#service5more').html();
$('#servicestext').html($comment);

  $('#servicestext').fadeIn(animspeed);
});

/*________________________________PRODUCTS_________________________________*/

$('#products').click(function() {  	
$("#dividernodeimg").animate({ height:(10)}, animspeed)    
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('#background').css({'background-color' : color0});
$('h3,h4,h5').css({'color' : color0});
$('#wrappertext1a').hide();
$("#background").animate({ top:0}, animspeedslow)
$('#servicestext').hide();
$("#img_up").animate({ left: "328", width:"360"}, 0)
$("#dividernode").animate({ left: "103"}, 0)
$("#servicestext").animate({ left: "0", width:"503"}, 0)
$("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
$('#wrapper2').fadeOut(animspeed);
$('#img_right').fadeOut(animspeed);
$('#topline').fadeOut(animspeed);
$('#downarrow').fadeOut(animspeed);
$('#dividernode').fadeOut(animspeed);
$('#servicestext').hide();
$('#dividerimage1').hide();
$('#img_up').hide();
$('#divider').hide();
$('#dividerimage1').hide();
$('#acrossdiv,#updiv').hide();
$('#topcirclediv,#acrossandupdiv,#updiv').show();
$('#updiv').css({'height' : '8px'});
$('#dividerimage1').fadeIn(animspeed);
$('#divider').show();

var $comment ='';
var $blank = '';
var $addcomment='';
$comment=$('#ID3Productsblurb').html();
  /*
  $addcomment = $('#ID3Products1').find('.pic');
 
  $addcomment.each(function(index) {
	$comment = $comment+$(this).outerHTML();
  });*/
$('#servicestext').html($blank);

/*   $("#servicestext").animate({ left: leftmoveneg, width:600}, animspeedslow)
*/
 $nextcomment = $('#ID3Products1').html();
 $('#servicestext .subcontent4,.subcontent5').show();
 $('#wrappertext1a').html($blank);
 $('#wrappertext1a').html($comment);
 $('#servicestext').html($nextcomment);

 
 $bull=$('#loadbullet').html();
 $('#servicestext h4').prepend($bull);
 $('.bullet').css({'background-color' : color0});
 $('.subcontent4,.subcontent5').show();
 $('.subcontent4,.subcontent5').hide();	

BindService();

 $('#ID3Products1blurb').hide();
 $('#wrappertext1a').fadeIn(animspeed);
 $('#servicestext').fadeIn(animspeed);
 var servlength = $('#servicestext').height();

 $('#dividernode').show();
 $("#dividernodeimg2").animate({ top: "20"}, 0);
 $('#dividernodeimg2,#dividernodeimg3').css({'background-color' : color0});
 $('#dividernodeimg').css({'background-color' : '#000'});
 $("#dividernodeimg").animate({ height:30}, animspeed) ;
 $("#background").animate({ top:(servlength-100)}, 0);
 $("#dividernodeimg2").animate({ top:50}, animspeed);
 $("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed) ;
SwooshHeightProduct();


});
/*_________________________________CLIENTS____________________________________*/


$('#clients').click(function() {  	
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('#background').css({'background-color' : color0});
$('h3,h4,h5').css({'color' : color0});
$('#wrappertext1a').hide();
$("#background").animate({ top:0}, animspeedslow)
$("#img_up").animate({ left: "328", width:"360"}, 0)
$("#dividernode").animate({ left: "103"}, 0)
$("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
$("#servicestext").animate({ left: "0", width:"503"}, 0)
$('#wrapper2').fadeOut(animspeed);
$('#img_right').fadeOut(animspeed);
$('#topline').fadeOut(animspeed);
$('#downarrow').fadeOut(animspeed);
$('#dividernode').fadeOut(animspeed);
/*$('#servicestext').hide();
*/
$('#dividerimage1').hide();
$('#img_up').hide();
$('#divider').hide();
$('#dividerimage1').hide();
$('#acrossdiv').hide();
$('#topcirclediv,#acrossandupdiv,#updiv').show();
$('#updiv').css({'height' : '48px'});
$('#dividerimage1').fadeIn(animspeed);
$('#divider').show();
var $comment ='';
var $addcomment='';
var $nextcomment='';

$comment=$('#ID3Clientsblurb').html();
/*$nextcomment =$nextcomment + $('#linebreak').html(); 
*/$addcomment = $('#ID3Clients1').find('.client');
 $addcomment.each(function(index) {
  $nextcomment = $nextcomment+$(this).outerHTML();
  });
$nextcomment =$nextcomment + $('#clientextra').html();
$('#wrappertext1a').html($comment);
$('#wrappertext1a').fadeIn(animspeed);
$('#servicestext').html($nextcomment);
$('#servicestext').fadeIn(animspeed);
$bull=$('#loadbullet').html();
$('#servicestext h4').prepend($bull);
$('.bullet').css({'background-color' : color0});
$('.subcontent4,.subcontent5').hide();	

$('#servicestext h4.Clients4').bind('click', function() {
$addcomment = $(this).parent().find('.subcontent4');
$addcomment.each(function(index) {
	 $(this).toggle();
	 var ctext = $(this).html();
  });
var servlength = $('#servicestext').height();
var servchange = servlength - 200;
$("#background").animate({ top:servchange}, 0);

});

$("#background").animate({ top:750}, 0)
 var servlength = $('#servicestext').height();
 $("#background").animate({ top:(servlength-100)}, 0);
SwooshHeight();


});

/*________________________________PARTNERSHIPS_________________________________*/


$('#partnerships').click(function() {  	
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$("#dividernodeimg").animate({ height:(10)}, animspeed)  
$('#background').css({'background-color' : color0});
$('h3,h4,h5').css({'color' : color0});
$('#wrappertext1a').hide();
$("#background").animate({ top:0}, animspeedslow)
/*$('#servicestext').hide();
*/
$("#img_up").animate({ left: "328", width:"360"}, 0)
$("#dividernode").animate({ left: "103"}, 0)
$("#servicestext").animate({ left: "0", width:"503"}, 0)
$("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
$('#wrapper2').fadeOut(animspeed);
$('#img_right').fadeOut(animspeed);
$('#topline').fadeOut(animspeed);
$('#downarrow').fadeOut(animspeed);
$('#dividernode').fadeOut(animspeed);
/*$('#servicestext').hide();
*/
$('#dividerimage1').hide();
$('#img_up').hide();
$('#divider').hide();
$('#dividerimage1').hide();
$('#acrossdiv,#updiv').hide();
$('#topcirclediv,#acrossandupdiv').show();
$('#acrossdiv').hide();
$('#topcirclediv,#acrossandupdiv,#updiv').show();
$('#updiv').css({'height' : '28px'});
$('#dividerimage1').fadeIn(animspeed);
$('#divider').show();
var $comment ='';
var $blank = '';
var $addcomment='';
$comment=$('#ID3Partnershipsblurb').html();
  /*
  $addcomment = $('#ID3Products1').find('.pic');
 
  $addcomment.each(function(index) {
	$comment = $comment+$(this).outerHTML();
  });*/
$('#servicestext').html($blank);

/*   $("#servicestext").animate({ left: leftmoveneg, width:600}, animspeedslow)
*/
$nextcomment = $('#ID3Partnerships1').html();
/*$('#servicestext .subcontent4,.subcontent5').show();
*/
/*$('#wrappertext1a').html($blank);
*/$
('#wrappertext1a').html($comment);
$('#wrappertext1a').fadeIn(animspeed);
$('#servicestext').html($nextcomment);
$('#servicestext').fadeIn(animspeed);

/*$('#servicestext .subcontent4,.subcontent5').show();
*/
$bull=$('#loadbullet').html();
$('#servicestext h4').prepend($bull);
$('.bullet').css({'background-color' : color0});
$('.subcontent4,.subcontent5').hide();	

$('#ID3Partnerships1blurb').hide();
 
BindService();

var servlength = $('#servicestext').height();
$('#dividernode').show();
$("#dividernodeimg2").animate({ top: "20"}, 0);
$('#dividernodeimg2,#dividernodeimg3').css({'background-color' : color0});
$('#dividernodeimg').css({'background-color' : '#000'});
$("#dividernodeimg").animate({ height:30}, animspeed) ;
$("#background").animate({ top:(servlength-100)}, 0);
$("#dividernodeimg2").animate({ top:50}, animspeed);
$("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed) ;
SwooshHeightProduct();



});
/*______________________________________BLOG_______________________________________*/


$('#blog').click(function() {  	
						  
	
						  
$("#dividernodeimg2").animate({ height:(8)}, animspeed)  
$('#background').css({'background-color' : color0});
$('h3,h4,h5').css({'color' : color0});
$('#wrappertext1a').hide();
$("#background").animate({ top:0}, animspeedslow)
$('#servicestext').hide();
$("#img_up").animate({ left: "328", width:"360"}, 0)
$("#dividernode").animate({ left: "103"}, 0)
$("#servicestext").animate({ left: "0", width:"503"}, 0)
$("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
$('#wrapper2').fadeOut(animspeed);
$('#img_right').fadeOut(animspeed);
$('#topline').fadeOut(animspeed);
$('#downarrow').fadeOut(animspeed);
$('#dividernode').fadeOut(animspeed);
$('#servicestext').hide();
$('#dividerimage1').hide();
$('#img_up').hide();
$('#divider').hide();
$('#dividerimage1').hide();
$('#acrossdiv,#updiv').hide();
$('#topcirclediv,#acrossandupdiv').show();
$('#acrossdiv').hide();
$('#topcirclediv,#acrossandupdiv,#updiv').show();
$('#updiv').css({'height' : '68px'});
$('#dividerimage1').fadeIn(animspeed);
$('#divider').show();
var $comment ='';
var $blank = '';
var $addcomment='';
$comment=$('#ID3Blogblurb').html();
$('#servicestext').html($blank);
$nextcomment = $('#ID3Blog1').html();
$('#servicestext .subcontent4,.subcontent5').show();
$('#wrappertext1a').html($blank);
$('#wrappertext1a').html($comment);
$('#servicestext').html($nextcomment);
$bull=$('#loadbullet').html();
$('#servicestext h4').prepend($bull);
$('.bullet').css({'background-color' : color0});
$('.subcontent4,.subcontent5').hide();	
$('#ID3Blog1blurb').hide();
$('#wrappertext1a').fadeIn(animspeed);
$('#servicestext').fadeIn(animspeed);

window.open("http://focusedpartnerships.wordpress.com");
						  

});
/*_____________________________________TEAM_______________________________*/


$('#team').click(function() {  	
 $("#dividernodeimg2").animate({ height:(8)}, animspeed)  
 $('#background').css({'background-color' : color0});
 $('h3,h4,h5').css({'color' : color0});
 $('#wrappertext1a').hide();
 $("#background").animate({ top:0}, animspeedslow)
 $("#img_up").animate({ left: "328", width:"360"}, 0)
 $("#dividernode").animate({ left: "103"}, 0)
 $("#servicestext").animate({ left: "0", width:"341"}, 0)
 $("#wrappertext1a").animate({ left: "0", width:"503"}, 0)
 $('#wrapper2').fadeOut(animspeed);
 $('#img_right').fadeOut(animspeed);
 $('#img_up').hide();
 $('#topline').fadeOut(animspeed);
 $('#downarrow').fadeOut(animspeed);
 $('#dividernode').fadeOut(animspeed);
 $('#servicestext').hide();
 $('#dividerimage1').hide(); 
 $('#divider').hide();
 $('#dividerimage1').hide();
 $('#acrossdiv').hide();
 $('#topcirclediv,#acrossandupdiv,#updiv').show();
 $('#updiv').css({'height' : '88px'});
 $('#dividerimage1').fadeIn(animspeed);
 $('#divider').show();

  var $comment ='';
  $details = $('#teamdetails').outerHTML();
  $comment = $details+$('#ID3Team1').html();
  $('#wrappertext1a').html($comment);
  $('#ID3Team1blurb').hide();
  $bull=$('#loadbullet').html();

 $('#wrappertext1a h4').prepend($bull);
 $('.subcontent4,.subcontent5').hide();	
 $('#wrappertext1a h4.Team4').live('mouseover', function() {
						  
$addcomment = $(this).parent().find('.subcontent4');

$addcomment.each(function(index) {
	var ctext = $(this).html();
	$('#teamdetails').html(ctext);					  
  });
});

 $('.bullet').css({'background-color' : color0});
 $('#wrappertext1a .bullet').css({'left' : '-15px'});
 $('#background').css({'background-color' : color0});
 $('#wrappertext1a').fadeIn(animspeed);
});

/*______________________________________CONTACT______________________________*/

$('#contactus').click(function() {  
 $("#dividernodeimg2").animate({ height:(8)}, animspeed)  
 $('#background').css({'background-color' : color0});
 $("#background").animate({ top:0}, animspeedslow)
 $('#wrapper2').fadeOut(animspeed);
 $('h3,h4,h5').css({'color' : color0});
 $('#wrappertext1a').hide();
 var $comment ='';
 $comment=$('#contactdiv').html();
 $comment = $comment + $('#contactform').html();
 $('#wrappertext1a').html($comment);
 $('#img_up').fadeOut(animspeed);
 $('#topline').fadeOut(animspeed);
 $('#downarrow').fadeOut(animspeed);
 $('#dividernode').fadeOut(animspeed);
 $('#img_right').fadeOut(animspeed);
 $('#servicestext').fadeOut(animspeed);
 $('#dividerimage1').hide();
 $('#divider').hide();
 $('#acrossdiv').hide();
 $('#topcirclediv,#acrossandupdiv,#updiv').show();
 $('#updiv').css({'height' : '108px'});
 $('#dividerimage1').fadeIn(animspeed);
 $('#divider').show();
 $('#background').css({'background-color' : '#000'});
 $('#background').css({'background-color' : '#0099ff'});
 $('#wrappertext1a').fadeIn(animspeed);
 var servlength = $('#wrappertext1a').height();
 var servchange = servlength + 100;
 $("#background").animate({ top:servchange}, 0)

});

/*____________________________________________________________________________________*/


}); 
/*________________________CALLED JAVASCRIPT ROUTINES (WITH JQUERY)_________________*/


function blogclick(){
	
	window.open("http://focusedpartnerships.wordpress.com");

	}

function clickmore(service){
	if(service == "services1") {
 $("#img_up").animate({ left: leftmovepos, width:widthline}, animspeed)
 $("#dividernode").animate({ left: nodeleft}, animspeed)
 $("#servicestext").animate({ left: leftmoveneg, width:widthservtext}, animspeed)
 $comment=$('#ID3Services1').html();
 $('#servicestext').html($comment);
 $('#servicestext').fadeIn(animspeed);
  $bull=$('#loadbullet').html();
  $subbull=$('#loadsubbullet').html();
 $('#servicestext h4').prepend($bull);
  $('#servicestext h5').prepend($subbull);
 $('.bullet').css({'background-color' : color1});
 $('h3,h4,h5').css({'color' : color1});
$('#img_right').css({'background-color' : color1});
$('#background').css({'background-color' : color1});
$('#imageup').css({'background-color' : color1});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color1});
 $('.subcontent4,.subcontent5').hide();

BindService();

var servlength = $('#servicestext').height();
 $("#background").animate({ top:(servlength-100)}, animspeed)
  $("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed)  
  

}
	
	if(service == "services2") {
 $("#img_up").animate({ left: leftmovepos, width:widthline}, animspeed)
 $("#dividernode").animate({ left: nodeleft}, animspeed)
 $("#servicestext").animate({ left: leftmoveneg, width:widthservtext}, animspeed)
 $comment=$('#ID3Services2').html();
 $('#servicestext').html($comment);
 $('#servicestext').fadeIn(animspeed);
  $bull=$('#loadbullet').html();
  $subbull=$('#loadsubbullet').html();
  $('#servicestext h4').prepend($bull);
  $('#servicestext h5').prepend($subbull);
$('#ID5Services a').live('mouseover', function() {
$(this).css({'color' : color2});
});
$('#ID5Services a').live('mouseout', function() {
$(this).css({'color' : colorwhite});
});
 $('.bullet').css({'background-color' : color2});
$('h3,h4').css({'color' : color2});
$('h5').css({'color' : colorwhite});
$('#img_right').css({'background-color' : color2});
$('#background').css({'background-color' : color2});
$('#imageup').css({'background-color' : color2});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color2});

 $('.subcontent4,.subcontent5').hide();
 BindService();

 var servlength = $('#servicestext').height();
 $("#background").animate({ top:(servlength-100)}, animspeed) 
 $("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed)  
}
	
	if(service == "services3") {
 $("#img_up").animate({ left: leftmovepos, width:widthline}, animspeed)
 $("#dividernode").animate({ left: nodeleft}, animspeed)
 $("#servicestext").animate({ left: leftmoveneg, width:widthservtext}, animspeed)
  $comment=$('#ID3Services3').html();
  $('#servicestext').html($comment);
  $('#servicestext').fadeIn(animspeed);
    $bull=$('#loadbullet').html();
  $subbull=$('#loadsubbullet').html();


 $('#servicestext h4').prepend($bull);
  $('#servicestext h5').prepend($subbull);

 $('.bullet').css({'background-color' : color3});
 $('h3,h4,h5').css({'color' : color3});
$('#img_right').css({'background-color' : color3});
$('#background').css({'background-color' : color3});
$('#imageup').css({'background-color' : color3});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color3});

  $('.subcontent4,.subcontent5').hide();
BindService();

   var servlength = $('#servicestext').height();
$("#background").animate({ top:(servlength-100)}, animspeed)
  $("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed)  
  
  	}
	
	if(service == "services4") {
 $("#img_up").animate({ left: leftmovepos, width:widthline}, animspeed)
 $("#dividernode").animate({ left: nodeleft}, animspeed)
 $("#servicestext").animate({ left: leftmoveneg, width:widthservtext}, animspeed)
  $comment=$('#ID3Services4').html();
  $('#servicestext').html($comment);
  $('#servicestext').fadeIn(animspeed);
    $bull=$('#loadbullet').html();
  $subbull=$('#loadsubbullet').html();
 $('#servicestext h4').prepend($bull);
  $('#servicestext h5').prepend($subbull);
 $('.bullet').css({'background-color' : color4});
 $('h3,h4,h5').css({'color' : color4});
$('#img_right').css({'background-color' : color4});
$('#background').css({'background-color' : color4});
$('#imageup').css({'background-color' : color4});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color4});

  $('.subcontent4,.subcontent5').hide();
  BindService();

   var servlength = $('#servicestext').height();
$("#background").animate({ top:(servlength-100)}, animspeed)
  $("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed)  
  
  	}
	
	if(service == "services5") {
 $("#img_up").animate({ left: leftmovepos, width:widthline}, animspeed)
 $("#dividernode").animate({ left: nodeleft}, animspeed)
 $("#servicestext").animate({ left: leftmoveneg, width:widthservtext}, animspeed)
  $comment=$('#ID3Services5').html();
  $('#servicestext').html($comment);
  $('#servicestext').fadeIn(animspeed);
    $bull=$('#loadbullet').html();
  $subbull=$('#loadsubbullet').html();


 $('#servicestext h4').prepend($bull);
  $('#servicestext h5').prepend($subbull);
$('#ID5Services a').live('mouseover', function() {
$(this).css({'color' : color5});
});
$('#ID5Services a').live('mouseout', function() {
$(this).css({'color' : colorwhite});
});
 $('.bullet').css({'background-color' : color5});
$('h3,h4').css({'color' : color5});
$('h5').css({'color' : colorwhite});
$('#img_right').css({'background-color' : color5});
$('#background').css({'background-color' : color5});
$('#imageup').css({'background-color' : color5});
$('#dividernodeimg,#dividernodeimg2,#dividernodeimg3').css({'background-color' : color5});

  $('.subcontent4,.subcontent5').hide();
  BindService();

   var servlength = $('#servicestext').height();
$("#background").animate({ top:(servlength-100)}, animspeed)
  $("#dividernodeimg2").animate({ height:(servlength-10)}, animspeed)  
  
  	}
}


/*_________________________________MISC JAVASCRIPT FUNCTIONS____________________*/



function getheight(){
	
	var servlength = $('#servicestext').height();

	}

function toggleheading(){

var comment = this.innerHTML;

   alert(comment);

}


