	// #################################
	// Search form
	// #################################
	$(function() {
		$(" input.textboxsearch ").focus(function(){
			//$(this).siblings('.boxborder').fadeIn(500);
			$(this).parent().addClass("search-formhover");
			}).focusout(function(){
			//$(this).siblings('.boxborder').fadeOut(200);
			 $(this).parent().removeClass("search-formhover");
		 });
		$(".textboxsearch_header").focus(function(){
			$(this).parent().addClass("search_header_over");	
			$(this).parent().animate({width:"175px"},300);
		}).focusout(function(){
			$(this).parent().removeClass("search_header_over");
			$(this).parent().animate({width:"120px"},300);
		});
	});	
	// #################################
	// ZOOM PORTFOLIO HOVER
	// #################################
	$(function() {
	/*if(!($.browser.msie&&($.browser.version == "8.0"))&&!($.browser.msie&&($.browser.version == "7.0"))){}*/
		$("li.list_box a").hover(function(){							   
			$(this).children(".back").fadeIn(200);
		},function() {
			$(this).children(".back").fadeOut(100);
		});
	});	
	// #################################
	// shortcode image
	// #################################
	$(function() {
		$('body').ready(function(){
			$('.imageshover .imageshoverp').fadeOut(0);
			});
		$(".imageshover").hover(function(){
			$(this).find('.imageshoverp').fadeIn(100);
		},function(){
		$(this).find('.imageshoverp').fadeOut(100);
		});	
	});	
	// #################################
	// Show - Hide
	// ################################	
	$(function() {
		// Respond form
		$(".respondbtn").click(function () {
			$("#respondwrap").slideToggle(500, function() {
				if ($(this).is(":visible")) {
					$('html, body').animate({scrollTop: $(this).offset().top}, 500)
				}
			});
		});
		// Shortcode  Fold - Unfold
		$(".job_title").click(function () {
			$(this).siblings('.job_desc').slideToggle(500, function() {
				if ($(this).is(":visible")) {
					$('html, body').animate({scrollTop: $(this).offset().top}, 500)
				}
			});
		});
		// Footer Contact info.
		$("#footer_trggle").click(function () {
			$("#footunder").slideToggle(500, function() {
				if ($(this).is(":visible")) {
					$('html, body').animate({scrollTop: $(this).offset().top}, 300)
					$("#footer_trggle").removeClass('footer_open').addClass('footer_close');
					//$('html, body').animate({scrollTop:$('html, body').scrollTop() +150}, "slow");
				}else{
					$("#footer_trggle").removeClass('footer_close').addClass('footer_open');
				}
			});
		});
	});
	// #################################
	// Back Top
	// ################################	
	/**/
	$(document).ready(function(){
		$("#top").hide();
		$(function () {
			$(window).scroll(function(){
				if ($(window).scrollTop()>100){
					$("#top").fadeIn(300);
				}else{
					$("#top").fadeOut(300);
				}
			});
			$("#top").click(function(){
				$('body,html').animate({scrollTop:0},500);
				return false;
			});
		});
	});	
	// #################################
	// Verification Form
	// ################################
	//verification Footer-contact-form
jQuery(document).ready(function($){ 
		$('form#contact-form').submit(function() {
			//$('form#contact-form .error').remove();
			//$('form#contact-form .required').remove();
			var hasError = false;
			$('.requiredField').each(function() {
				if(jQuery.trim($(this).val()) == '' || jQuery.trim($(this).val()) == 'Name*' || jQuery.trim($(this).val()) == 'Email*' || jQuery.trim($(this).val()) == 'Required' || jQuery.trim($(this).val()) == 'Invalid email') {
					$(this).attr("value","Required");
					hasError = true;
				}else if($(this).hasClass('email')) {
            	var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
            	if(!emailReg.test(jQuery.trim($(this).val()))) {
            		$(this).attr("value","Invalid email");
            		hasError = true;
            		}
           		}else{
				}
			});
			//After verification , print some infos. 
			if(!hasError) {
				$('form#contact-form #idi_send').fadeOut('normal', function() {										  
					$(this).parent().append('<p class="sending">Sending...</p>');
				});
				var formInput = $(this).serialize();
				$.post($(this).attr('action'),formInput, function(data){
					$('form#contact-form').slideUp("fast", function() {
						$(this).before('<p class="success">Thanks, Your email was successfully sent.</p>');
						$('.sending').fadeOut();
					});
				});
			}
			return false;
	
		});
});
     //verification Comment
jQuery(document).ready(function($){ 
          $('form#commentform').submit(function() {
               var hasError = false;
               $('.requiredFieldcomm').each(function() {
                    if(jQuery.trim($(this).val()) == '' || jQuery.trim($(this).val()) == 'Name*' || jQuery.trim($(this).val()) == 'Email*' || jQuery.trim($(this).val()) == 'Required' || jQuery.trim($(this).val()) == 'Invalid email') {
                         $(this).attr("value","Required");
                         hasError = true;
                    } else if($(this).hasClass('email')) {
						 var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
						 if(!emailReg.test(jQuery.trim($(this).val()))) {
							  $(this).attr("value","Invalid email");
							  hasError = true;
						 }
					}else{
					}
               });
               //After verification , print some infos. 
			if(!hasError) {
				$('form#commentform .send_btn').fadeOut('normal', function() {										  
					$(this).parent().append('<span class="sending">Sending...</span>');
				});
				var formInput = $(this).serialize();
				$.post($(this).attr('action'),formInput, function(data){
					$('form#commentform').slideUp("fast", function() {
						$(this).before('<p class="success">Thanks, Your comment was successfully sent.</p>');
						$('.sending').fadeOut();
					});
				});
			}
               return false;
     
          });
});
