
$(document).ready(function(){
  $('#slider_area').bind("mouseenter",function(){
  $(this).cycle('pause');
	 return false;
    }).bind("mouseleave",function(){
      $(this).cycle('resume');
	   return false;
	});	

//home page slider			   
		$('#slider_area').cycle({ 
			fx:     'fade', 
			easing: 'easeInBack', 
			timeout: 5510, 
			pager:  '#numbers',
			pauseOnPagerHover: true,
			cleartype: 1,
			speed:4000,
			fastOnEvent:false,
			pagerEvent: 'click',
			pagerAnchorBuilder:function(id){
     		 return'<a href="#">&nbsp;</a>';
			}});
//End home page slider


/*Add menu item classes to each a tag under div#slider_area*/
$('#slider_area > div').eq(0).addClass("menu_item1");
$('#slider_area > div').eq(1).addClass("menu_item2");
$('#slider_area > div').eq(2).addClass("menu_item3");
$('#slider_area > div').eq(3).addClass("menu_item4");
$('#slider_area > div').eq(4).addClass("menu_item5");
$('#slider_area > div').eq(5).addClass("menu_item6");
/*End add menu item classes to each a tag under div#slider_area*/



$('#photos_2').cycle({ 
		  cleartypeNoBg: true,
			fx:     'fade', 
			easing: 'backin', 
			timeout: 2110 
		});

		$('#slider2').cycle({ 
				  cleartypeNoBg: true,
				  fx:     'scrollUp', 
				  easing: 'backinout', 
					  timeout:11000,        
					  prev:    '.test_arrows_left',
					  next:    '.test_arrows_right'
		});
	});

//twitter widget
  jQuery(document).ready(function($) {
	$(".twitter_entry").tweet({
	//write here your username
	  username: "themeforest",			
	  count: 1,
	  auto_join_text_url: "we were checking out",
	  loading_text: "loading tweets..."
	});
});
//twitter baloon
	$(document).ready(function(){
				var tbaloon= $(".twitter_baloon");
				var tbaloon_offset= $(".ticon").offset();
					$(".ticon").mouseover(function(){
							tbaloon.css({display:"none"}).fadeIn(400);
					}).mousemove(function(kmouse){
							tbaloon.css({left:tbaloon_offset.left+94, top:tbaloon_offset.top-28});
					}).mouseout(function(){
							tbaloon.fadeOut(400);
					});
	});
//social media icons
	$(document).ready(function(){
			var s_icon= $(".s_icon");
			$(".s_icon").mouseover(function(){
				 $(this).animate({ 
					opacity:1
					}, 200);
			}).mouseout(function(){
				s_icon.animate({ 
					opacity:0.4
					}, 100 );
			});
	});
//porffolio box texts
	$(document).ready(function(){
		$('.portfolio_con').hover(function(){
			$(".portfolio_text", this).stop().animate({left:'0px',opacity:0.8},{queue:false,duration:160});
		}, function() {
			$(".portfolio_text", this).stop().animate({left:'-360px'},{queue:false,duration:160});
		});
	});
//photo gallery - photo desc.
	$(document).ready(function(){
		$('.photo_gallery_con').hover(function(){
			$(".photo_gallery_text", this).stop().animate({left:'0px',opacity:0.8},{queue:false,duration:160});
		}, function() {
			$(".photo_gallery_text", this).stop().animate({left:'-360px'},{queue:false,duration:160});
		});
	});
//pretty photo
	$(document).ready(function(){
		$("a[rel^='prettyPhoto']").prettyPhoto({
											    allowresize:true
											   });
	});
	
	
	
	
//Drs. Credentials in About Us
$(document).ready(function(){
$('#page_left>ul>li>ul').hide();
$('#page_left>ul>li').click(
	 function(e)
	{ 
	   e.stopPropagation();
	  $(this).children().slideToggle();
	});
});
