﻿/*Bolica Web Design - Egytin Freelancer Web Designer - Ahmed Bolica - www.Bolica.net*/
	function formatText(index, panel) {
	  return index + "";
	}

	$(function () {
	
		$('.anythingSlider').anythingSlider({
			easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
			autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
			delay: 3000,                    // How long between slide transitions in AutoPlay mode
			startStopped: false,            // If autoPlay is on, this can force it to start stopped
			animationTime: 600,             // How long the slide transition takes
			hashTags: true,                 // Should links change the hashtag in the URL?
			buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
			pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
			startText: "Go",             // Start text
			stopText: "Stop",               // Stop text
			navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
		});
		
		$("#slide-jump").click(function(){
			$('.anythingSlider').anythingSlider(6);
		});
		
	});


$(function() {
	
<!-- For Lazy Load Images -->
	
	$(".mainContent img").lazyload({
			placeholder : "../img/ajax-loader.gif",
			effect : "fadeIn"
		});
		
<!-- For Highlighting social icons on Footer -->	
	$('#footer ul.social img').css('opacity', '.8');
	$('#footer ul.social a').hover (function() {
		$('img',this).stop(true).animate({
			opacity : '1'
		}, '10');
	}, function() {
		$('img',this).stop(true).animate({
			opacity : '.8'
		});
	});
		
<!-- For Fading Link Images -->	

	$('a.photo, a.video, a.content').hover (function() {
		$(this).css('background-color', '#333333');		
		$('img', this).fadeTo(300, 0.4);
	}, function() {
		$(this).css('background-color', '#FFFFFF');
		$('img, this').stop().fadeTo(300, 1);
	});

<!-- Login pop-up -->
	// Show/hide remind password panel
	$('#remindBlock').css('display','none');
		$('#remind').click(function() {
			$('#remindBlock').toggle();
		});
});

<!-- For sliding up -->
		
	function scrollWin(){
		$('html').animate({
		scrollTop: $("#header").offset().top
		}, 800);
	}
/*Bolica Web Design - Egytin Freelancer Web Designer - Ahmed Bolica - www.Bolica.net*/
