//var history=new Array(); var menuarr=Object({index: 513, portfolio: 562, price: 769, contacts: 607, questions: 432}); var linkColor, proc, blins, blinkVar=true, wd, ie7=0, dr=false, w, h, x, y, dx=400, mapInterval, a=0, th, flex=true, rel='',wodo=menuarr['index'], imSrc=true; var cat=new Array( new Array('cat1', 300,10), new Array('cat2',100,2), new Array('cat3',150,6), new Array('cat4',80,-10) ); var shadows=new Object({left:0,top:0,opacity:0.5,blur:4,color:'#0000ff'}); var mainurl='http://istem.ru/'; document.write('
Loading: 0 %
'); var bw=new Object(); bw.msie=(navigator.appName.toLowerCase().indexOf("microsoft")!=-1 || navigator.appName.toLowerCase().indexOf("msie")!=-1)? true:false; bw.opera=(navigator.appName.toLowerCase().indexOf("opera")!=-1 || navigator.appName.toLowerCase().indexOf("presto")!=-1)? true:false; bw.mz=(navigator.appName.toLowerCase().indexOf("mozilla")!=-1 || navigator.appName.toLowerCase().indexOf("firefox")!=-1)? true:false; bw.sf=(navigator.appName.toLowerCase().indexOf("apple")!=-1 || navigator.appName.toLowerCase().indexOf("safari")!=-1)? true:false; bw.gch=(navigator.appName.toLowerCase().indexOf("google")!=-1 || navigator.appName.toLowerCase().indexOf("chrome")!=-1)? true:false; var its=new Array('branch','logo', 'logotype','mainImage'); var it=new Object(); for ( var k in its ) { it[its[k]]=new Object(); } it[its[0]]=({ name: 'div.branch', aps: ' > img', k: 322/248, sk: 0.25, h: 248, w: 322, t: 0, l: 0, sx: 0, sy: 0}); it[its[1]]=({ name: 'div.logo', aps: ' > img', k: 342/124, sk: 0.25, h: 124, w: 342, t: 35, l: 25, sx: 0.018, sy: 0.044}); it[its[2]]=({ name: 'div.logotype', aps: '', k: false, sk: 0.25, h: 110, w: 168, t: 40, l: 90, sx: 0.048, sy: 0.066}); it[its[3]]=({ name: 'div.mainImage', aps: ' > img', k: 390/500, sk: 0.25, h: 500, w: 390, t: '', l: 358, sx: 0.27, sy: 0.026}); function resized(){ w=$(window).width(); h=$(window).height(); $('#cover').css({ width: '1px',height: '1px' }); $('#cover').css({ width: w+'px',height: h+'px' }); $('#proc').css({marginTop: (h/2-20)+'px' }); } function resize(){ resized(); if ( dr ) { $('#cover').stop().fadeIn(1); } /* begin main Content */ for ( var k in its ) { s=its[k]; obj=$(it[s]['name']+it[s]['aps']); if ( it[s]['k'] ) { $(obj).css({ width: (it[s]['sk']*w)+'px', height: ((it[s]['sk']*w)/it[s]['k'])+'px'}); $(it[s]['name']).css({ width: (it[s]['sk']*w)+'px', height: ((it[s]['sk']*w)/it[s]['k'])+'px'}); if ( $(obj).width()>it[s]['w'] || $(obj).height()>it[s]['h'] ) { if ( $(obj).height()>it[s]['h'] ) { $(obj).height( $(obj).width()/it[s]['k'] ); } else { if ( $(obj).width()>it[s]['w'] ) { $(obj).width( $(obj).height()*it[s]['k'] ); } } } } if ( it[s]['t']!='' ) { $(it[s]['name']).css({top: (h*it[s]['sy'])+'px'}); } if ( it[s]['l']!='' ) { $(it[s]['name']).css({left: (w*it[s]['sx'])+'px'}); } } /* Additions */ a=$('div.logo').css('left') || '0px'; a=Number(a.substring(0,(a.length-2))); b=$('div.logo').css('top') || '0px'; b=Number(b.substring(0,(b.length-2))); $('div.logotype').css({ top: b+($('div.logo').height()/2) - ($('div.logotype').height()/2) +'px', left: a + ($('div.logo').width()/2) - ($('div.logotype').width()/2) +'px' }); $('div.line').css({left: a+$('div.logo').width()-9 + 'px'}); $('div.news').css({ width: (a+$('div.logo').width())-(5*a)+'px', height: 250+'px', top: $('div.branch').height()+'px', left: (4*a)+'px' }); $('div.textCover > img').css({ width: w*0.44+'px', height: (h-90)*0.6+'px' }); $('div.textCover').css({ right: h*0.036+'px' }); $('div.content').css({ right: h*0.036+25+'px', width: $('div.textCover > img').width()-50+'px' }); $('div.text').css({ height: $('div.textCover > img').height()-50+'px' }); $('div.mainImage').css({left: (a+$('div.logo').width())+((w-(a+$('div.logo').width()+(w*0.44+h*0.036)))/2)-($('div.mainImage > img').width()/2)+'px', height: $('div.mainImage > img').height()}); nwdt=$('div.textCover > img').width(); if ( wd img').width() )? $('div.mainImage > img').width():( x? x:234); y=( $('div.mainImage > img').height() )? $('div.mainImage > img').height():( y? y:300); /* end main Content */ if ( dr ) { $('#cover').fadeOut(50); } // window.status='Width: '+$(window).width()+'px; Height: '+$(window).height()+'px'; gds=a+$('div.logo').width();gds=(gds>247)? (gds-247):0; $('div.googleads').css({left: gds+'px'}); } function addResize(x,y){ w=$(window).width(); h=$(window).height(); a=$('div.logo').css('left'); a=Number(a.substring(0,(a.length-2))); $('div.content').css({ right: h*0.036+25+'px', width: $('div.textCover > img').width()-50+'px' }); aa=$('div.textCover').find('img').css('height') || '300px'; aa=Number(aa.substring(0,(aa.length-2))); // $('div.text').css({ height: (aa-50)+'px' }); $('div.mainImage > img').width(x); $('div.mainImage > img').height(y); $('div.mainImage').css({left: (a+$('div.logo').width())+((w-(a+$('div.logo').width()+(w*0.44+h*0.036)))/2)-(x/2)+'px'}); if ( imSrc ) { $('div.mainImage').fadeIn(300); } wd=0; $('div.link').each(function(){ wd+=$(this).width()+42+ie7; }); nwdt=$('div.textCover > img').width(); if ( wd10000 ) { clearTimeout(proc); $('#proc_id').text(''); $('#proc').text('System failure');} else { proc=setTimeout('preload();',Math.floor(50+(200*Math.random())) ); } } function blinks(objName){ return; $('#'+objName).css({display: (blinkVar? '':'none') }); blinkVar=blinkVar? false:true; blins=setTimeout('blinks("'+objName+'");',Math.floor(5+(10*Math.random())) ); } function tada(){ if (deconcept.SWFObjectUtil.getPlayerVersion()['major']>8) { $('body').append('
'); var so=new SWFObject('sound.swf','tada_a','30','30','9','#FFFFFF'); so.addParam('scale','noscale'); so.addParam('salign','TL'); so.addParam('wmode','transparent'); if ( GetVolume()=='0' ) { so.addVariable('splay','true'); } so.write('tada'); } else { flex=false; } } function docReady() { $('div.cat').click(getmortal); //$('div.cat').click(function(){var n=32,a='View ASCII:\t\n';for(i=n;i<(n+n);i++){a+=(String.fromCharCode(i)+' - '+i+' ('+Number(i).toString(16).toUpperCase()+') \t');a+=(String.fromCharCode(i+n)+' - '+(i+n)+' ('+Number((i+n)).toString(16).toUpperCase()+') \t');a+=(String.fromCharCode(i+n+n)+' - '+(i+n+n)+' ('+Number((i+n+n)).toString(16).toUpperCase()+') \n');}alert(a);return false;}); //setTimeout('tada()',500); ct=Math.floor(4*Math.random()); $('div.cat').css({right: cat[ct][1]+'px',top: cat[ct][2]+'px'}).html(''); var br=false; wd=0; $('div.link').each(function(){ wd+=$(this).width()+40; }); if ( bw.msie ) { if ( jQuery.browser.version<8 ) { /* IE scuk */ $('div.secondMenuLeft').css({float: 'none'}); if ( jQuery.browser.version<7 ) { /* IE 6/5.5 */ $('div.secondMenuPlank').css({marginLeft:'-3px'}); br=true; } $('div.cat').css({right: cat[1][1]+'px',top: cat[1][2]+'px'}).html(''); } else { /* IE 8 */ $('div.secondMenuLeft').css({float: 'left'}); } $('div.secondMenuPlank').css({width: wd+6+'px'}); ie7=6; } else { /* not IE */ $('div.secondMenuLeft').css({float: 'left'}); } reBlinks('proc'); resize(); if ( !br ) { init(); } else { var brs6n=new Array('Mozilla Firefox','Opera','Apple Safari','Google Chrome','Microsoft Internet Explorer'); var brs6=new Array('mozilla.com/ru/','opera.com/download/','apple.com/ru/safari/download/','google.ru/chrome','microsoft.com/rus/windows/internet-explorer/worldwide-sites.aspx'); ln='';for(var k in brs6) { ln+=''+brs6n[k]+'
'; } $('#proc').html('Ваш браузер устарел
Попробуйте новый?

