var g_cookie_popup_name = 'popup1'; function set_cookie(name, value, expires){ if (!expires){ expires = new Date(); } document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() + "; path=/"; } function get_cookie(c_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i 0 ){ html += "Словарь терминов"; } else if( href.indexOf("/cal/") > 0 ){ html += "Словарь терминов > " + this.getText($("#dictionary")); } else if ( href.indexOf("/news") > 0 ){ html += "Новости компании"; } else if ( href.indexOf("search.htm") > 0 ){ html += "Поиск"; } else if ( href.indexOf("/arch") > 0 ){ html += "Архив новостей"; } else if( $("#leftMenu .submenu a.active").length > 0 ){ var topMenu = $("#leftMenu a.activeTop") var subMenu = $("#leftMenu .submenu a.active"); html += this.getA( topMenu ) + " > " + this.getText( subMenu ); } else{ var objTopMenuActive = $("#topMenu a.active"); var objLeftMenuActive = $("#leftMenu a.active"); var title = $( 'title' ).html (); if ( objLeftMenuActive.length == 0){ html += this.getText( objTopMenuActive ); } else{ html += this.getA( objTopMenuActive ) + " > " + this.getText( objLeftMenuActive ); } } $("#breadCrumbs").html(html); }, getA:function(obj){ return "" + obj.text() + ""; }, getANoHref:function(obj){ return "" + obj.text() + ""; }, getText: function(obj){ return "" + obj.text() + ""; } } $(document).ready(function(){ $('#doubleCont li:last').css('background','none').css('padding-right','0'); ins.showBreadcrumbs(); try{ $.fn.fancybox.defaults.padding = 0; $("a.jcepopup").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : true, 'hideOnContentClick': true, 'autoScale':true, padding:0 }); } catch(err){} /* if ( is_display_popup() ){ $.fancybox( '
', { 'autoDimensions' : false, 'width' : 670, 'height' : 800, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', //'scrolling' : 'no', 'hideOnContentClick': true } ) } */ $('#leftMenu a').each(function() { var $a = $(this).html(); var $firstLetter = $a.substring(0,1); var $smallText = $a.substring(1); $(this).html(''+$firstLetter+''+$smallText); }); })