/*----------------For Soft logos Changing Effect------------------*/
$('#s5').cycle({ 
    fx:      'zoom', 
    cssBefore: {  
        left: 115,  
        top:  115,  
        width: 0,  
        height: 0,  
        opacity: 1, 
        display: 'block' 
    }, 
    animOut: {  
        opacity: 0  
    }, 
    animIn: {  
        left: 0,  
        top: 0,  
        width: 200,  
        height: 200  
    }, 
    cssAfter: {  
        zIndex: 0 
    }, 
    delay: -3000 
});
/*----------------For Soft logos Changing Effect------------------*/

/*----------------For Client Speaks  Part------------------*/


$('#s1').cycle({ 
    fx:     'scrollVert', 
    timeout: 3000, 
    after:   onAfter 
});


$(function() {
// run the code in the markup!
$('td pre code').each(function() {
eval($(this).text());
});
//onAfter.apply($('td a:first')[0]);
});
function onAfter() {
$('#output').html("Current anchor: " + this.href);
} 

/*----------------For Client Speaks  Part------------------*/



/*----------------For Drop Down Menu-----------------------*/
$(document).ready(function(){

	$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	
	$("ul.topnav li span").click(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().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"
	});

});

/*----------------For Drop Down Menu-----------------------*/

