// JavaScript Document for Home Page's rollover projects and hover effect for gallery



sfHover = function() {

	var sfEls = document.getElementById("mainmenu").getElementsByTagName("LI");

	for (var i=0; i<sfEls.length; i++) {

		sfEls[i].onmouseover=function() {

			this.className+=" sfhover";

		}

		sfEls[i].onmouseout=function() {

			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");

		}

	}

}

if (window.attachEvent) window.attachEvent("onload", sfHover);

/* Hover effect for portfolio */

$(document).ready(function () {

	$(".page_gallery td a").hover( 

		  function () {

			$(this).find(".page_gallery_shadow").css( 'top', '-50000px' )

		  },

		  function () {

			$(this).find(".page_gallery_shadow").css( 'top', 'auto' )

		  }

	);

	if($.browser.safari){

		$(".page_gallery_shadow").css( 'margin-top', '1px' );

		$(".page_gallery_shadow").css( 'top', 'auto' );

	}

});



<!-- Home Page's rollover projects-->

function hideall() {

	//$("#b1").hide();

	$("#twd").hide();

	//$("#b2").hide();

	$("#tem").hide();

	//$("#b3").hide();

	$("#tes").hide();			

}

$(document).ready(function(){

   $("#wd").mouseover(function () {

   	  hideall();

      //$("#b1").css("display","block");

	  $("#twd").css("display","block");   

    });

   $("#em").mouseover(function () {

      hideall();

      //$("#b2").css("display","block");

	  $("#tem").css("display","block");      

    });

   $("#es").mouseover(function () {

      hideall();

      //$("#b3").css("display","block");     

	  $("#tes").css("display","block"); 

    });

    hideall();

    //$("#b1").show();

	$("#twd").show();        

 });


$(document).ready(function(){

/* Replaced Select boxes */



	$('#cat_inds').sSelect2().change(function () {
	var cat_serv_id = $('#cat_serv :selected').val();
	var cat_inds_id = $('#cat_inds :selected').val();

	location.href = "http://www.koves.com/portfolio/?cat_inds="+cat_inds_id+"&cat_serv="+cat_serv_id;

	});


$(".first").hide();




});


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: 4000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 900,             // How long the slide transition takes
		hashTags: true,                 // Should links change the hashtag in the URL?
		buildNavigation: true,          // 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)
		divNamebottom: "#slideimages", // Div Name Bottom Show images
		divNameDescription: "#textdescription"
	});
});
	
$(function () {       

	 $('.slider2').anythingSlider({

		  easing: "easeInBounce",        // 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: 5000,                    // How long between slide transitions in AutoPlay mode

		  startStopped: false,            // If autoPlay is on, this can force it to start stopped

		  animationTime: 900,             // How long the slide transition takes

		  hashTags: true,                 // Should links change the hashtag in the URL?

		  buildNavigation: true,          // 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)

		  divNamebottom: "#slider_roller", // Div Name Bottom Show images

		  divNameDescription: "#bottom_text"

	  });

  });
