
//created by siavash keshmiri for TeneT studio
$(document).ready(function(){

	
	$("#column ul li >a ").hover(function(){  
        $(this).stop().animate({paddingLeft:"10px"},200,"swing");},
        function(){
        $(this).stop().animate({paddingLeft:"5px"},200,"swing");}
        
    );
	$(".notfound a").hover(function(){  
        $(this).stop().animate({paddingLeft:"5px"},200,"swing");},
        function(){
        $(this).stop().animate({paddingLeft:"0px"},200,"swing");}
        
    );		
	
	$("img.b").stop().animate({"opacity": "0"}, "slow");
	$("img.a").hover( function() {
		$(this).stop().animate({"opacity": "0"}, "slow"),
		$("img.b").stop().animate({"opacity": "1"}, "slow");}, function() {
		$(this).stop().animate({"opacity": "1"}, "slow"),
		$("img.b").stop().animate({"opacity": "0"}, "slow"); 
	});
	
	
	
/*	$("#pagecontent").click(function(){
		if ($("#pagecontent").is('.off')) {
							$("#pagecontent").stop().animate({width: '550px',opacity: '1'}, 500);
							$("#pagecontent").removeClass("off");
							$("#pagecontent").addClass("on");
							
	
			}else{
				$("#pagecontent").stop().animate({width: '250px',opacity: '0.7'}, 500);
				$("#pagecontent").removeClass("on");
				$("#pagecontent").addClass("off");
				}
		});
		*/
		
	$("#pagecontent").hover(function(){
				$("#pagecontent h3").stop().css({color: '#fff'}, 500);
				$("#pagecontent").stop().animate({width: '590px',opacity: '0.95'}, 500);
				$("#pagecontent").removeClass("off");
				$("#pagecontent").addClass("on");
		},
        function(){
				$("#pagecontent h3").stop().css({color: '#666'}, 500);
				$("#pagecontent").stop().animate({width: '250px',opacity: '0.7'}, 500);
				$("#pagecontent").removeClass("on");
				$("#pagecontent").addClass("off");
				}
        
    );
	
			
	$("#homeside img").hover(function(){
				$(this).stop().animate({opacity: '0.999'}, 300);
		},
        function(){
				$(this).stop().animate({opacity: '0.5'}, 300);
				}
        
    );
	
	
	$('#slideshow').cycle({
		fx: 'fade',// choose your transition type, ex: fade, scrollUp, shuffle, etc...
		pause:   1 ,
		requeueOnImageNotLoaded: true
		
	});
	$('#slidenews').cycle({
		fx: 'scrollUp',
		timeout: 5000,
		pause:   1 ,
		requeueOnImageNotLoaded: false
		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

	$('.homebottomchild').hover(function(){
		$(".homebottomimg", this).stop().animate({top: '-115px'}, 500);


	}, function() {
		$(".homebottomimg", this).stop().animate({top: '0'},300);

	});


})


