/* Js for , Version=1775241267 */
 v.lang = {"confirmDelete":"\u60a8\u786e\u5b9a\u8981\u6267\u884c\u5220\u9664\u64cd\u4f5c\u5417\uff1f","deleteing":"\u5220\u9664\u4e2d","doing":"\u5904\u7406\u4e2d","loading":"\u52a0\u8f7d\u4e2d","updating":"\u66f4\u65b0\u4e2d...","timeout":"\u7f51\u7edc\u8d85\u65f6,\u8bf7\u91cd\u8bd5","errorThrown":"\u6267\u884c\u51fa\u9519\uff1a","continueShopping":"\u7ee7\u7eed\u8d2d\u7269","required":"\u5fc5\u586b","back":"\u8fd4\u56de","continue":"\u7ee7\u7eed","bindWechatTip":"\u53d1\u5e16\u529f\u80fd\u8bbe\u7f6e\u4e86\u7ed1\u5b9a\u5fae\u4fe1\u7684\u9650\u5236\uff0c\u8bf7\u5148\u7ed1\u5b9a\u5fae\u4fe1\u4f1a\u5458\u3002","importTip":"\u53ea\u5bfc\u5165\u4e3b\u9898\u7684\u98ce\u683c\u548c\u6837\u5f0f","fullImportTip":"\u5c06\u4f1a\u5bfc\u5165\u6d4b\u8bd5\u6570\u636e\u4ee5\u53ca\u66ff\u6362\u7ad9\u70b9\u6587\u7ae0\u3001\u4ea7\u54c1\u7b49\u6570\u636e"};;

var currentBlockID = 248;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined' && $('#block' + currentBlockID).parent('.col').data('probability') === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;;(function (){
if(typeof qingdao === 'undefined')
{
    qingdao = true;
}
else
{
    return;
}
$("#block248").parent().parent().parent().css("margin-top", "37px");
$("#block248 .panel-heading .pull-right a").html('<i class="icon icon-plus"></i>');
})();;

var currentBlockID = 251;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined' && $('#block' + currentBlockID).parent('.col').data('probability') === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;;(function (){
if(typeof newsExpress === 'undefined')
{
    newsExpress = true;
}
else
{
    return;
}
$("#block251").parent().parent().parent().css("margin-top", "37px");
$("#block251 .panel-heading .pull-right a").html('<i class="icon icon-plus"></i>');
})();;

