
$(document).ready(function(){


 
$('#homepage_btn').hover(
    function(){ 
      $('#homepage_btn').html('homepage');
    },function(){
      $('#homepage_btn').html('');
 
    }
)
$('#portfolio_btn').hover(
    function(){ 
      $('#portfolio_btn').html('portfolio');
    },function(){
      $('#portfolio_btn').html('');
 
    }
)
$('#services_btn').hover(
    function(){ 
      $('#services_btn').html('services');
    },function(){
      $('#services_btn').html('');
 
    }
)
$('#contacts_btn').hover(
    function(){ 
      $('#contacts_btn').html('contacts');
    },function(){
      $('#contacts_btn').html('');
 
    }
)
$('#who_are_we_btn').hover(
    function(){ 
      $('#who_are_we_btn').html('who are we');
    },function(){
      $('#who_are_we_btn').html('');
 
    }
)



 
  $('#basic_plan').hover(
	  function(){   
  

  			$('#basic_right').css( "backgroundPosition", "-3px -105px");
        $('#basic_price').stop(true, true).slideToggle();
        return false;

  	},function(){

          $('#basic_right').css( "backgroundPosition", "-3px 0");
          $('#basic_price').stop(true, true).slideToggle();
          return false;  
  	}
)
  $('#advanced_plan').hover(

	  function(){   
          $('#advanced_right').css( "backgroundPosition", "-107px -105px");
          $('#advanced_price').stop(true, true).slideToggle();
          return false;

  	},function(){
  				$('#advanced_right').css( "backgroundPosition", "-107px 0");
          $('#advanced_price').stop(true, true).slideToggle();
          return false;

  	}
)
  $('#custom_plan').hover(

	  function(){   
  				$('#custom_right').css( "backgroundPosition", "-211px -105px");
          $('#custom_price').stop(true, true).slideToggle();
          return false;
  	},function(){
  				$('#custom_right').css( "backgroundPosition", "-211px 0");
          $('#custom_price').stop(true, true).slideToggle();
          return false;
  	}
)

  $('.portfolio_projects').hover(
   

    function(){ 
     
     
        project_id= "#"+$(this).attr('id');
        project_id_hover= project_id+'_hover';  
        x = $(this).attr('id').substr(0,1);
     
        if(x=='b')
        {$(project_id_hover).css('background-image', 'url("site_images/portfolio/project_basic_hover.png")');}
        else if(x=='a')
           {$(project_id_hover).css('background-image', 'url("site_images/portfolio/project_advanced_hover.png")');}
        else if(x=='c')
         {$(project_id_hover).css('background-image', 'url("site_images/portfolio/project_custom_hover.png")');}

//$(this).animate({'opacity': '1'}, 300);
      // $(project_id).append('<div id="project_screen_hover">bla bbl</div>');
          $(project_id_hover).stop(true, true).slideToggle();
        //  $('#custom_right').css( "backgroundPosition", "-206px -105px");
         // $('#custom_price').stop(true, true).slideToggle();
          return false;
    },function(){
       //$( this ).animate({'opacity': '0'}, 300);
       $(project_id_hover).stop(true, true).slideToggle();
       
        //  $('#custom_right').css( "backgroundPosition", "-206px 0");
        //  $('#custom_price').stop(true, true).slideToggle();
          return false;
    }
)


$('.services_btn').click(function(){
  
    //  alert($('#main_box').attr('class'))

   //   tab_name = '#'+$(this).attr('id')+'_t';
      
   //  $(tab_name).css('display', 'block');
})





})








