	(function($) {
		"use strict";
	
	
	$(document).ready(function() {

	
	
	/*mega menu custon function*/
	$('.dropdown-submenu').hover(function() {
	if ($(window).width() >= 479) {
	var p = $(this);
	var offset = p.offset();
	
	var multiLeft = offset.left;
	var multilevelWidth = $(".multilevel").width();
	var sublevelWidth = $(this).find(".dropdown-menu").width();
	
	var allWidth = multiLeft + multilevelWidth + sublevelWidth;
	
	if ($(window).width() <= allWidth) {
	$(this).find(".dropdown-menu").css("marginLeft", "-" + (multilevelWidth + sublevelWidth) + "px");
	} else {
	$(".dropdown-submenu>.dropdown-menu").css("marginLeft", " ");
	}
	} else {
	$(".dropdown-submenu>.dropdown-menu").css("marginLeft", " ");
	}
	});
	

	/*scroll to top*/
	$(window).scroll(function() {
	if ($(this).scrollTop() > 100) {
	$('.scrollup').fadeIn();
	} else {
	$('.scrollup').fadeOut();
	}
	});
	
	$('.scrollup').on("click",function() {
	$("html, body").animate({
	scrollTop: 0
	}, 500);
	return false;
	
	});
	
	
	/*menu sticky background*/
	$(window).load(function(){
      $("#header, #header2, #header3, #header4, #header5, #header6").sticky({ topSpacing: 0 });
    }); 
	
	
	
	$('.demo-1').percentcircle();

	$('.demo-2').percentcircle({
	animate : false,
	diameter : 100,
	guage: 3,
	coverBg: '#fff',
	bgColor: '#efefef',
	fillColor: '#242424',
	percentSize: '15px',
	percentWeight: 'normal'
	});

	$('.demo-3').percentcircle({
	animate : false,
	diameter : 100,
	guage: 3,
	coverBg: '#fff',
	bgColor: '#efefef',
	fillColor: '#DA4453',
	percentSize: '18px',
	percentWeight: 'normal'
	});
	$('.demo-4').percentcircle({
	animate : true,
	diameter : 100,
	guage: 3,
	coverBg: '#fd602c',
	bgColor: '#666666',
	fillColor: '#fd602c',
	percentSize: '18px',
	percentWeight: 'normal'
	});		
	$('.demo-5').percentcircle({
	animate : true,
	diameter : 100,
	guage: 3,
	coverBg: '#fff',
	bgColor: '#fff',
	fillColor: '#fd602c',
	percentSize: '18px',
	percentWeight: '20px'
	});	
	$('.demo-6').percentcircle({
	animate : true,
	diameter : 100,
	guage: 10,
	coverBg: '#fff',
	bgColor: '#efefef',
	fillColor: '#D870A9',
	percentSize: '18px',
	percentWeight: 'normal'
	});	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		});
	
	})(jQuery);