'+ln); $('#proc').css({marginLeft: ($(window).width()/2-($('#proc').width()/2) )+'px',font:'12px/18px Arial',marginTop: ($(window).height()/2-100)+'px'}); setTimeout('$("#proc").fadeOut(1000,function(){ window.location.href="http://'+brs6[Math.floor((brs6.length-1)*Math.random())]+'" })',10000); } $('a').bind('click',getcontent); $('.link').bind('mouseover',vert).bind('mouseout',revert); } function slideWorld() { dx++; $('div.text').css({backgroundPosition: dx+'px -20px'}); //$('#cover').css({backgroundPosition: dx+'px -20px'}); mapInterval=setTimeout('slideWorld()',30); } function getcontent(){ if ( this.href.indexOf('questions/search')!=-1 ) { callSearch();return false; }; if ( this.href.indexOf('mailto:')!=-1 ) { return true; }; if ( $(this).attr('follow')=='nolink' ) { callTarif($(this).attr('rel'));return false; } if ( $(this).attr('follow')=='brief' ) { callBrief();return false; } if ( $(this).attr('follow')=='link' ) { return true; } if ( $(this).attr('follow')=='null' ) { return false; } if ( $(this).attr('rel')=='flash' ) { callFlash($(this).attr('href'));return false; } $('#cover').css({opacity:'0.1',background: 'url(images/map.jpg) center left repeat-x'}).fadeIn(100); $('div.text').fadeOut(100,function(){ $(this).html('').css({background: 'url(images/map.jpg) top center repeat-x'}).fadeIn(100); slideWorld(); }); if ( $(this).attr('rel') ) { rel=$(this).attr('rel'); } callFunc(this.href); $.post(mainurl+'ajax/getcontent.php?rand='+Math.random()+'&href='+this.href,{links: this.href}, function(data){ process(data); }); return false; } function historyBack(){ } function callFunc(s){ s=s.replace(mainurl,''); kl=false; for( var k in menuarr ) { if ( s.indexOf(k)!=-1 ) {kl=menuarr[k];break;} } wodo=kl? kl:menuarr.index; } function process(data) { data=data.split("%%"); x=( $('div.mainImage > img').width() )? $('div.mainImage > img').width():x; y=( $('div.mainImage > img').height() )? $('div.mainImage > img').height():y; clearTimeout(mapInterval); if( $('div.mainImage > img').attr('src').replace(mainurl,'')!=data[1].substring(data[1].indexOf('src="')+5, data[1].indexOf('"', data[1].indexOf('src="')+6)) ){ $('div.mainImage').fadeOut(200, function() { $(this).html(data[1]); }); imSrc=true; } else { imSrc=false; } $('div.secondMenuPlankUp').fadeOut(100, function(){$(this).html(data[0]);}); $('#content').fadeOut(200, function() { $(this).html(data[2]).fadeIn(200); }); setTimeout("addResize(x,y); $('a').unbind('click'); $('a').bind('click',getcontent);$('.link').unbind('mouseover').unbind('mouseout'); $('.link').bind('mouseover',vert).bind('mouseout',revert);$('#cover').fadeOut(100,function(){$(this).css({background:'#000'});});$(window).unbind('scroll').bind('scroll',textfocus);",300); } function reBlinks(objName){ clearTimeout(proc); $('#proc_id').text( ( (Number ($('#proc_id').text())>100)? $('#proc_id').text():'100' ) ); $('#proc_id').text(''); $('#proc').text('Loading complete...'); //clearTimeout(blins); blins=blinkVar=false; $('#'+objName).css({display:''}); } function init(){ $('div.secondMenu').hide(); $('div.cat').hide(); $('#cover').fadeOut(800,function(){ tada(); $('#proc').remove(); $('div.content').fadeIn(500); $('div.secondMenu').fadeIn(100,function(){ if ( wd>$('div.cat').width() ) { wdc=wd; } else { wdc=$('div.cat').width()+10; } wdc=menuarr.index-$('div.cat').width(); $('div.cat').css({right: ( ((wdc-$('div.cat').width())>($(window).width()/2))? ($(window).width()/2):(wdc-$('div.cat').width()) )+'px' }) .fadeIn(100); }); }); dr=true; } function vert(){ linkColor=this.style.color; $(this).stop().animate({ scrollTop: '18px' }, 200,function(){ $(this).css({color:'#fff',textDecoration:'underline'}); }); callswf(); } function revert(){ $(this).css({color:linkColor,textDecoration:'none'}); $(this).stop().animate({ scrollTop: '0px' }, 200); callswf(); } ////////////////////////////////////////////////// resized(); preload(); blinks('proc'); $(window).resize(resize).load(docReady).bind('scroll',textfocus); ////////////////////////////////////////////////// function textfocus(){ $('div.text').focus(); } function setSelectChange(){ if ( rel=='vacancy' ) { $('#subjectID').val('Вакансии'); rel=''; } if ( rel=='cooperation' ) { $('#subjectID').val('Предложение сотрудничества'); rel=''; } if ( rel=='design' ) { $('#subjectID').val('Заявка на дизайн'); rel=''; } if ( rel=='site' ) { $('#subjectID').val('Заявка на создание сайта'); rel=''; } if ( rel=='seo' ) { $('#subjectID').val('Заявка на продвижение'); rel=''; } if ( rel=='modules' ) { $('#subjectID').val('Заявка на модуль'); rel=''; } if ( rel=='other' ) { $('#subjectID').val('другое'); rel=''; $('input[name="subjectOther"]').val('Flash ролик'); } setTimeout('$("#subjectID").change(); $("#nameID"),focus();',600); // must be first empty field } function setQuestionChange(){ setTimeout('$("#nameID").focus();',600); } function subjectChange(t) { var arr=new Array('','selectSite','selectDesign','selectModule','selectSeo','','selectVacancy','selectOther'); for ( var i in arr) { $('#'+arr[i]).animate({height:'hide'},500); } for ( k=0;k<(t.length-1);k++ ) { if ( t.options[k].selected ) { break; } } if ( arr[k]!='' ) { $('#'+arr[k]).css({zIndex:'128'}).animate({height:'show'},500,function(){if (!$.browser.msie){$(this).find('table').find('td > input').focus();}});} } function controlField(arr){ var error=''; if ( $.trim( $(arr).val() )=='' ) { error+="
  • "+$(arr).attr('err')+"
  • "; } else { if ( arr.indexOf('email')!=-1 ) { a=$(arr).val(); if ( !a.match(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/) ) { error+="
  • "+"Укажите корректный E-mail
  • "; } } if ( arr.indexOf('phone')!=-1 ) { a=$(arr).val(); if ( !a.match(/^([\+]+)*[0-9\x20\x28\x29\-]{4,33}$/) ) { error+="
  • "+"Укажите правильный номер телефона
  • "; } } } return error; } function sendQuestion(t){ arr=new Array('input[name="from"]','input[name="name"]','input[name="email"]','textarea[name="content"]'); var error=''; var send=new Object(); for ( var k in arr ) { error+=controlField(arr[k]); send[$(arr[k]).attr('name')]=$(arr[k]).val(); } if ( error!='' ) { windowAlert(error,true); return false; } $('input[type="submit"]').attr('disabled','disabled'); $.post(mainurl+'ajax/setquestions.php?rand='+Math.random(),send, function(data){ $('input[type="submit"]').removeAttr('disabled'); controlData(data); }); return false; } function controlData(data){ data=data.toString(); arr=new Array('','Не все поля заполнены правильно, будьте внимательнее','Некорректный E-mail','Система будет доступна только через десять минут','Система будет доступна через пять минут','','','','К сожалению произошла системная ошибка, попробуйте снова','Ваш вопрос зафиксирован.

    Соответствующее уведомление об ответе будет выслано на Ваш адрес электронной почты.

    Спасибо за проявленный интерес','Ваше сообщение отправлено.

    Ответ будет выслан на указанный Вами адрес электронной почты.

    Спасибо'); windowAlert(arr[data],true); if ( data=='9' || data=='10' ) { $('div.text').html('

    '+arr[data]+'

    '); return true; } return false; } function sendMessage(t){ arr=new Array('input[name="from"]','input[name="name"]','input[name="email"]','input[name="phone"]','select[name="subject"]'); var error=''; var send=new Object(); for ( var k in arr ) { error+=controlField(arr[k]); send[$(arr[k]).attr('name')]=$(arr[k]).val(); } $(t).find('div:visible').each(function(){ $(this).find('tr:visible').each(function(){ $(this).find('select').each(function(){ send[$(this).attr('name')]=$(this).val(); }); $(this).find('input').each(function(){ if ( $.trim( $(this).val() )=='' ) { error+="
  • "+$(this).attr('err')+"
  • "; } else { if ( $(this).attr('name')=='siteModule' || $(this).attr('name')=='siteSeo' ) { a=$(this).val(); if (!a.match(/^(http:\/\/)+([\w-]+\.)+[0-9a-zA-Z]{2,7}/) && !a.match(/^(www.)+([\w-]+\.)+[0-9a-zA-Z]{2,7}/) ) { error+="
  • "+"Укажите правильный адрес"+"
  • "; } } send[$(this).attr('name')]=$(this).val(); } if ( $(this).attr('type')=='radio' ) { if ( !$('input[name="'+$(this).attr('name')+'"]:checked').length ) { error+=(($(this).attr('err')!='')? "
  • "+$(this).attr('err')+"
  • ":'' ); } else { send[$(this).attr('name')]=$(this).val(); } } }); }); }); if ( $.trim( $('textarea[name="message"]').val() )=='' ) { error+="
  • "+$('textarea[name="message"]').attr('err')+"
  • "; } else { send['message']=$('textarea[name="message"]').val(); } if ( error!='' ) { windowAlert(error,true); return false; } //a=''; for ( var k in send ) { a+=k+' - '+send[k]+"
    "; } windowAlert ( a ,true); return false; $('input[type="submit"]').attr('disabled','disabled'); $.post(mainurl+'ajax/setquestions.php?rand='+Math.random(),send, function(data){ $('input[type="submit"]').removeAttr('disabled'); controlData(data); }); return false; } function windowAlert(error,f){ $('#cover').css({opacity:'0.4'}).fadeIn(200); if ( f ) { f=''; } else { f=''; } //window.location.href.substring(0,window.location.href.lastIndexOf('/')).replace('http://','www.') $('body').append('
    ×
      iStem.ru
    '+f+'
     
    '); $('.warningMessage').html(error); if ( !bw.mz && !bw.sf ) { /*$('.warningHeader').corner('6px');*/ } $('#windowAlert').css({ top: (((h-$('#windowAlert').height())/2)-60)+'px' ,left: ((w-$('#windowAlert').width())/2)+'px'}); $('div.warningHeader > div').css({opacity:0.6}); $('#windowAlert').animate({ top: (((h-$('#windowAlert').height())/2)-30)+'px',opacity:'show'},300); $('body').bind('keydown', function (event) { if ( event.keyCode==27 ) { if ( event.preventDefault() ) {event.preventDefault(); event.returnValue = false; } windowAlertOut(); } }); } function windowAlertOut(){ $('body').unbind('keydown'); $('#windowAlert').animate({ top: (((h-$('#windowAlert').height())/2))+'px',opacity:'hide'},200); setTimeout("$('#windowAlert').remove();",205); $('#cover').fadeOut(300); } function phonePress(event){ if ( event.keyCode>64 ) {return false;} return true; } function shadow(t,a){ if (a) { th=t; $(t).dropShadow(shadows); $('div.text').bind('scroll',redrawSh); } else { $('div.text').unbind('scroll'); $(t).removeShadow(); } } function redrawSh(){ $(th).removeShadow(); //redrawShadow(); } function SetVolume(a){ if ( document.cookie ) { $.cookie('play',a,{expires: 7}); } } function GetVolume(){ a=false; if ( document.cookie ) { if ( $.cookie('play') ) { a=$.cookie('play'); } else { $.cookie('play','100'); } } return (a? a:'100'); } $.cookie('s','1'); function callSearch(){ frm='


    '; windowAlert(frm,false); } function sendSearch(t){ arr=new Array('input[name="search"]'); var error=''; for ( var k in arr ) { error+=controlField(arr[k]); send[$(arr[k]).attr('name')]=$(arr[k]).val(); } if ( error!='' ) { windowAlert(error); return false; } $.post(mainurl+'ajax/getcontent.php?rand='+Math.random(),send, function(data){ processData(data); }); return false; } function callTarif(a) { var esc; esc = window.open('about:blank','esc','width='+screen.availWidth+',height='+screen.availHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,top=0,left=0'); if (esc){ esc.document.open(); esc.document.write('Тарифные планы. Регистрация. Стоимость.'+$('#'+a).html()+'
         
    '); esc.document.close(); esc.resizeTo(screen.availWidth,screen.availHeight); } else { try { esc.close(); } catch (e) { } esc = window.open ( mainurl + a + '.shtml', 'esc', 'width='+screen.availWidth+', height='+screen.availHeight+', toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0, top=0, left=0'); } } function callBrief(){ var esc = window.open ( mainurl + 'brief.php', 'esc', 'width='+screen.availWidth+', height='+screen.availHeight+', toolbar=1, location=1, directories=1, status=1, menubar=1, scrollbars=1, resizable=1, copyhistory=0, top=0, left=0'); } function callFlash (a) { if (deconcept.SWFObjectUtil.getPlayerVersion()['major']>8) { var esc; var xf=0; var yf=0; if ( a=='flash.html' ) { xf=710;yf=310; } if ( a=='flash1.html' ) { xf=744;yf=135; } esc = window.open(a,'esc','width='+xf+',height='+yf+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,top='+((h-yf)/2)+',left='+((w-xf)/2)); } else { windowAlert('Для отображения Flash-ролика, Вам необходимо установить Flash-плейер.'); } } function charsCMS(a){ $.post(mainurl+'ajax/getcharscms.php?rand='+Math.random(),{to:'cms',param:a},function(data){windowAlert(data);}); return false; } function setFile(a){ $('input[name="resume"]').val(a); } function getmortal(){ if (deconcept.SWFObjectUtil.getPlayerVersion()['major']>8) { var esc; var xf=0; var yf=0; a='mortal.html'; xf=700;yf=400; esc = window.open(a,'esc','width='+xf+',height='+yf+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,top='+((h-yf)/2)+',left='+((w-xf)/2)); } else { windowAlert('Для отображения Flash-ролика, Вам необходимо установить Flash-плейер.'); } }