Warning: include(../lang/word_.php) [function.include]: failed to open stream: No such file or directory in /home/emotives/www/www/includes/js/site.js.php on line 3

Warning: include() [function.include]: Failed opening '../lang/word_.php' for inclusion (include_path='.:/usr/local/php53/lib/php') in /home/emotives/www/www/includes/js/site.js.php on line 3
// JavaScript Document $(document).ready(function() { $('body').animate({opacity:1},800); }) function grayscale(src) { var supportsCanvas = !!document.createElement('canvas').getContext; if (supportsCanvas) { var canvas = document.createElement('canvas'), context = canvas.getContext('2d'), imageData, px, length, i = 0, gray, img = new Image(); img.src = src; canvas.width = img.width; canvas.height = img.height; context.drawImage(img, 0, 0); imageData = context.getImageData(0, 0, canvas.width, canvas.height); px = imageData.data; length = px.length; for (; i < length; i += 4) { gray = px[i] * .3 + px[i + 1] * .59 + px[i + 2] * .11; px[i] = px[i + 1] = px[i + 2] = gray; } context.putImageData(imageData, 0, 0); return canvas.toDataURL(); } else { return src; } } function preload() { var images=new Array(); for (i = 0; i < preload.arguments.length; i++){ images[i] = new Image() images[i].src = preload.arguments[i] } } $(function(){ $('.mask').hover(function(){ $('.mask').css('overflow','visible'); }, function(){ $('.mask').css('overflow','hidden'); }) $('.menu a').each(function(){ var curr = $(this).attr('href'); var url = document.location.pathname; if(url==curr){ //$(this).addClass('active'); } }) $('.slides').slides({ preload: false, effect: 'fade', crossfade : true, generateNextPrev: false, generatePagination : true, play: 8000, fadeSpeed: 1000, hoverPause: false, pause: 8000 }); $('.box').click(function(){ window.location = $(this).find('a').attr('href'); }) $('.c1').delay(1000).animate({opacity:'1'},800, function(){ $('.c2').animate({opacity:'1'},800,function(){ $('.c3').animate({opacity:'1'},800,function(){ $('.c4').animate({opacity:'1'},800); }); }); }) $('#work .no_highlight').hover(function(){ $(this).children('.box').animate({ opacity : '1'},300); $(this).children('.box').attr('show','1'); },function(){ $(this).children('.box').animate({ opacity : '0'},300); } ) $('.no_highlight .box').click(function(){ window.location = $(this).attr('alt'); }) //contact_us $('.btn_send').click(function(){ var error = 0; $('input , textarea').removeClass('error'); if(!isEmail($('#email').val())){ $('#email').addClass('error'); error = 2; } if($('#client_name').val()==''){ error = 1; $('#client_name').addClass('error'); } if($('#company').val()==''){ error = 1; $('#company').addClass('error'); } if($('#tel').val()==''){ error = 1; $('#tel').addClass('error'); } if($('#email').val()==''){ error = 1; $('#email').addClass('error'); } if($('#msg').val()==''){ error = 1; $('#msg').addClass('error'); } if(error==2){ alert(''); }else if(error==1){ alert(''); } if(error==0){ $.ajax({ type: "POST", url: 'index.php?task=send_contact', data: '&client_name=' + $('#client_name').val().replace(/&/g , '#38') + '&company=' + $('#company').val().replace(/&/g , '#38') + '&email=' + $('#email').val().replace(/&/g , '#38') + '&tel=' + $('#tel').val() + '&msg=' + $('#msg').val().replace(/&/g , '#38'), success: function(response){ if(response==0){ alert(''); window.location = '/index.php'; }else { alert('Error'); } }}); } }) });