PageSourceSearch

https://www.reframingaging.org/Portals/_default/skins/20073-unlimitedcolorspack-055/scripts/custom.js

js reframingaging.org collected 2026-09-24 10:45:33 UTC 76,130 bytes, 2,332 lines download raw bytes

1jQuery(document).ready(function($) {
2   $(window).load(function() {	
3	 var left01=function(){
4		var con_h= $(".dg-tabs-left01 .resp-tabs-container").outerHeight();
5		var li_leng=$(".dg-tabs-left01 .resp-tabs-list li").length;	
6		var li_height=con_h/li_leng+'px';
7		$(".dg-tabs-left01 .resp-tabs-list li").height(li_height).css("line-height",li_height);		 
8		 }					   
9		left01();
10	$(window).resize(function() {
11       left01();
12   });	
13 })
14   
15$(window).load(function() {	
16	  var bottom02=function(){
17		var con_w= $(".dg-tabs-bottom02").outerWidth();
18		var li_leng=$(".dg-tabs-bottom02 .resp-tabs-list li").length;	
19		var li_width=con_w/li_leng+'px';
20		$(".dg-tabs-bottom02 .resp-tabs-list li").width(li_width);		
21		}						
22	       bottom02();	
23	$(window).resize(function() {
24           bottom02();
25   });		
26});
27	
28$(window).load(function() {	
29	  var bottom03=function(){
30		var con_w= $(".dg-tabs-bottom03").outerWidth();
31		var li_leng=$(".dg-tabs-bottom03 .resp-tabs-list li").length;	
32		var li_width=con_w/li_leng+'px';
33		$(".dg-tabs-bottom03 .resp-tabs-list li").width(li_width);		
34		}						
35	       bottom03();	
36	$(window).resize(function() {
37           bottom03();
38   });		
39});
40
41
42  
43   
44});
45function ImgLoad(callback, e) {
46	var imgdefereds = [];
47	e.find('img').each(function () {
48		var dfd = jQuery.Deferred();
49		$(this).bind('load', function () {
50			dfd.resolve();
51		}).bind('error', function () {})
52		if (this.complete)
53			setTimeout(function () {
54				dfd.resolve();
55			}, 500);
56		imgdefereds.push(dfd);
57	})
58	jQuery.when.apply(null, imgdefereds).done(function () {
59		callback();
60	});
61}
62function changeURLPar(contentUrl, key, keyValue) {
63	var pattern = key + '=([^&]*)';
64	var replaceText = key + '=' + keyValue;
65	if (contentUrl.match(pattern)) {
66		var tmp = '/' + key + '=[^&]*/';
67		tmp = contentUrl.replace(eval(tmp), replaceText);
68		return (tmp);
69	} else {
70		if (contentUrl.match('[\?]')) {
71			return contentUrl + '&' + replaceText;
72		} else {
73			return contentUrl + '?' + replaceText;
74		}
75	}
76	return contentUrl + '\n' + key + '\n' + keyValue;
77}
78
79jQuery(document).ready(function ($) {
80	jQuery(".HoverStyle_4 #dnngo_megamenu .primary_structure").lavaLamp({
81		fx : 'easeOutExpo',
82		speed : 600
83	});
84});
85
86
87jQuery(document).ready(function ($) {
88	animationShow({
89		"#user-icon" : "#Loginandlanguage",
90		"#search-icon" : "#search"
91	});
92	animationShow({
93		"#RightMenu-icon" : "#main_right",
94		"#rightClose" : "#main_right"
95	});
96	animationShow({
97		"#rightClose" : "#main_right"
98	});
99	animationShow({
100		"#ico_search" : "#mobile_search"
101	});
102
103	jQuery(document).click(function (e) {
104		if ($(".nav_ico").length != 0) {
105			if (!($(e.target).closest(".nav_ico").length != 0 || jQuery.contains($(".nav_ico")[0], e.target))) {
106				$("#header1 .nav_ico .searchBox,#header1 .Loginandlanguage").fadeOut();
107				$("#header1 .nav_ico .fa").removeClass("active");
108			}
109		}
110		if ($(".nav_ico").length != 0 && $("#main_right").length != 0) {
111			if (!($(e.target).closest("#main_right").length != 0 || jQuery.contains($("#main_right"), e.target) || $(e.target).closest(".nav_ico").length != 0 || jQuery.contains($(".nav_ico")[0], e.target))) {
112				$("#main_right").removeClass("active");
113				$("#header2 .nav_ico .fa").removeClass("active");
114			}
115		}
116		if ($(".searchMainBox").length != 0) {
117			if (!($(e.target).closest(".searchMainBox").length != 0 || jQuery.contains($(".searchMainBox")[0], e.target))) {
118				$(".searchMainBox .searchBox").fadeOut();
119				$(".searchMainBox .fa").removeClass("active");
120			}
121		}
122		if ($(".nav_ico").length != 0 && $("#main_right").length != 0) {
123			if (!($(e.target).closest("#main_right").length != 0 || jQuery.contains($("#main_right"), e.target) || $(e.target).closest(".nav_ico").length != 0 || jQuery.contains($(".nav_ico")[0], e.target))) {
124				$("#main_right").removeClass("active");
125				$("#header2 .nav_ico .fa").removeClass("active");
126			}
127		}
128	});
129})
130
131jQuery(window).load(function () {
132	var e = $(".roll_menu");
133	if (e.length != 0) {
134		top = e.offset().top + e.height();
135		e.roll_menu({
136			MTop : e.data("top"),
137			noroll : 992
138		});
139	}
140	//	e.roll_menu({ MTop:e.offset().top-1});
141});
142
143jQuery(document).ready(function ($) {
144	if ($("#header5").length != 0) {
145		var e=$(".header5close");
146		
147		if(e.data("stg")=="push-content"){
148			e.appendTo(".dnngo-main");
149			$("#header5").appendTo(".dnngo-main");
150			var oneclick=true;
151			$(".header5close").on("click", function () {
152				if(oneclick){
153					oneclick=false;
154					if($("html").hasClass("header5_active")){
155						$("html").removeClass("header5_active").delay(500).queue(function(){ oneclick=true; $(this).removeClass("push-content").dequeue(); })
156					}else{
157						$("html").addClass("header5_active push-content").delay(500).queue(function(){ oneclick=true;  $(this).dequeue(); })
158					}
159				}
160			})
161		}else{
162			$(".header5close").on("click", function () {
163				$("html").toggleClass("header5_active "+$(this).data("stg"))
164			})
165		
166		}
167	}
168})
169
170/*header7*/
171jQuery(document).ready(function ($) {
172
173	if ($("#header7").length != 0) {
174		var e = $("#header7"),
175		im = e.find(".primary_structure").children("li:not(.back)"),
176		l = im.length,
177		time = 200;
178		c = Math.round(l / 2) - 1;
179		e.find(".primary_structure").height(im.eq(0).outerHeight(true));
180		im.slice(0, c + 1).addClass("left-item");
181		im.slice(c + 1, l).addClass("right-item");
182		$(this).find(".dnn_logo").insertAfter(im.eq(c)).wrap("<li class=\"menulogo\"></li>");
183    e.find(".primary_structure > .back").hide();
184		var logo = e.find(".menulogo")
185			ImgLoad(function () {
186				var left = logo.position().left;
187				var right = logo.position().left + logo.outerWidth(true);
188				var i1 = 0,
189				i2 = c + 1;
190				logo.addClass("logo-at");
191				var leftitem = function () {
192					var t = im.eq(c - i1);
193					left = left - t.outerWidth(true)
194						t.css("left", left).addClass("left-at");
195					i1++;
196          if($(".HoverStyle_4").length==1 && t.hasClass("current")){
197              e.find(".primary_structure > .current").mouseout()
198              e.find(".primary_structure > .back").fadeIn();
199            }
200					if (i1 < c + 1) {
201						setTimeout(leftitem, time);
202					}
203				}
204				var rightitem = function () {
205					var t = im.eq(i2);
206					if (i2 != c + 1) {
207						right = right + im.eq(i2 - 1).outerWidth(true)
208					}
209					t.css("left", right).addClass("right-at");
210					i2++;
211           if($(".HoverStyle_4").length==1 && t.hasClass("current")){
212              e.find(".primary_structure > .current").mouseout()
213              e.find(".primary_structure > .back").fadeIn();
214            }
215					if (i2 < l) {
216						setTimeout(rightitem, time);
217					}
218				}
219				setTimeout(leftitem, time);
220				setTimeout(rightitem, time);
221
222				var resize = function () {
223					var left2 = logo.position().left;
224					var right2 = logo.position().left + logo.outerWidth(true);
225					for (i = 0; i < l; i++) {
226						if (i < c + 1) {
227							var t = im.eq(c - i);
228							left2 = left2 - t.outerWidth(true)
229								t.css("left", left2)
230						} else {
231							var t = im.eq(i);
232							if (i != c + 1) {
233								right2 = right2 + im.eq(i - 1).outerWidth(true)
234							}
235							t.css("left", right2);
236
237						}
238					}
239				}
240
241				$(window).resize(function () {
242					resize();
243				})
244				var roll = true;
245				$(window).scroll(function () {
246					if ($(".roll_menu").hasClass("roll_activated") && roll) {
247						roll = false;
248						resize();
249					} else if (!$(".roll_menu").hasClass("roll_activated") && !roll) {
250						roll = true;
251						resize();
252					}
253				})
254
255			}, im)
256
257			$("#header7 .nav_ico span,.header7 .nav_ico span").on("click", function () {
258				$(this).toggleClass("active");
259				$(".rightBox.header7").toggleClass("active");
260			})
261			jQuery(document).click(function (e) {
262				if ($(".rightBox.header7").length != 0) {
263					if (!($(e.target).closest("#header7 .nav_ico span").length != 0 || $(e.target).closest(".rightBox.header7").length != 0 || jQuery.contains($(".rightBox.header7")[0], e.target))) {
264						$("#header7 .nav_ico span").removeClass("active");
265						$(".rightBox.header7").removeClass("active");
266					}
267				}
268			});
269		if($(".userProfileImg img").length!=0){
270			$(".userProfileImg img").attr("src", changeURLPar($(".userProfileImg img").attr("src"), "h", 100))
271			$(".userProfileImg img").attr("src", changeURLPar($(".userProfileImg img").attr("src"), "w", 100))
272			$(".header7.rightBox .userProfileImg").prependTo(".header7 .Login").wrap("<ul class=\"buttonGroup\"></ul>");
273			var rg = $("<ul class=\"registerGroup\"></ul>");
274			$(".header7.rightBox .userMessages").appendTo(rg)
275			$(".header7.rightBox .userNotifications ").appendTo(rg);
276			rg.appendTo(".header7 .Login");
277		}
278	}
279})
280
281jQuery(document).ready(function ($) {
282	if ($("#header8").length != 0) {
283		$($(".header8 #dnngo_megamenu > .mobilemenu_close").attr("href")).prependTo("#dnngo_megamenu");
284		$(".leftBox.header8 .mobile_menu.mm-menu").height($(window).height() - $(".leftBox.header8 .nav_box").position().top)
285		$(window).resize(function () {
286			$(".leftBox.header8 .mobile_menu.mm-menu").height($(window).height() - $(".leftBox.header8 .nav_box").position().top)
287		})
288		$("#header8 .nav_ico ,.leftBox.header8 .toggle_leftBox").on("click", function () {
289			$("html").toggleClass("header8_active")
290		})
291		jQuery(document).click(function (e) {
292			if (!($(e.target).closest(".nav_ico >span").length != 0 || $(e.target).closest(".leftBox.header8").length != 0 || jQuery.contains($(".leftBox.header8")[0], e.target))) {
293				$("html").removeClass("header8_active");
294			}
295		})
296		
297		$(".header8 .menu_list.mm-listview li > a").click(function () {
298			if($(this).attr("href")=="#"){
299				$("html").removeClass("header8_active");
300			}
301		})
302		
303		
304		$("#header8 .searchBox .search-close,#header8 .search_ico").on("click", function () {
305			$("#header8 .searchBox").toggleClass("active")
306		})
307	}
308})
309jQuery(document).ready(function ($) {
310	if ($("#header9").length != 0) {
311		$("#header9 .nav_ico > .dislay-menu,.header9 .toggle_leftBox").on("click", function () {
312			$("html").toggleClass("header9_active")
313		})
314		
315		$(".header9 .nav_box").height($(window).height() - $(".header9 .nav_box").position().top)
316		$(window).resize(function () {
317			$(".header9 .nav_box").height($(window).height() - $(".header9 .nav_box").position().top)
318		})
319		$("#header9 .nav_ico > .fa-user,#header9 .user-close").on("click", function () {
320			$("html").toggleClass("header9_user_active").removeClass("header9_search_active")
321		})
322		$("#header9 .nav_ico > .fa-search,#header9 .search-close").on("click", function () {
323			$("html").toggleClass("header9_search_active").removeClass("header9_user_active")
324		})
325
326	}
327})
328jQuery(document).ready(function ($) {
329	if ($("#header10").length != 0) {
330		$("#header10 .displayline  .dnngo_gomenu .primary_structure > li").each(function(index, element) {
331			if(index==0){
332            $(this).before("<li class=\"line\"></li>")
333			}
334            $(this).after("<li class=\"line\"></li>")
335        });
336		
337		
338	}
339})
340
341
342jQuery(document).ready(function ($) {
343	$(".dnngo_slide_menu").each(function (index, element) {
344		$(this).parent().addClass("slide")
345	});
346})
347
348$(document).ready(function () {
349	$("#main_right").appendTo("body")
350})
351
352$(document).ready(function () {
353	if ($("#pagepiling").length != 0) {
354		$("body,html").css("overflow", "hidden");
355	}
356})
357
358
359$(document).ready(function () {
360	$(".home02-banner").css("min-height", $(window).height());
361})
362
363jQuery(document).ready(function ($) {
364	$(".home09-banner").each(function () {
365		var full = $(this).find("li");
366		full.height($(window).height());
367		$(window).resize(function () {
368			full.height($(window).height())
369		})
370	});
371	$("#nextPage").click(function () {
372		jQuery('body,html').animate({
373			scrollTop : $(window).height()
374		}, 500);
375	})
376	$(window).load(function () {
377		$(".home09-banner").addClass("animations");
378	});
379})
380
381$(document).ready(function () {
382	if ($("#pagepiling").length != 0) {
383		$("body,html").css("overflow", "hidden");
384	}
385	var deleteLog = false;
386	if ($("#pagepiling").length == 0)
387		return false;
388	var el = $("#pagepiling"),
389	e = el.children(".section"),
390	start = e.eq(0).data("tooltips") ? e.eq(0).data("tooltips") : "page 1",
391	d = start + " ";
392	for (i = 1; i < e.length; i++) {
393		var s = e.eq(i).data("tooltips") ? e.eq(i).data("tooltips") : "page " + (i + 1)
394			d += "," + s;
395	}
396	var data = d.split(",");
397	el.pagepiling({
398		navigation : {
399			'textColor' : '#f2f2f2',
400			'bulletsColor' : '#ccc',
401			'position' : el.data("navposition") ? el.data("navposition") : "right",
402			'tooltips' : data
403		},
404		scrollingSpeed : el.data("Speed") ? parseInt(el.data("Speed")) : 700,
405		easing : el.data("easing") ? el.data("easing") : "swing",
406		direction : el.data("direction") ? el.data("direction") : "vertical"
407	})
408	if ($(window).scrollTop() > 0) {
409		$("body,html").css("overflow", "visible");
410		$("#pagepiling").remove();
411		$("#pp-nav").remove();
412	}
413	var w1 = $(window).width();
414	$("body,html").css("overflow", "visible");
415	var w2 = $(window).width();
416	$("body,html").css("overflow", "hidden");
417	$(window).stop().scrollTop(0);
418	e.css("height", $(window).height());
419	e.css("width", $(window).width());
420	el.css("height", $(window).height());
421	el.css("width", $(window).width());
422	$("body").css("padding-right", w1 - w2);
423	del =true;
424	$(".gohome").on("click", function () {
425		$("#pp-nav").remove();
426		el.children(".section.active").css({
427			"top" : "auto",
428			"bottom" : "0"
429		}).siblings().remove()
430        del =true;
431		el.stop().animate({
432			height : 0
433		}, 800, function () {
434			el.remove();
435			$("body").css("padding-right", "0");
436			$("body,html").css("overflow", "visible");
437		});
438	})
439	$(window).resize(function () {
440	    if(!del){
441		e.css("height", $(window).height());
442		e.css("width", $(window).width());
443		el.css("height", $(window).height());
444		el.css("width", $(window).width());
445	    }
446	})
447});
448jQuery(document).ready(function ($) {
449	$(".home13-tab .resp-tabs-list").each(function () {
450		$(this).find("li").width((100 / $(this).find("li").length) + "%").show();
451	});
452
453})
454jQuery(document).ready(function ($) {
455	$(".home13-ourTeam").each(function () {
456		var e = $(this),
457		t = e.find(".ourTeam_thumbnail"),
458		c = e.find(".ourTeam_content"),
459		p = e.find(".ourTeam_img > img");
460		tl = t.children("li"),
461		cl = c.children(".item");
462		tl.click(function () {
463			if (p.attr("src") != $(this).attr("bigimg")) {
464				$(this).addClass("active").siblings().removeClass("active");
465				cl.eq($(this).index()).stop().fadeIn(500).addClass("active").siblings().hide().removeClass("active");
466				p.attr("src", $(this).attr("bigimg")).stop().fadeOut(0).fadeIn(500);
467			}
468		});
469		tl.each(function () {
470			var img = new Image();
471			img.src = $(this).attr("bigimg");
472		});
473
474	});
475})
476
477//Top:
478jQuery(document).ready(function ($) {
479	jQuery('#to_top,#go_up').click(function () {
480		jQuery('body,html').stop().animate({
481			scrollTop : 0
482		}, 800);
483	});
484	jQuery('.timeline_End').click(function () {
485		jQuery('body,html').stop().animate({
486			scrollTop : jQuery('.timeline_start').offset().top
487		}, 800);
488	});
489	var backtop = function () {
490		Math.max.call(window.scrollTop, document.body.scrollTop, document.documentElement.scrollTop) > 245 ? jQuery('#to_top').fadeIn(300) : jQuery('#to_top').fadeOut(300)
491	}
492	$(window).load(function () {
493		backtop();
494	})
495	$(window).scroll(function () {
496		backtop();
497	})
498
499});
500jQuery(document).ready(function ($) {
501	$("#header_slide").on("click", function () {
502		var e = $(this),
503		box = $("#box-container"),
504		ri = $(".rightmain");
505		if (box.length != 0) {
506			if (box.hasClass("delay"))
507				return false;
508			if (!box.hasClass("active")) {
509				box.addClass("active");
510				e.removeClass("active");
511				$(this).delay(500).queue(function () {
512					ri.one("click", function () {
513						box.removeClass("active").addClass("delay").delay(500).queue(function () {
514							$(this).removeClass("delay").dequeue()
515						});
516						e.addClass("active");
517					})
518					$(window).one("scroll", function () {
519						box.removeClass("active").addClass("delay").delay(500).queue(function () {
520							$(this).removeClass("delay").dequeue()
521						});
522						e.addClass("active");
523					})
524					$(this).dequeue();
525				})
526			} else {
527				box.removeClass("active").addClass("delay").delay(500).queue(function () {
528					$(this).removeClass("delay").dequeue()
529				}); ;
530				e.addClass("active");
531			}
532		} else {
533			e.toggleClass("active");
534			$(".left-menu").toggleClass("active");
535		}
536
537	})
538})
539//chart
540$(window).load(function () {
541	$(".decorate").each(function () {
542		$(this).easyPieChart({
543			animate : 1000,
544			barColor : $(this).css("color"),
545			trackColor : "#dddddd",
546			size : 200,
547			lineWidth : 10,
548			lineCap : 'round',
549			scaleColor : false
550		});
551	});
552	$(".loaded-decorate01").each(function () {
553		$(this).easyPieChart({
554			animate : 1000,
555			barColor : $(this).css("color"),
556			trackColor : "#dddddd",
557			size : 172,
558			lineWidth : 8,
559			lineCap : 'square',
560			scaleColor : false
561		});
562	});
563	$(".percentage1").each(function () {
564		$(this).easyPieChart({
565			animate : 1000,
566			barColor : $(this).css("color"),
567			trackColor : "#FFFFFF",
568			size : 155,
569			lineWidth : 2,
570			lineCap : 'round',
571			scaleColor : false,
572			onStep : function (from, to, percent) {
573				$(this.el).find('.percentage_inner span').text(Math.round(percent));
574			}
575		});
576	});
577	
578	$(".list-percentage1").each(function () {
579		$(this).easyPieChart({
580			animate : 1000,
581			barColor : $(this).css("color"),
582			trackColor : "#FFFFFF",
583			size : 175,
584			lineWidth : 2,
585			lineCap : 'round',
586			scaleColor : false,
587			onStep : function (from, to, percent) {
588				$(this.el).find('.percentage_inner span').text(Math.round(percent));
589			}
590		});
591	});
592	$(".list-percentage2").each(function () {
593		$(this).easyPieChart({
594			animate : 1000,
595			barColor : $(this).css("color"),
596			trackColor : "#f6f6f6",
597			size : 172,
598			lineWidth : 8,
599			lineCap : 'square',
600			scaleColor : false,
601			onStep : function (from, to, percent) {
602				$(this.el).find('.percentage_inner span').text(Math.round(percent));
603			}
604		});
605	});
606	$(".list-percentage3").each(function () {
607		$(this).easyPieChart({
608			animate : 1000,
609			barColor : $(this).css("color"),
610			trackColor : "rgba(255,255,255,0.3)",
611			size : 113,
612			lineWidth : 7,
613			lineCap : 'round',
614			scaleColor : false,
615			onStep : function (from, to, percent) {
616				$(this.el).find('.percentage_inner span').text(Math.round(percent));
617			}
618		});
619	});
620	
621	$(".list-percentage4").each(function () {
622		$(this).easyPieChart({
623			animate : 1000,
624			barColor : $(this).css("color"),
625			trackColor : "#fff",
626			size : 86,
627			lineWidth : 4,
628			lineCap : 'round',
629			scaleColor : false,
630			onStep : function (from, to, percent) {
631				$(this.el).find('.percentage_inner span').text(Math.round(percent));
632			}
633		});
634	});	
635	
636		$(".list-percentage5").each(function () {
637		$(this).easyPieChart({
638			animate : 1000,
639			barColor : $(this).css("color"),
640			trackColor : "#f6f6f6",
641			size : 202,
642			lineWidth : 40,
643			lineCap : 'square',
644			scaleColor : false,
645			onStep : function (from, to, percent) {
646				$(this.el).find('.percentage_inner span').text(Math.round(percent));
647			}
648		});
649	});
650		
651		
652		$(".list-percentage7").each(function () {
653		$(this).easyPieChart({
654			animate : 1000,
655			barColor : $(this).css("color"),
656			trackColor : "#fff",
657			size : 172,
658			lineWidth : 9,
659			lineCap : 'round',
660			scaleColor : false,
661			onStep : function (from, to, percent) {
662				$(this.el).find('.percentage_inner span').text(Math.round(percent));
663			}
664		});
665	});
666		
667		$(".list-percentage8").each(function () {
668		$(this).easyPieChart({
669			animate : 1000,
670			barColor : $(this).css("color"),
671			trackColor : "#fff",
672			size : 172,
673			lineWidth : 15,
674			lineCap : 'square',
675			scaleColor : false,
676			onStep : function (from, to, percent) {
677				$(this.el).find('.percentage_inner span').text(Math.round(percent));
678			}
679		});
680	});
681		
682		
683		$(".list-percentage9").each(function () {
684		$(this).easyPieChart({
685			animate : 1000,
686			barColor : $(this).css("color"),
687			trackColor : "",
688			size : 202,
689			lineWidth : 7,
690			lineCap : 'square',
691			scaleColor : false,
692			onStep : function (from, to, percent) {
693				$(this.el).find('.percentage_inner span').text(Math.round(percent));
694			}
695		});
696	});
697		
698		$(".list-percentage10").each(function () {
699		$(this).easyPieChart({
700			animate : 1000,
701			barColor : $(this).css("color"),
702			trackColor : "#ebeaea",
703			size : 202,
704			lineWidth : 12,
705			lineCap : 'square',
706			scaleColor : false,
707			onStep : function (from, to, percent) {
708				$(this.el).find('.percentage_inner span').text(Math.round(percent));
709			}
710		});
711	});
712		
713	$(".percentage2").each(function () {
714		$(this).easyPieChart({
715			animate : 1000,
716			barColor : $(this).css("color"),
717			trackColor : "transparent",
718			size : 251,
719			lineWidth : 7,
720			lineCap : 'round',
721			scaleColor : false,
722			onStep : function (from, to, percent) {
723				$(this.el).find('.percentage_inner span').text(Math.round(percent));
724			}
725		});
726	});
727	
728	$(".percentage3").each(function () {
729		$(this).easyPieChart({
730			animate : 1000,
731			barColor : $(this).css("color"),
732			trackColor : "transparent",
733			size : 192,
734			lineWidth : 14,
735			lineCap : 'square',
736			scaleColor : false,
737			onStep : function (from, to, percent) {
738				$(this.el).find('.percentage_inner span').text(Math.round(percent));
739			}
740		});
741	});
742	
743	
744	$(".percentage21").each(function () {
745		$(this).easyPieChart({
746			animate : 1000,
747			barColor : $(this).css("color"),
748			trackColor : "transparent",
749			size : 154,
750			lineWidth : 3,
751			lineCap : 'square',
752			scaleColor : false,
753			onStep : function (from, to, percent) {
754				$(this.el).find('.percentage_inner span').text(Math.round(percent));
755			}
756		});
757	});
758	
759	$(".home21-percentage").each(function () {
760		$(this).easyPieChart({
761			animate : 1000,
762			barColor : $(this).css("color"),
763			trackColor : "transparent",
764			size : 154,
765			lineWidth : 3,
766			lineCap : 'square',
767			scaleColor : false,
768			onStep : function (from, to, percent) {
769				$(this.el).find('.percentage_inner span').text(Math.round(percent));
770			}
771		});
772	});
773	
774	$(".home25-percentage").each(function () {
775		$(this).easyPieChart({
776			animate : 1000,
777			barColor : $(this).css("color"),
778			trackColor : "#f6f6f6",
779			size : 120,
780			lineWidth : 15,
781			lineCap : 'round',
782			scaleColor : false,
783			onStep : function (from, to, percent) {
784				$(this.el).find('.percentage_inner span').text(Math.round(percent));
785			}
786		});
787	});
788		
789	
790	$(".home29-percentage").each(function () {
791		$(this).easyPieChart({
792			animate : 1000,
793			barColor : $(this).css("color"),
794			trackColor : "#ffffff",
795			size : 180,
796			lineWidth :5,
797			lineCap : 'square',
798			scaleColor : false,
799			onStep : function (from, to, percent) {
800				$(this.el).find('.percentage_inner span').text(Math.round(percent));
801			}
802		});
803	});
804	
805		$(".home41-percentage").each(function () {
806		$(this).easyPieChart({
807			animate : 1000,
808			barColor : $(this).css("color"),
809			trackColor : "#f6f6f6",
810			size : 178,
811			lineWidth :5,
812			lineCap : 'square',
813			scaleColor : false,
814			onStep : function (from, to, percent) {
815				$(this.el).find('.percentage_inner span').text(Math.round(percent));
816			}
817		});
818	});
819		
820		$(".list-percentage39").each(function () {
821		$(this).easyPieChart({
822			animate : 1000,
823			barColor : $(this).css("color"),
824			trackColor : "",
825			size : 95,
826			lineWidth : 2,
827			lineCap : 'square',
828			scaleColor : false,
829			onStep : function (from, to, percent) {
830				$(this.el).find('.percentage_inner span').text(Math.round(percent));
831			}
832		});
833	});
834	$(".faq02-percentage").each(function () {
835		$(this).easyPieChart({
836			animate : 1000,
837			barColor : $(this).css("color"),
838			trackColor : "transparent",
839			size : 200,
840			lineWidth : 6,
841			lineCap : 'square',
842			scaleColor : false,
843			onStep : function (from, to, percent) {
844				$(this.el).find('.percentage_inner span').text(Math.round(percent));
845			}
846		});
847	});
848	$(".percentage4").each(function () {
849		$(this).easyPieChart({
850			animate : 1000,
851			barColor : $(this).css("color"),
852			trackColor : "#FFFFFF",
853			size : 94,
854			lineWidth : 2,
855			lineCap : 'square',
856			scaleColor : false,
857			onStep : function (from, to, percent) {
858				$(this.el).find('.percentage_inner span').text(Math.round(percent));
859			}
860		});
861	});
862	$(".percentage5").each(function () {
863		$(this).easyPieChart({
864			animate : 1000,
865			barColor : $(this).css("color"),
866			trackColor : "#f0f0f0",
867			size : 160,
868			lineWidth : 2,
869			lineCap : 'square',
870			scaleColor : false,
871			onStep : function (from, to, percent) {
872				$(this.el).find('.percentage_inner span').text(Math.round(percent));
873			}
874		});
875	});
876	var home09percentage = $(".home09-percentage");
877	home09percentage.easyPieChart({
878		animate : 2000,
879		barColor : home09percentage.css("color"),
880		trackColor : "transparent",
881		size : 190,
882		lineWidth : 2,
883		lineCap : 'square',
884		scaleColor : false,
885		onStep : function (from, to, percent) {
886			$(this.el).find('.percentage_inner span').text(Math.round(percent));
887		}
888	});
889
890	var e_13 = $(".percentage13");
891	e_13.easyPieChart({
892		animate : 2000,
893		barColor : e_13.css("color"),
894		trackColor : "#eeeeee",
895		size : 150,
896		lineWidth : 11,
897		lineCap : 'square',
898		scaleColor : false,
899		onStep : function (from, to, percent) {
900			$(this.el).find('.percentage_inner span').text(Math.round(percent));
901		}
902	});
903	var e_15 = $(".home15-percentage");
904	e_15.easyPieChart({
905		animate : 2000,
906		barColor : "#000",
907		trackColor : "#FFF",
908		size : 185,
909		lineWidth : 8,
910		lineCap : 'round',
911		scaleColor : false,
912		onStep : function (from, to, percent) {
913			$(this.el).find('.percentage_inner span').text(Math.round(percent));
914		}
915	});
916	
917
918    var e_2 = $(".service01-percentage2");
919    e_2.easyPieChart({
920        animate: 2000,
921        barColor: e_2.css("color"),
922        trackColor: "rgba(0,0,0,0.2)",
923        size: 170,
924        lineWidth: 13,
925        lineCap: 'square',
926        scaleColor: false,
927       onStep : function (from, to, percent) {
928			$(this.el).find('.percentage_inner span').text(Math.round(percent));
929		}
930    });
931
932	
933	var e_16 = $(".home16-percentage");
934	e_16.easyPieChart({
935		animate : 2000,
936		barColor : e_16.css('color'),
937		trackColor : "#dddddd",
938		size : 155,
939		lineWidth : 25,
940		lineCap : 'square',
941		scaleColor : false,
942		onStep : function (from, to, percent) {
943			$(this.el).find('.percentage_inner span').text(Math.round(percent));
944		}
945	});
946	var e_26 = $(".home26-chart .percentage");
947	e_26.easyPieChart({
948		animate : 2000,
949		barColor :"#FFF",
950		trackColor : e_26.css('color'),
951		size : 152,
952		lineWidth :6,
953		lineCap : 'square',
954		scaleColor : false,
955		onStep : function (from, to, percent) {
956			$(this.el).find('.percentage_inner span').text(Math.round(percent));
957		}
958	});
959
960
961});
962
963//source_code
964jQuery(document).ready(function ($) {
965	var $source = $(".source_code");
966	$source.find("a").click(function () {
967		$(this).siblings("pre").css("display") == "none" ? $(this).siblings("pre").slideDown(200) : $(this).siblings("pre").slideUp(200);
968		$(this).siblings(".source_box").css("display") == "none" ? $(this).siblings(".source_box").slideDown(200) : $(this).siblings(".source_box").slideUp(200);
969		return false;
970	})
971})
972
973$(document).ready(function () {
974	$(".home01-carousel").each(function () {
975		$(this).owlCarousel({
976			items : $(this).attr("data-items") ? $(this).data("items") : 6,
977			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
978			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
979			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
980			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
981			stopOnHover : true,
982		})
983	})
984	$(".history01-carousel,.history01-carouse02,.history02-carouse02,.home29-carousel").each(function () {
985		$(this).owlCarousel({
986			items : $(this).attr("data-items") ? $(this).data("items") : 1,
987			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
988			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
989			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
990			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
991			stopOnHover : true,
992			itemsDesktop : [1199, 1],
993			itemsDesktopSmall : [979, 1],
994			itemsTablet : [768, 1],
995			itemsMobile : [479, 1],
996		})
997	})
998		$(".service02-carousel").each(function () {
999		$(this).owlCarousel({
1000			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1001			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1002			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1003			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1004			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1005			stopOnHover : true,
1006			itemsDesktop : [1199, 1],
1007			itemsDesktopSmall : [979, 1],
1008			itemsTablet : [768, 1],
1009			itemsMobile : [479, 1],
1010		})
1011	})
1012		
1013		$(".detail02-carousel,.home34-carousel,.home37-carousel").each(function () {
1014		$(this).owlCarousel({
1015			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1016			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1017			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1018			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1019			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1020			stopOnHover : true,
1021			itemsDesktop : [1199, 3],
1022			itemsDesktopSmall : [979, 3],
1023			itemsTablet : [768, 2],
1024			itemsMobile : [479, 1],
1025		})
1026	})	
1027		
1028	$(".home03-carousel,.home08-carousel,.carousel_4,.carousel_5,.carousel_6,.carousel_8,.home22-carousel").each(function () {
1029		$(this).owlCarousel({
1030			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1031			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1032			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1033			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1034			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1035			itemsDesktop : [1199, 3],
1036			itemsDesktopSmall : [979, 3],
1037			itemsTablet : [768, 2],
1038			itemsMobile : [479, 1],
1039		})
1040	})
1041	
1042	$(".carousel_7").each(function () {
1043		var e = $(this);
1044		$(this).owlCarousel({
1045			singleItem : true,
1046			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1047			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1048			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1049			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1050			afterAction : function () {
1051				var current = this.currentItem;
1052				e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")
1053			}
1054		});
1055	})
1056	
1057	$(".home06-carousel,.ourteam-short").each(function () {
1058		$(this).owlCarousel({
1059			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1060			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1061			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1062			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1063			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1064			itemsDesktop : [1199, 2],
1065			itemsDesktopSmall : [979, 2],
1066			itemsTablet : [768, 2],
1067			itemsMobile : [479, 1],
1068		})
1069	})
1070
1071	$(".home07-carousel").each(function () {
1072		$(this).owlCarousel({
1073			singleItem : true,
1074			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1075			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1076			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1077			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1078		}).css("marginBottom", parseInt($(this).find(".owl-pagination").height()) + parseInt($(this).find(".owl-pagination").css("marginTop")) + parseInt($(this).css("marginBottom")) + "px");
1079	})
1080	$(".home07-carousel02").each(function () {
1081		$(this).owlCarousel({
1082			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1083			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1084			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1085			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1086			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1087		}).css("marginBottom", parseInt($(this).find(".owl-pagination").height()) + parseInt($(this).find(".owl-pagination").css("marginTop")) + parseInt($(this).css("marginBottom")) + "px");
1088	})
1089	
1090	
1091	$(".home09-carousel").each(function () {
1092		$(this).owlCarousel({
1093			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1094			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1095			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1096			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1097			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1098		}).css("marginBottom", parseInt($(this).find(".owl-pagination").height()) + parseInt($(this).find(".owl-pagination").css("marginTop")) + parseInt($(this).css("marginBottom")) + "px");
1099	})
1100	$(".home10-carousel").each(function () {
1101		$(this).owlCarousel({
1102			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1103			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1104			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1105			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1106			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1107		});
1108	})
1109	$(".home10-carousel02").each(function () {
1110		$(this).owlCarousel({
1111			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1112			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1113			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1114			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1115			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1116		});
1117	})
1118	$(".home12-carousel").each(function () {
1119		$(this).owlCarousel({
1120			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1121			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1122			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1123			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1124			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1125		});
1126	})
1127	$(".home12-carousel02").each(function () {
1128		$(this).owlCarousel({
1129			items : $(this).attr("data-items") ? $(this).data("items") : 5,
1130			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1131			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1132			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1133			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1134		});
1135	})
1136	$(".home13-carousel").each(function () {
1137		$(this).owlCarousel({
1138			items : $(this).attr("data-items") ? $(this).data("items") : 5,
1139			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1140			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1141			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1142			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1143		});
1144	})
1145	$(".home14-carousel").each(function () {
1146		$(this).owlCarousel({
1147			items : $(this).attr("data-items") ? $(this).data("items") : 5,
1148			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1149			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1150			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1151			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1152		});
1153	})
1154	$(".home14-carousel02").each(function () {
1155		$(this).owlCarousel({
1156			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1157			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1158			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1159			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1160			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1161			itemsDesktop : $(this).attr("data-items") ? $(this).data("items") : 3,
1162			itemsDesktopSmall : $(this).attr("data-items") ? $(this).data("items") : 2,
1163			itemsTablet : $(this).attr("data-items") ? $(this).data("items") : 1,
1164		}).css("marginBottom", parseInt($(this).find(".owl-pagination").height()) + parseInt($(this).find(".owl-pagination").css("marginTop")) + parseInt($(this).css("marginBottom")) + "px");
1165	})
1166	$(".home16-carousel").each(function () {
1167		$(this).owlCarousel({
1168			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1169			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1170			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1171			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1172			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1173		}).css("marginBottom", parseInt($(this).find(".owl-pagination").height()) + parseInt($(this).find(".owl-pagination").css("marginTop")) + parseInt($(this).css("marginBottom")) + "px"); ;
1174	})
1175	$(".home18-carousel").each(function () {
1176		var e = $(this);
1177		$(this).owlCarousel({
1178			singleItem : true,
1179			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1180			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1181			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1182			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1183			afterAction : function () {
1184				var current = this.currentItem;
1185				e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")
1186			}
1187		});
1188	})
1189		$(".home19-carousel").each(function() {
1190		$(this).owlCarousel({
1191				items :	$(this).attr("data-items")	    ? $(this).data("items")		  :4,
1192		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :true,
1193		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
1194			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :true,
1195		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true,
1196		   			itemsDesktop : [1199, 3],
1197			itemsDesktopSmall : [979, 3],
1198			itemsTablet : [768, 2],
1199			itemsMobile : [479, 1],
1200		}).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px");;
1201	})
1202
1203		$(".home20-carousel").each(function() {
1204		$(this).owlCarousel({
1205				items :	$(this).attr("data-items")	    ? $(this).data("items")		  :4,
1206		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :true,
1207		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
1208			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :true,
1209		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true,
1210		   			itemsDesktop : [1199, 4],
1211			itemsDesktopSmall : [979, 4],
1212			itemsTablet : [768, 2],
1213			itemsMobile : [479, 1],
1214		}).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px");;
1215	})
1216	
1217		$(".home20-carousel02").each(function() {
1218		$(this).owlCarousel({
1219				items :	$(this).attr("data-items")	    ? $(this).data("items")		  :5,
1220		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :true,
1221		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
1222			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :true,
1223		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true,
1224			itemsDesktop : [1199, 5],
1225			itemsDesktopSmall : [979, 5],
1226			itemsTablet : [768, 3],
1227			itemsMobile : [479, 1],
1228		}).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px");;
1229	})
1230
1231	$(".home18-carousel02").each(function () {
1232		$(this).owlCarousel({
1233			items : $(this).attr("data-items") ? $(this).data("items") : 6,
1234			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1235			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1236			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1237			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1238		})
1239	})
1240	$(".home24-carousel").each(function () {
1241		$(this).owlCarousel({
1242			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1243			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1244			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1245			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1246			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1247		})
1248	})
1249	$(".home32-carousel").each(function () {
1250		$(this).owlCarousel({
1251			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1252			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1253			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1254			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1255			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1256		})
1257	})
1258	$(".home32-carousel2").each(function () {
1259		$(this).owlCarousel({
1260			items : $(this).attr("data-items") ? $(this).data("items") : 2,
1261			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1262			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1263			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1264			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1265			itemsDesktop : [1199, 2],
1266			itemsDesktopSmall : [979, 2],
1267			itemsTablet : [768, 1],
1268			itemsMobile : [479, 1],
1269		})
1270	})
1271	$(".home33-carousel").each(function () {
1272		$(this).owlCarousel({
1273			items : $(this).attr("data-items") ? $(this).data("items") : 6,
1274			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1275			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : false,
1276			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1277			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1278		})
1279	})
1280	$(".home35-carousel").each(function () {
1281		$(this).owlCarousel({
1282			items : $(this).attr("data-items") ? $(this).data("items") : 3,
1283			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : false,
1284			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1285			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1286			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1287			itemsDesktop : [1199, 2],
1288			itemsDesktopSmall : [979, 2],
1289			itemsTablet : [768, 1],
1290			itemsMobile : [479, 1],
1291		})
1292	})
1293	$(".home35-carousel02").each(function () {
1294		$(this).owlCarousel({
1295			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1296			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1297			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : false,
1298			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1299			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1300			itemsDesktop : [1199, 3],
1301			itemsDesktopSmall : [979, 3],
1302			itemsTablet : [768, 1],
1303			itemsMobile : [479, 1],
1304		})
1305	})
1306	
1307		$(".ourteam-short05").each(function () {
1308		$(this).owlCarousel({
1309			items : $(this).attr("data-items") ? $(this).data("items") : 4,
1310			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1311			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : false,
1312			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1313			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1314			itemsDesktop : [1199, 3],
1315			itemsDesktopSmall : [979, 3],
1316			itemsTablet : [768, 2],
1317			itemsMobile : [479, 1],
1318		})
1319	})
1320
1321
1322	$(".clients-carousel01,.clients-carousel02,.clients-carousel03").each(function () {
1323		$(this).owlCarousel({
1324			items : $(this).attr("data-items") ? $(this).data("items") : 5,
1325			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1326			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1327			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1328			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1329		})
1330	})
1331
1332	$(".clients-carousel04").each(function () {
1333		$(this).owlCarousel({
1334			items : $(this).attr("data-items") ? $(this).data("items") : 8,
1335			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1336			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1337			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1338			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1339		})
1340	})
1341	
1342	$(".blog-carousel").each(function () {
1343		var e = $(this);
1344		$(this).owlCarousel({
1345			singleItem : true,
1346			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1347			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : false,
1348			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1349			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true,
1350			afterAction : function () {
1351				var current = this.currentItem;
1352				e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")
1353			}
1354		});
1355	})
1356	$(".welcome-carousel").each(function () {
1357		$(this).owlCarousel({
1358			items : $(this).attr("data-items") ? $(this).data("items") : 8,
1359			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : true,
1360			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1361			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1362			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : true
1363		})
1364	})
1365	$(".menu-carousel").each(function () {
1366		var e = $(this);
1367		$(this).owlCarousel({
1368			singleItem : true,
1369			navigation : $(this).attr("data-navigation") ? $(this).data("navigation") : false,
1370			pagination : $(this).attr("data-pagination") ? $(this).data("pagination") : true,
1371			autoPlay : $(this).attr("data-autoplay") ? $(this).data("autoplay") : true,
1372			autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight") : false,
1373			afterAction : function () {
1374				var current = this.currentItem;
1375				e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")
1376			}
1377		});
1378	})
1379});
1380$(document).ready(function() {
1381
1382    $(".sync_carousel_1").each(function() {
1383        var sync = $(this),
1384            sync1 = sync.find(".carousel_main"),
1385            sync2 = sync.find(".carousel_nav");
1386        sync1.owlCarousel({
1387            singleItem: true,
1388            slideSpeed: 1000,
1389            navigation: true,
1390            pagination: false,
1391            afterAction: syncPosition,
1392            responsiveRefreshRate: 200
1393        });
1394        sync2.owlCarousel({
1395            items: 5,
1396            itemsDesktop: [1199, 4],
1397            itemsDesktopSmall: [979, 3],
1398            itemsTablet: [768, 2],
1399            itemsMobile: [479, 1],
1400            pagination: false,
1401            responsiveRefreshRate: 100,
1402            afterInit: function(el) {
1403                el.find(".owl-item").eq(0).addClass("synced");
1404            }
1405        });
1406
1407        function syncPosition(el) {
1408            var current = this.currentItem;
1409            sync2.find(".owl-item").removeClass("synced").eq(current).addClass("synced");
1410            if (sync2.data("owlCarousel") !== undefined) {
1411                center(current)
1412            }
1413        }
1414        sync2.on("click", ".owl-item",
1415            function(e) {
1416                e.preventDefault();
1417                var number = $(this).data("owlItem");
1418                sync1.trigger("owl.goTo", number);
1419            });
1420
1421        function center(number) {
1422            var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
1423            var num = number;
1424            var found = false;
1425            for (var i in sync2visible) {
1426                if (num === sync2visible[i]) {
1427                    var found = true;
1428                }
1429            }
1430            if (found === false) {
1431                if (num > sync2visible[sync2visible.length - 1]) {
1432                    sync2.trigger("owl.goTo", num - sync2visible.length + 1)
1433                } else {
1434                    if (num - 1 === -1) {
1435                        num = 0;
1436                    }
1437                    sync2.trigger("owl.goTo", num);
1438                }
1439            } else if (num === sync2visible[sync2visible.length - 1]) {
1440                sync2.trigger("owl.goTo", sync2visible[1])
1441            } else if (num === sync2visible[0]) {
1442                sync2.trigger("owl.goTo", num - 1)
1443            }
1444        }
1445    })
1446})
1447$(document).ready(function () {
1448	$('.home14-circle').each(function () {
1449		$(this).content_slider({ // bind plugin to div id="slider1"
1450			max_shown_items : 7, // number of visible circles
1451			hv_switch : 0, // 0 = horizontal slider, 1 = vertical
1452			active_item : 0, // layer that will be shown at start, 0=first, 1=second...
1453			wrapper_text_max_height : "auto", // height of widget, displayed in pixels
1454			middle_click : 1, // when main circle is clicked: 1 = slider will go to the previous layer/circle, 2 = to the next
1455			under_600_max_height : 1200, // if resolution is below 600 px, set max height of content
1456			automatic_height_resize : 1,
1457			border_on_off : 0,
1458			prettyPhoto_width : 42
1459		})
1460	});
1461});
1462
1463$(document).ready(function () {
1464	$('.Testimonials10-tab').each(function () {
1465		$(this).content_slider({ // bind plugin to div id="slider1"
1466			max_shown_items : 7, // number of visible circles
1467			hv_switch : 0, // 0 = horizontal slider, 1 = vertical
1468			active_item : 0, // layer that will be shown at start, 0=first, 1=second...
1469			wrapper_text_max_height : "auto", // height of widget, displayed in pixels
1470			middle_click : 1, // when main circle is clicked: 1 = slider will go to the previous layer/circle, 2 = to the next
1471			under_600_max_height : 1200, // if resolution is below 600 px, set max height of content
1472			automatic_height_resize : 1,
1473			border_on_off : 0,
1474			prettyPhoto_width : 42
1475		})
1476	});
1477});
1478
1479jQuery(document).ready(function ($) {
1480	if (!$(".HeaderPane").hasClass("DNNEmptyPane")) {
1481		$(".HeaderPane_mobile").html($(".HeaderPane .Normal").html())
1482	}
1483	if (!$(".HeaderPaneB").hasClass("DNNEmptyPane")) {
1484		$(".HeaderPaneB_mobile").html($(".HeaderPaneB .Normal").html()).css("marginTop", "15px")
1485	}
1486	if (!$(".LogoPane").hasClass("DNNEmptyPane")) {
1487		$(".mobileLogoPane").html($(".LogoPane .Normal").html())
1488	}
1489
1490})
1491
1492if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
1493	var msViewportStyle = document.createElement("style");
1494	msViewportStyle.appendChild(
1495		document.createTextNode("@-ms-viewport{width:auto!important}"));
1496	document.getElementsByTagName("head")[0].
1497	appendChild(msViewportStyle);
1498}
1499
1500jQuery(document).ready(function ($) {
1501	$(window).load(function () {
1502		$(".sector").sectorload();
1503	});
1504	$(window).scroll(function () {
1505		$(".sector").sectorload();
1506	})
1507});
1508
1509
1510jQuery(document).ready(function ($) {
1511	var e = $(".sidemenu-pos .leftMain.fxdenabled,.sidemenu-pos .rightMain.fxdenabled");
1512	e.each(function () {
1513		var l = $(this),
1514			e = l.parents(".sidemenu-pos"),
1515			offset = 20;
1516		l.css("max-height", $(window).height() - offset);
1517		l.mCustomScrollbar({
1518			autoHideScrollbar: true,
1519			theme: "light-thin"
1520		});
1521		$(this).css("min-height", Math.min(l.height(), $(window).height() - offset));
1522		var t = e.offset().top - offset,
1523			th = e.height(),
1524			h = l.height(),
1525			b = t + th - h,
1526			lt = th - h,
1527			r = true;
1528		function maxw() {
1529			l.css({"height":"inherit","min-height":"inherit"});
1530			if(l.height()>$(window).height() - offset){
1531				l.css({"height":$(window).height() - offset,"min-height":$(window).height() - offset});
1532			}
1533			e.css("min-height", Math.min(l.height(), $(window).height() - offset));
1534		}
1535		function newb() {
1536			t = e.offset().top - offset;
1537			h = l.height() - offset;
1538			th = e.height() - offset;
1539			b = t + th - h;
1540			lt = th - h;
1541		}
1542		$(window).resize(function () {
1543			maxw();
1544			l.mCustomScrollbar("update");
1545		})
1546		l.resize(function () {
1547			maxw();
1548			newb();
1549		})
1550		e.resize(function () {
1551			maxw();
1552			newb();
1553			if (l.css("position") == "fixed") {
1554				l.css({
1555					"position" : "static",
1556					"width" : "auto"
1557				})
1558				l.width(l.width())
1559				l.css("position", "fixed")
1560			}
1561			if (l.css("position") == "absolute") {
1562				l.css({
1563					"position" : "static",
1564					"width" : "auto"
1565				})
1566				l.width(l.width())
1567				l.css("position", "absolute")
1568			}
1569			maxw();
1570		})
1571		
1572		$(window).scroll(function () {
1573			if ($(".roll_menu").hasClass("roll_activated")) {
1574				offset = $(".roll_menu.roll_activated").height()+20;
1575				if (r) {
1576					maxw();
1577					newb();
1578					r = false;
1579					l.mCustomScrollbar("update");
1580				}
1581			} else {
1582				offset = 20;
1583				r=true;
1584			}
1585			if ($(window).scrollTop() >= t) {
1586				l.width(l.width())
1587				l.css({
1588					"position" : "fixed",
1589					"top" : offset
1590				})
1591			}
1592			if ($(window).scrollTop() < t) {
1593				l.width("auto")
1594				l.css({
1595					"position" : "relative",
1596					"top" : 0
1597				})
1598			}
1599			if ($(window).scrollTop() >= b) {
1600				l.css({
1601					"position" : "absolute",
1602					"top" : lt
1603				})
1604			}
1605		})
1606
1607	});
1608
1609})
1610
1611jQuery(document).ready(function ($) {
1612	$(".home17-banner").each(function () {
1613		var full = $(this).find("li");
1614		full.height($(window).height());
1615		$(window).resize(function () {
1616			full.height($(window).height())
1617		})
1618	});
1619	$(".home17-banner .nextPage").click(function () {
1620		jQuery('body,html').animate({
1621			scrollTop : $(window).height()
1622		}, 500);
1623	})
1624	$(".history-box .history-boxgotop").click(function () {
1625		jQuery('body,html').animate({
1626			scrollTop : $(window).height()
1627		}, 500);
1628	})
1629	//	runs();
1630	$(window).load(function () {
1631		$(".home17-banner").addClass("animations");
1632	})
1633
1634})
1635
1636$(document).ready(function() {
1637	$(".aboutus02-carouse").each(function() {
1638		$(this).owlCarousel({
1639		items :	$(this).attr("data-items")	   	? $(this).data("items")		  :5,
1640		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :true,
1641		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
1642			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :true,
1643		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true
1644		});
1645	})						   
1646						   
1647 $(".home16_slidecarousel").each(function() {
1648		var sync = $(this),
1649		sync1 = sync.find(".carousel_main"),
1650		sync2 = sync.find(".carousel_nav");
1651		sync1.owlCarousel({
1652			singleItem: true,
1653			slideSpeed: 1000,
1654			navigation: true,
1655			pagination: false,
1656			afterAction: syncPosition,
1657			responsiveRefreshRate: 200,
1658		});
1659		sync2.owlCarousel({
1660			items: 6,
1661			itemsDesktop: [1199, 6],
1662			itemsDesktopSmall: [979, 6],
1663			itemsTablet: [768, 4],
1664			itemsMobile: [479, 3],
1665			pagination: false,
1666			responsiveRefreshRate: 100,
1667			afterInit: function(el) {
1668				el.find(".owl-item").eq(0).addClass("synced");
1669			}
1670		});
1671		function syncPosition(el) { 
1672			var current = this.currentItem;
1673			sync2.find(".owl-item").removeClass("synced").eq(current).addClass("synced");
1674			if (sync2.data("owlCarousel") !== undefined) {
1675				center(current)
1676			}
1677		}
1678		sync2.on("click", ".owl-item",
1679		function(e) {
1680			e.preventDefault();
1681			var number = $(this).data("owlItem");
1682			sync1.trigger("owl.goTo", number);
1683		});
1684		function center(number) {
1685			var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
1686			var num = number;
1687			var found = false;
1688			for (var i in sync2visible) {
1689				if (num === sync2visible[i]) {
1690					var found = true;
1691				}
1692			}
1693			if (found === false) {
1694				if (num > sync2visible[sync2visible.length - 1]) {
1695					sync2.trigger("owl.goTo", num - sync2visible.length + 2)
1696				} else {
1697					if (num - 1 === -1) {
1698						num = 0;
1699					}
1700					sync2.trigger("owl.goTo", num);
1701				}
1702			} else if (num === sync2visible[sync2visible.length - 1]) {
1703				sync2.trigger("owl.goTo", sync2visible[1])
1704			} else if (num === sync2visible[0]) {
1705				sync2.trigger("owl.goTo", num - 1)
1706			}
1707		}
1708	})
1709})
1710
1711$(document).ready(function() {
1712	$(".dg-price08").each(function() {
1713        var box=$(this);
1714			box.find(".row .price-holder").each(function() {
1715				$(this).find("li").each(function(index) {
1716					$(this).prepend("<span class=\"mobile-text\">"+box.find(".left-title .price-holder li").eq(index).html()+":</span>")
1717				})
1718            });
1719		
1720    });
1721	
1722})
1723
1724$(document).ready(function() {
1725	$(".blog-categories .current,.portfolio-categories .current").show();	
1726	$(".blog-categories li,.portfolio-categories li").each(function(){
1727		var e=$(this);
1728		if(e.children("ul").length>0){
1729			if(e.hasClass("current")){
1730				e.addClass("active")
1731			}
1732			e.append("<span class=\"arrow\"></span> ")
1733			e.children(".arrow").on("click",function(){
1734				e.children("ul").stop().slideToggle().siblings().children("ul").slideUp();
1735				e.siblings().children("ul").stop().slideUp();
1736				
1737				e.toggleClass("active")
1738				e.siblings().removeClass("active")
1739			})
1740		}
1741	})	
1742})
1743$(document).ready(function() {
1744	$(".blog-tab").each(function(){
1745		var e=$(this);
1746		$(this).find(".tab-title li").on("click",function(){
1747			$(this).addClass("active").siblings().removeClass("active");
1748			e.find(".tab-container .tab-main").eq($(this).index()).addClass("active").siblings().removeClass("active");
1749		})		
1750		
1751	})	
1752})
1753
1754
1755
1756$(document).ready(function() {
1757	jQuery(".portfolio-isotope").each(function(index, element) {
1758	var m = jQuery(this),
1759		box=m.children(".portfolio-mian"),
1760		list=box.children(".element"),
1761		n=1,
1762		itm_w=0;
1763		cog = {
1764			mobilesmall : [320,1],
1765			mobile : [479,2],
1766			tablet : [768,3],
1767			desktopsmall : [979,3],
1768			desktop : [1199,4],
1769			itme : 4,
1770			spacing:0
1771		};
1772		for(i in cog){
1773			if(m.data(i)){ 
1774				cog[i]=m.data(i)
1775			}else if(m.data(i.toLowerCase())){ 
1776				cog[i]=m.data(i.toLowerCase())
1777			};
1778		}
1779		list.find(".element-box").css("margin","0 0 "+cog.spacing+"px "+cog.spacing+"px");
1780		box.css("margin","0 0 -"+cog.spacing+"px -"+cog.spacing+"px");
1781		
1782		var responsive = function(list){
1783			w=$(window).width();
1784			if(w<=cog.mobilesmall[0]){
1785					itm_w=100/cog.mobilesmall[1]
1786			}else if(w<=cog.mobile[0]){
1787					itm_w=100/cog.mobile[1]
1788			}else if(w<=cog.tablet[0]){
1789					itm_w=100/cog.tablet[1]
1790			}else if(w<=cog.desktopsmall[0]){
1791					itm_w=100/cog.desktopsmall[1]
1792			}else if(w<=cog.desktop[0]){
1793					itm_w=100/cog.desktop[1]
1794			}else{
1795					itm_w=100/cog.itme
1796			}
1797			list.each(function() {
1798				if($(this).data("zoom")){
1799					$(this).width(itm_w*$(this).data("zoom")+"%")
1800				}else{
1801					$(this).width(itm_w+"%")
1802				}
1803			});
1804			
1805		}	
1806		var ImgLoad = function(callback,e){
1807			var imgdefereds=[];
1808			e.find('img').each(function(){
1809				var dfd=jQuery.Deferred();
1810					$(this).bind('load',function(){
1811						dfd.resolve();
1812					}).bind('error',function(){
1813					})
1814					if(this.complete) setTimeout(function(){
1815						dfd.resolve();
1816					},1000);
1817					imgdefereds.push(dfd);
1818			})
1819			jQuery.when.apply(null,imgdefereds).done(function(){
1820				callback();
1821			});
1822		}
1823		var operation = function(e) {
1824			list.fadeIn(500);
1825			e.isotope()
1826			};
1827		
1828		ImgLoad(function(){
1829			box.show();
1830			responsive(list);
1831		    operation(box);
1832			m.removeClass("loading");
1833			$(window).resize(function(){
1834				responsive(list);
1835				box.isotope({itemSelector: '.element'})
1836			});
1837		},box)	
1838		
1839		m.find(".filters a").on("click",function(element){
1840			element.preventDefault();
1841			if(!$(this).hasClass("active")){
1842				$(this).addClass("active").siblings().removeClass("active");
1843				box.isotope({
1844					filter: $(this).attr("href")
1845				});
1846			}
1847		})
1848 
1849    });
1850});
1851
1852$(document).ready(function() {
1853	$('.gallery-carousel').each(function(index, element) {
1854		var e=$(this);
1855		var cog={
1856				dots: true,
1857				infinite: true,
1858				speed: 700,
1859				slidesToShow: 4,
1860				centerMode: false,
1861				variableWidth: false,
1862				autoplay:false,
1863				autoplaySpeed:3000,
1864				arrows:true
1865			}
1866		for(i in cog){
1867			if(e.data(i)){ 
1868				cog[i]=e.data(i)
1869			}else if(e.data(i.toLowerCase())){ 
1870				cog[i]=e.data(i.toLowerCase())
1871			};
1872		}
1873	e.slick(cog).on('setPosition', function(event, slick, currentSlide, nextSlide){
1874        e.removeClass("loading");
1875	});
1876    });
1877});
1878
1879
1880$(document).ready(function() {
1881	$(".portfolio-list04 .element-view").mCustomScrollbar({
1882		autoHideScrollbar: true,
1883		theme: "light-thin"
1884	});
1885	$(window).load(function() {
1886		$(".portfolio-list04 .element-view").mCustomScrollbar("update");
1887	})
1888
1889	ImgLoad(function(){
1890		$(".portfolio-list04 .element-view").mCustomScrollbar("update");	
1891	},$(".portfolio-list04 .element-view"))
1892
1893});
1894
1895
1896$(function(){  
1897  $('.welcome-page a[href*=#],.welcome-page area[href*=#]').click(function() {
1898    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
1899      var $target = $(this.hash);
1900      $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
1901      if ($target.length) {
1902        var targetOffset = $target.offset().top;
1903        $('html,body').animate({
1904          scrollTop: targetOffset
1905        },
1906        1000);
1907        return false;
1908      }
1909    }
1910  });
1911})
1912
1913$(document).ready(function() {
1914	if($(".welcome-page").length!=0){
1915        animationShow({"#mobile_icon":"#mobile_menu"});
1916        animationShow({"#searchbut":"#searchBox"});
1917	}
1918})
1919
1920jQuery(document).ready(function ($) {
1921	$(".full-height").each(function(index, element) {
1922		var e=$(this);
1923        e.css("height",$(window).height())
1924		$(window).on("resize",function(index, element) {
1925			e.css("height",$(window).height())	
1926		})
1927    });
1928
1929	$(".video-bg").each(function() {
1930	var box=$(this),
1931		bg=box.children(".videobox"),
1932		video = bg.find("video,iframe,object,embed"),
1933		n=0;
1934        var vg=function(){
1935			n=0;
1936			bg.css({
1937				top:n,
1938				left:n,
1939				right:n,
1940				bottom:n
1941			})
1942			if(video.outerHeight() >= box.outerHeight()){
1943				n= -(video.outerHeight()-box.outerHeight())/2
1944				bg.css({
1945					top:n,
1946					bottom:n
1947				})
1948			}else{
1949				n= ((video.outerHeight()-box.outerHeight())/2) * (video.width()/video.height())
1950				bg.css({
1951					left:n,
1952					right:n
1953				})
1954			}
1955		}
1956		vg();
1957		
1958		box.find(".play").on("click",function(){
1959		if(video[0].tagName=="video" || video[0].tagName=="VIDEO"){
1960			var isPlaying = video[0].currentTime > 0 && !video[0].paused && !video[0].ended&& video[0].readyState > 2;
1961
1962			if(video[0].readyState != 0 ){ 
1963				if (video[0].paused){
1964					if(!isPlaying){
1965				   video[0].play();
1966				   }
1967				}
1968			   else{
1969				   if(isPlaying){
1970				   video[0].pause();
1971				   }
1972				}
1973			}	
1974
1975
1976		 }	
1977		})	
1978			
1979		$(window).resize(function(){
1980			vg();
1981		})
1982		$(window).load(function(){
1983			vg();
1984		})
1985		
1986    });
1987});
1988
1989//home5banner
1990jQuery(document).ready(function($) {
1991	 $(window).load(function() {
1992    $("#home19-nextPage").click(function() {
1993		  var h=$(".home19-banner01-bg").height();
1994		  var header_h=$(".header_bg").height();	
1995          jQuery('body,html').animate({
1996                scrollTop:h-header_h
1997            }, 500);
1998        })
1999        //	runs();
2000})
2001})
2002//home5banner
2003jQuery(document).ready(function($) {   
2004    $("#home20-next").click(function() {
2005            jQuery('body,html').animate({
2006				// scrollTop: $(window).height()+$(".BannerPane").offset().top
2007				scrollTop: $(".BannerPane").height()
2008            }, 500);
2009        })
2010        //	runs();
2011
2012})
2013
2014
2015
2016
2017$(document).ready(function() {
2018 $(".home21-carousel-1").each(function() {
2019		var sync = $(this),
2020		sync1 = sync.find(".carousel_main"),
2021		sync2 = sync.find(".carousel_nav");
2022		sync1.owlCarousel({
2023			singleItem: true,
2024			slideSpeed: 1000,
2025			navigation: false,
2026			pagination: false,
2027			afterAction: syncPosition,
2028			responsiveRefreshRate: 200,
2029		});
2030		function syncPosition(el) { 
2031			var current = this.currentItem;
2032			sync2.find(".item").removeClass("synced").eq(current).addClass("synced");
2033		}
2034		sync2.on("click", ".item",function(e) {
2035			e.preventDefault();
2036			var number = $(this).index();
2037			sync1.trigger("owl.goTo", number);
2038		});
2039	})
2040})
2041
2042jQuery(document).ready(function(){
2043	jQuery('.home21-time-line').each(function() {
2044		$(this).scrollbar({
2045			"showArrows": true,
2046		}); 
2047    });
2048});
2049
2050$(document).ready(function(){
2051	$(".pic_tab").bgtabs({
2052			switchtime: 5000,
2053			animationtime: 1000,
2054			startpic:0,
2055			autoPaly:true,
2056			showArrow:true
2057	});
2058});
2059
2060$(".home23-carousel1").each(function() {
2061		var e=$(this);
2062		e.owlCarousel({
2063		   singleItem : true,
2064		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :true,
2065		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
2066			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :true,
2067		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true,
2068		   afterAction: function () {var current = this.currentItem;e.find(".owl-item").eq(current).addClass("synced").siblings().removeClass("synced")}
2069		});
2070	})
2071
2072
2073
2074
2075jQuery(function () {
2076	var sUrl = window.location.search;
2077	var sReg = "ResponsiveTab=([^&]*)";
2078	var re = new RegExp(sReg, "gi");
2079	re.exec(sUrl);
2080	var id = RegExp.$1;
2081	if (id != scroll && id != "scroll" && id) {
2082		var e = $("#" + id);
2083		if (e.length < 1)
2084			return false;
2085		e.addClass("resp-tab-active").siblings().removeClass("resp-tab-active");
2086		e.parent().siblings(".resp-tabs-container").children(".resp_container").eq(e.index()).addClass("resp-tab-content-active").css("display", "block").siblings(".resp_container").removeClass("resp-tab-content-active").css("display", "none");
2087		e.parent().siblings(".resp-tabs-container").children(".resp-accordion").eq(e.index()).addClass("resp-tab-active").siblings().removeClass("resp-tab-active");
2088		if (window.location.hash) {
2089			window.location.hash = window.location.hash;
2090			window.location = window.location;
2091		}
2092	}
2093});
2094
2095
2096
2097
2098
2099
2100$(window).load(function() {
2101	"use strict";
2102	var e_6 = $(".home23-chart_list .percentage");
2103	e_6.easyPieChart({
2104		animate: 2000,
2105		barColor: e_6.css('color'),
2106		trackColor: "#ffffff",
2107		size:142,
2108		lineWidth: 5,
2109		lineCap: 'round',
2110		scaleColor: false,
2111		onStep: function(from, to, percent) {
2112			$(this.el).find('.percentage_inner span').text(Math.round(percent));
2113		}
2114	});
2115
2116});
2117jQuery(document).ready(function($) {
2118    $(".full_screen_pic").each(function() {
2119        var full = $(this).find("li");
2120        full.height($(window).height());
2121        $(window).resize(function() {
2122            full.height($(window).height())
2123        })
2124    });
2125    $("#home25-nextPage").click(function() {
2126            jQuery('body,html').animate({
2127                scrollTop:$(window).height()+$(".full_screen_pic").offset().top
2128            }, 500);
2129        })
2130        //	runs();
2131})
2132
2133jQuery(document).ready(function($) {
2134	$(".home26-portfolio .imgbg-cover,.home37-full-right,.home37-team-left,.home36-featuresleft").each(function(index, element) {
2135		$(this).css("background-image","url(\""+$(this).find("img").attr("src")+"\")");
2136    });
2137	$(".right-box.imgbg-cover").each(function(index, element) {
2138		$(this).css("background-image","url(\""+$(this).find("img").attr("src")+"\")");
2139    });
2140	
2141})
2142
2143
2144jQuery(document).ready(function ($) {
2145	$(window).load(function(){
2146		if(Math.round($("#dnn_content").offset().top)<Math.round($(".header_bg").height())){
2147			$("#dnn_content").css("paddingTop",$(".header_bg").height())
2148		}
2149	})
2150}) 
2151
2152
2153$(document).ready(function() {
2154	$(".home30-carousel01").each(function() {
2155		$(this).owlCarousel({
2156		items :	$(this).attr("data-items")	   	? $(this).data("items")		  :5,
2157		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :true,
2158		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
2159			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :true,
2160		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true
2161		}).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px");
2162	})
2163})
2164
2165jQuery(document).ready(function ($) {
2166	$(".home32-imginfo li").on("click",function(){
2167		$(this).addClass("active").siblings("li").removeClass("active")
2168	})
2169})
2170
2171
2172
2173$(".home36-chartlist01 .percentage").each(function(index, element) {
2174	var e=$(this)
2175	e.easyPieChart({
2176		animate: 2000,
2177		barColor:e.css('color'),
2178		trackColor: "#ffffff",
2179		size: 170,
2180		lineWidth:40,
2181		lineCap: 'square',
2182		scaleColor: false,
2183		onStep: function(from, to, percent) {
2184			$(this.el).find('.percentage_inner span').text(Math.round(percent));
2185		}
2186	})
2187});
2188
2189jQuery(document).ready(function ($) {
2190	$(".dg-tabs-left12").each(function() {
2191		var op=true,e=$(this);
2192		var o = function(){	
2193			if($(window).width()<768 && op){
2194				e.find(".resp-tab-active").removeClass("resp-tab-active");
2195				e.find(".resp-tab-content-active").hide().removeClass("resp-tab-content-active");
2196				op=false;
2197			}
2198			if($(window).width()>=768 && !op){
2199				e.find(".resp-tabs-list li").eq(0).addClass("resp-tab-active");
2200				e.find(".resp-tabs-container .resp_container").eq(0).show().addClass("resp-tab-content-active");
2201				op=true; 
2202			}
2203		}
2204		o();
2205		$(window).on("resize",function(){
2206			o();
2207		})
2208		
2209    });
2210
2211})
2212/*pagetitle*/
2213jQuery(document).ready(function ($) {							
2214	$("#PageTitle_style_6").each(function () {
2215		var full = $(this).find(".shade .img");
2216		var header_h=$(".header_bg").height();
2217		var full_two=$("#PageTitle_style_6");
2218		full.height($(window).height());
2219		full_two.height($(window).height());
2220		$(window).resize(function () {
2221			var header_h=$(".header_bg").height();					   
2222			full.height($(window).height());
2223			full_two.height($(window).height());
2224		})
2225	})	
2226		$("#pagetitle_arrow").click(function () {
2227		jQuery('body,html').animate({								
2228			scrollTop : $(window).height()
2229		}, 500);
2230	})
2231})
2232//+$(".full_screen_pic").offset().top
2233
2234
2235
2236$('[data-toggle=popover]').each(function() {
2237	var e=$(this); 
2238		if(e.data("bg")){
2239			e.popover({
2240				template: '<div class="popover custom-bg '+e.data("bg")+'"><div class="arrow '+e.data("bg")+'"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
2241			});
2242		}
2243		if(e.data("header")){
2244			e.popover({
2245				template: '<div class="popover custom-header"><div class="arrow"></div><h3 class="popover-title '+e.data("header")+'"></h3><div class="popover-content"></div></div>'
2246			});
2247		}
2248});
2249$('[data-toggle=tooltip]').each(function() {
2250	var e=$(this); 
2251		if(e.data("bg")){
2252			e.tooltip({
2253				template:'<div class="tooltip custom-bg" role="tooltip"><div class="tooltip-arrow '+e.data("bg")+'"></div><div class="tooltip-inner '+e.data("bg")+'"></div></div>'
2254			});
2255		}
2256});
2257
2258$(document).ready(function(){  	
2259	var home31_height=function(){
2260		 if($(window).width()<767){
2261			  $('.flip-box04 .front').css("height","100%")	;
2262			 }else{				 
2263		var heightData = new Array(); 
2264			$('.flip-box04 .front').each(function(i){
2265                heightData.push($(this).height());      
2266        })  
2267        heightData.sort(function(value1, value2) {  
2268            return value1 - value2;  
2269        });  
2270       var last_height=heightData[heightData.length-1]+"px";	
2271	   $('.flip-box04 .front').height(last_height)	  
2272	}
2273}
2274  home31_height();   
2275	$(window).resize(function() {
2276		  home31_height();  	
2277	}); 
2278}); 
2279
2280
2281
2282
2283
2284$(".text-slide").each(function() {
2285	var e=$(this);
2286	var textslide=function(){
2287		e.find("span").removeClass("previous");
2288		curr=e.find(".active");
2289		curr.removeClass("active").addClass("previous");
2290		if(curr.next().length!=0){
2291			curr.next().addClass("active")
2292		}else{
2293			e.find("span").eq(0).addClass("active");
2294		}
2295	e.animate({"width":e.find(".active").width()+1},400)
2296		
2297	}
2298	speed= e.data("speed")?e.data("speed"):3000;
2299	setInterval(textslide,speed);	
2300});
2301
2302$(document).ready(function() {
2303$(".home38-recent_work").each(function() {
2304		$(this).owlCarousel({
2305		items :	$(this).attr("data-items")	   	? $(this).data("items")		  :5,
2306		   navigation : $(this).attr("data-navigation") ? $(this).data("navigation")  :false,
2307		   pagination : $(this).attr("data-pagination") ? $(this).data("pagination")  :true,
2308			 autoPlay : $(this).attr("data-autoplay")   ? $(this).data("autoplay")    :false,
2309		   autoHeight : $(this).attr("data-autoheight") ? $(this).data("autoheight")  :true
2310		}).css("marginBottom",parseInt($(this).find(".owl-pagination").height())+parseInt($(this).find(".owl-pagination").css("marginTop"))+parseInt($(this).css("marginBottom"))+"px");
2311	})
2312});
2313$(document).ready(function() {
2314	$(window).scroll(function(){
2315		if($(".mobile_header").offset().top < $(window).scrollTop()){
2316			$(".mobile_header .mobile_nav").css({"position":"fixed","top":"-1px","width":"100%"})
2317		}else{
2318			$(".mobile_header .mobile_nav").css({"position":"","top":"","width":""})
2319		}
2320	})
2321
2322});
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.