var currentBlockID = 249;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined' && $('#block' + currentBlockID).parent('.col').data('probability') === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;;(function (){
if(typeof xiesheng === 'undefined')
{
    xiesheng = true;
}
else
{
    return;
}
$("#block249").parent().parent().parent().css("margin-top", "37px");
$("#block249 .panel-heading .pull-right a").html('<i class="icon icon-plus"></i>');
})();;	;(function($)
	{
		var timerGlobal = false;
		var CZFlipUpDown = function (element, options)
		{
			this.$ = $(element);
			this.options  = this.getOptions(options);
			this.index = 0;
			this.length = this.$.find('.czCooperateBox').length;
			this.timer = null;
			this.moveHeight = this.$.find('.czCooperateBox').height();
			this.init();
		}
		
		CZFlipUpDown.DEFAULTS = 
		{
			contentImg : [],
			contentTitle : []
		}
		
		CZFlipUpDown.prototype = 
		{
			constructor : CZFlipUpDown,
			
			getOptions : function (options)
			{
				options = $.extend(this, CZFlipUpDown.DEFAULTS, options);
				return options;
			},
			
			init : function ()
			{
				var _this = this;
				var ul = this.$.html();
				this.$.html(ul + ul); 
				this.controller();
			},
			
			controller : function ()
			{
				var _this = this;
				$('.czCooperateItems').hover(function ()
				{
					for(var i = 0; i < timerGlobal.length; i+=1)
					{
						clearInterval(timerGlobal[i].timer);
					}
				},function ()
				{
					_this.timer = setInterval(function ()
					{
						_this.judge();
						_this.index+=1;
						_this.move(_this.index);
					}, 2000);
				});
				//controller
				this.timer = setInterval(function ()
				{
					_this.judge();
					_this.index+=1;
					_this.move(_this.index);
				}, 2000);
			},
			
			judge : function ()
			{
				var _this = this;
				if(_this.index == _this.length)
				{
					_this.index = 0;
					_this.$.css(
					{
						'top': 0
					});
				}
			},
			
			move : function (moveSize)
			{
				var _this = this;
				this.$.animate(
				{
					'top' : -moveSize * _this.moveHeight
				}, 800);
			}
		}
		
		$.fn.czFlipUpDown = function (method)
		{
			var arr = [];
			//add html
			for(var i = 0; i < method.contentImg.length; i+=1)
			{
				var num  = i%4;
				var html='<li class="czCooperateBox"><div class="czCooperateLogo"><img src="' + method.contentImg[i] + '"/></div><div class="czCooperatesContent"><span>' + method.contentTitle[i] + '</span></li>';
				switch (num)
				{
					case 1:
						$('.czCooperateItems').eq(num).find('.czCooperateMove').append(html);
						break;
					case 2:
						$('.czCooperateItems').eq(num).find('.czCooperateMove').append(html);
						break;
					case 3:
						$('.czCooperateItems').eq(num).find('.czCooperateMove').append(html);
						break;
					case 0:
						$('.czCooperateItems').eq(num).find('.czCooperateMove').append(html);
						break;	
				}
			}
			
			return this.each(function()
			{
				var $this = $(this);
				arr.push( new CZFlipUpDown($this, method));
				timerGlobal = arr;
			});
		}
	})(window.jQuery);
	var imgArray = [
	                    '/file.php?f=source/default/blank/img4.jpg&t=jpg&o=source&s=&v=1567583775',
	                    '/file.php?f=source/default/blank/img3.jpg&t=jpg&o=source&s=&v=1567583775',
	                    '/file.php?f=source/default/blank/img2.jpg&t=jpg&o=source&s=&v=1567583775',
	                    '/file.php?f=source/default/blank/img1.jpg&t=jpg&o=source&s=&v=1567583775',
	                    '/file.php?f=source/default/blank/easysoft.png&t=png&o=source&s=&v=1631773263',
	                    '/file.php?f=source/default/blank/evonik2020.png&t=png&o=source&s=&v=1631773826',
	                    '/file.php?f=source/default/blank/zhongdelogo.png&t=png&o=source&s=&v=1631773996',
	                    '/file.php?f=source/default/blank/shankedalogo.png&t=png&o=source&s=&v=1631774110'
	                ];
	var titleArray = [
	                    '中国石油大学',
	                    '青岛武船麦克德莫特海洋工程有限公司',
	                    '圣戈班集团',
	                    '邱博工程材料（青岛）有限公司',
	                    '青岛易软天创网络科技有限公司',
	                    '青岛赢创二氧化硅材料有限公司',
	                    '中德生态园',
	                    '山东科技大学'
	               
	                 ];
	$('.czCooperateMove').czFlipUpDown(
	{
		contentImg : imgArray,
		contentTitle : titleArray
	});;$().ready(function() { $('#execIcon').tooltip({title:$('#execInfoBar').html(), html:true, placement:'right'}); }); ;$(document).ready(function()
{          
    // add "index" class to the body element.
    $('body').addClass('index');

    $('.nav-system-home:first').addClass('active');
    $('#navbar li.active').parents('li').addClass('active');
})
/**header**/
if(typeof(allSwitch) === 'undefined')
{
    allSwitch = true;
    ;(function (){
        var iconNav   = [ 
                        '<span><i class="icon icon-home"></i></span>',
                        '<span><i class="icon icon-user"></i></span>',
                        '<span><i class="icon icon-plane"></i></span>',
                        '<span><i class="icon icon-phone"></i></span>',
                        '<span><i class="icon icon-globe"></i></span>'
                    ]; 
        $('#navbarCollapse .nav').children('li').each(function (index)
        {
            $(this).find('a').append(iconNav[index]);
        });
        
        var lognUrl  = $('#siteNav a').eq(0).attr('href');
        var exitUrl  = $('#siteNav a').eq(1).attr('href');
        var lognHtml = $('#siteNav a').eq(0).html();
        var exitHtml = $('#siteNav a').eq(1).html();
        if(lognHtml != '登录')
        {
            lognHtml   = "信息";
            lognHtmlIm = "个人信息";
        }
        else
        {
            lognHtml   = "登录";
            lognHtmlIm = "立即登录";
        }
        var sideHtml = '<button class="qqIcon btn">' +
                       '<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=944855755&site=qq&menu=yes">' +
                       '<div class="front"><i class="icon icon-qq"></i><span>客服</span></div>' +
                       '<div class="title"><span>点击咨询</span></div></a>' +
                       '</button>' + 
                       '<button class="qqIcon btn">' +
                       '<a target="_blank" href="http://www.xieshengcar.com/index.php/page/7.html">' +
                       '<div class="front"><i class="icon icon-plane"></i><span>租车</span></div>' +
                       '<div class="title"><span>我要租车</span></div></a>' +
                       '</button>'+
                       '<button class="qqIcon btn">' +
                       '<a href="' + lognUrl + '">' +
                       '<div class="front"><i class="icon icon-key"></i><span>' + lognHtml + '</span></div>' +
                       '<div class="title"><span>' + lognHtmlIm + '</span></div></a>' +
                       '</button>' + 
                       '<button class="qqIcon btn">' +
                       '<a href="' + exitUrl + '">' +
                       '<div class="front"><i class="icon icon-lock"></i><span>' + exitHtml + '</span></div>' +
                       '<div class="title"><span>我要' + exitHtml + '</span></div></a>' +
                       '</button>';
        $('#rightDocker').append(sideHtml);
        
    })();
}

;
var hash = window.location.hash.substring(1);
var browserLanguage = navigator.language || navigator.userLanguage; 
var resolution      = screen.availWidth + ' X ' + screen.availHeight;
$.get(createLink('log', 'record', "hash=" + hash), {browserLanguage:browserLanguage, resolution:resolution});
