text: /*-----------------------------------------------------------------------------------*/
  /* 		Mian Js Start 
  /*-----------------------------------------------------------------------------------*/
  $(document).ready(function($) {
  "use strict"
  /*-----------------------------------------------------------------------------------*/
  /* 		CLIENTS LOGO SLIDE
  /*-----------------------------------------------------------------------------------*/
  $(".services-slide").owlCarousel({ 
  	autoplay:true,
  	autoplayHoverPause:true,
  	singleItem	: true,
  	navText: ["<i class='ion-ios-arrow-thin-left'></i>","<i class='ion-ios-arrow-thin-right'></i>"],
  	lazyLoad:true,
  	nav: true,
  	loop:true,
  	margin:30,	
  	responsive:{
          0:{
              items:1
          },
          600:{
              items:2
          },
          1200:{
              items:3
          },
  }});
  /*-----------------------------------------------------------------------------------
      TESTI SLIDERS
  /*-----------------------------------------------------------------------------------*/
  $(".testi-slides").owlCarousel({ 
      items : 1,
  	autoplay:true,
  	autoplayHoverPause:true,
  	singleItem	: true,
  	navText: ["<i class='ion-ios-arrow-thin-left'></i>","<i class='ion-ios-arrow-thin-right'></i>"],
  	lazyLoad:true,
  	nav: true,
  	loop:true,
  	animateOut: 'fadeOut'	
  });
  /*-----------------------------------------------------------------------------------
      Animated progress bars
  /*-----------------------------------------------------------------------------------*/
  $('.progress-bars').waypoint(function() {
    $('.progress').each(function(){
      $(this).find('.progress-bar').animate({
        width:$(this).attr('data-percent')
       },500);
  });},
  	{ 
  	offset: '100%',
      triggerOnce: true 
  });
  /*-----------------------------------------------------------------------------------*/
  /*	ISOTOPE PORTFOLIO
  /*-----------------------------------------------------------------------------------*/
  var $container = $('.port-wrap .items');
      $container.imagesLoaded(function () {
      $container.isotope({
      itemSelector: '.item',
      layoutMode: 'masonry'
    });
  });
   $('.filter li a').on('click', function () {
      $('.filter li a').removeClass('active');
      $(this).addClass('active');
      var selector = $(this).attr('data-filter');
      $container.isotope({
        filter: selector
      });
  return false;
  });
  /*-----------------------------------------------------------------------------------*/
  /*  SLIDER REVOLUTION
  /*-----------------------------------------------------------------------------------*/
  jQuery('.tp-banner').show().revolution({
    dottedOverlay:"none",
    delay:10000,
    startwidth:1170,
    startheight:825,
    navigationType:"bullet",
    navigationArrows:"solo",
    navigationStyle:"preview4",
    parallax:"mouse",
    parallaxBgFreeze:"on",
    parallaxLevels:[7,4,3,2,5,4,3,2,1,0],                       
    keyboardNavigation:"on",            
    shadow:0,
    fullWidth:"on",
    fullScreen:"off",
    shuffle:"off",            
    autoHeight:"off",           
    forceFullWidth:"off", 
    fullScreenOffsetContainer:""  
  });
  });
  /*-----------------------------------------------------------------------------------*/
  /*    CONTACT FORM
  /*-----------------------------------------------------------------------------------*/
  function checkmail(input){
    var pattern1=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
    	if(pattern1.test(input)){ return true; }else{ return false; }}     
      function proceed(){
      	var name = document.getElementById("name");
  		var email = document.getElementById("email");
  		var company = document.getElementById("company");
  		var web = document.getElementById("website");
  		var msg = document.getElementById("message");
  		var errors = "";
  		if(name.value == ""){ 
  		name.className = 'error';
  	  	  return false;}    
  		  else if(email.value == ""){
  		  email.className = 'error';
  		  return false;}
  		    else if(checkmail(email.value)==false){
  		        alert('Please provide a valid email address.');
  		        return false;}
  		    else if(company.value == ""){
  		        company.className = 'error';
  		        return false;}
  		   else if(web.value == ""){
  		        web.className = 'error';
  		        return false;}
  		   else if(msg.value == ""){
  		        msg.className = 'error';
  		        return false;}
  		   else 
  		  {
  	$.ajax({
  		type: "POST",
  		url: "php/submit.php",
  		data: $("#contact_form").serialize(),
  		success: function(msg){
  		//alert(msg);
  		if(msg){
  			$('#contact_form').fadeOut(1000);
  			$('#contact_message').fadeIn(1000);
  				document.getElementById("contact_message");
  			 return true;
  		}}
  	});
  }};
  
  