// JavaScript Document
/*--------------------------------------------------------*/
/*SLIDING PANELS START*/

/* Latest Projects */

$(document).ready(function(){
$('.boxgrid.caption').hover(function(){
$(".cover", this).stop().animate({bottom:'0px'},{queue:false,duration:160});
				}, function() {
					
$(".cover", this).stop().animate({bottom:'-180px'},{queue:false,duration:160});
					
});
});


/* Thumb img 270x180*/

$(document).ready(function(){
$('.small_home_box.infofull').hover(function(){

$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'215px'},{queue:false,duration:160});

});
});


/*SLIDING PANELS START*/
/* Thumb img 230x250*/

$(document).ready(function(){
$('.box.infofull').hover(function(){

$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'215px'},{queue:false,duration:160});

});
});


/* Stripe Home Peek 410x270*/
$(document).ready(function(){
$('.home.infofull').hover(function(){
$(".cover", this).stop().animate({top:'130px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});

});
});


/* Related Projects 130x130*/
$(document).ready(function(){
$('.related.infofull').hover(function(){
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'130px'},{queue:false,duration:160});

});
});


/*SLIDING PANELS END*/
/*--------------------------------------------------------*/
/*COLOR FADING START*/
/* main menu START */


/*
$(document).ready(function(){
						   
$(".link_sub_menu_16px_dark_bold_fading a").stop().hover(function() {
$(this).stop().animate({ color: "#EB5A5A" }, 300);
},function() {
$(this).animate({ color: "#111111" }, 300);
 
});
});


$(document).ready(function(){
						   
$(".link_sub_menu_16px_dark_bold_fading a").stop().hover(function() {
$(this).stop().animate({ color: "#EB5A5A" }, 300);
},function() {
$(this).animate({ color: "#111111" }, 300);
 
});
});
*/



/* main menu END */

/* Previous Next Buts*/
$(document).ready(function(){
						   
$(".prev_next_navigation a").stop().hover(function() {
$(this).stop().animate({ color: "#EB5A5A" }, 300);
},function() {
$(this).animate({ color: "#111111" }, 300);
 
});
});

/* sub menu */
$(document).ready(function(){
						   
$(".link_sub_menu_16px_D8D8D3_bold_fading a").stop().hover(function() {
$(this).stop().animate({ color: "#111111" }, 150);
},function() {
$(this).animate({ color: "#D8D8D3" }, 250);
 
});
});

/* sub menu BACKTOTOP */
$(document).ready(function(){
						   
$(".link_sub_menu_16px_white_bold_fading a").stop().hover(function() {
$(this).stop().animate({ color: "#EB5A5A" }, 150);
},function() {
$(this).animate({ color: "#FFFFFF" }, 250);
 
});
});

/* sub menu BACKTOTOP ARROW */

$(document).ready(function(){
 
$("img.backtotop_down").hover(
function() {
$(this).animate({"opacity": "0"}, 150);
},
function() {
$(this).animate({"opacity": "1"}, 250);
});
 
});


/*CONTACT FORM AREA START */
/* SENDBUTTON Contact Area */
$(document).ready(function(){
						   
$(".send_but_fading").stop().hover(function() {
$(this).stop().animate({ backgroundColor: "#E5E5E5" }, 150);
},function() {
$(this).animate({ backgroundColor: "#F5F5F5" }, 250);
 
});
});

/*CONTACT FORM AREA END */

/*COLOR FADING END*/
/*--------------------------------------------------------*/
/*PROJECT VIEW START*/

/* Number Navigation */
$(function () {
var imgContainers = $('div.tabs > div');
imgContainers.hide().filter(':first').show();
			
$('div.tabs ul.number_navigation a').click(function () {
imgContainers.hide();
imgContainers.filter(this.hash).show();
$('div.tabs ul.number_navigation a').removeClass('selected');
$(this).addClass('selected');
return false;
}).filter(':first').click();

/* Previous Next Navigation */
$('ul.prev_next_navigation a').click(function () {
var num = Number($('div.tabs > div:visible').attr('id').split('_')[1]);
		
if($(this).text() == 'Next') {
if (num < ($('div.tabs > div').size())) {
imgContainers.hide().eq(num).show();
$('div.tabs ul.number_navigation a').eq(num).addClass('selected');
$('div.tabs ul.number_navigation a').eq(num-1).removeClass('selected');
}
}
		
else {
if (num > 1 ) {
imgContainers.hide().eq(num-2).show();
$('div.tabs ul.number_navigation a').eq(num-2).addClass('selected');
$('div.tabs ul.number_navigation a').eq(num-1).removeClass('selected');
}
}
return false;
});
	
});

/*PROJECT VIEW END*/
/*--------------------------------------------------------*/
/*Contact Button START*/

function goLite(FRM,BTN)
{
window.document.forms[FRM].elements[BTN].style.color = "#111111";
window.document.forms[FRM].elements[BTN].style.backgroundColor = "#E5E5E5";
}

function goDim(FRM,BTN)
{
window.document.forms[FRM].elements[BTN].style.color = "#111111";
window.document.forms[FRM].elements[BTN].style.backgroundColor = "#F5F5F5";

}

/*Contact Button END*/
/*--------------------------------------------------------*/
/*--------------------------------------------------------*/



		

