$(document).ready(function(){

/* Start Search */
$('[WaterMark]').each
			(
			  function()
			  {
				 $(this).addClass('watermark').val($(this).attr('WaterMark'));
				 $(this).focus(function() { if($(this).val() == $(this).attr('WaterMark')) $(this).removeClass('watermark').val(''); });
				 $(this).blur(function() { if($.trim($(this).val()) == '') $(this).addClass('watermark').val($(this).attr('WaterMark')); });
			  }
			);
			
/* End search */




$("ul.topnav li a.ps").mouseover(function() { //When trigger is clicked...

//Following events are applied to the subnav itself (moving subnav up and down)
$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
$(this).parent().find("ul.subnav").css("z-index","999999");

$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
});

//Following events are applied to the trigger (Hover events for the trigger)
}).hover(function() {
$(this).addClass("subhover"); //On hover over, add class "subhover"
}, function(){ //On Hover Out
$(this).removeClass("subhover"); //On hover out, remove class "subhover"
});


/*  highligt the left links */
    var loc = window.location.toString().split("/");
    loc = loc[loc.length - 1];

	$("#txt-nav ul li a[href=\""+loc+"\"]").addClass("selected");
	
	$(".nav a[href=\""+loc+"\"]").addClass("selected");
/* End left Links */


	Cufon.replace("a.procufon");

		$('#example1').bxSlider({
            displaySlideQty: 4,
            moveSlideQty: 1,
			auto: true
        });
		$('#example2').bxSlider({
            displaySlideQty: 4,
            moveSlideQty: 1 ,
			auto: true
        });
		$('#example3').bxSlider({
            displaySlideQty: 4,
            moveSlideQty: 1 ,
			auto: true
        });


/* Porduct & Services */
//Full Caption Sliding (Hidden to Visible)
$('.boxgrid.captionfull').hover(function(){
	$(".cover", this).stop().animate({top:'135px'},{queue:false,duration:160});
}, function() {
	$(".cover", this).stop().animate({top:'196px'},{queue:false,duration:160});
});




}); 



