text: // JavaScript Document
  // Author Name: Saptarang
  // Author URI: http://www.saptarang.org
  // Themeforest: http://themeforest.net/user/saptarang?ref=saptarang
  // Creation Date: 22nd December, 2013
  // Version 1.0.2
  // Description: A default stylesheet for OnEvent - Special Event Landing Page Template Designed & Developed By Saptarang.
  
  $(document).ready(function() {
  	
  // Global Color
  	$('head style').append('h1,h2,h3,h4,h5,h6, .navigation ul li a, blockquote,.btnMain,.btnColor2,.btnColor3,.btnLte {font-family:"'+Heading_Font+'"; } html, body, div, p, table, tr, td, th, tbody, tfoot, ul, li, ol, dl, dd, dt, fieldset, cite, input, select, textarea, button, a, section, article, aside, header, footer, nav {font-family:"'+Site_Font+'"; }  body {background-color:#'+page_background_color+';} .navbar-header, .btn, .schedule-box h6.section-head span, header.colored, .panel-heading a, .navigation nav ul li, .styled div strong, .priceBox:hover .heading, .priceBox.featured .heading, a.top {background-color:#'+main_color+'; }  a, #home li a:hover, h3 span, .speaker .col-md-2 i, #directionsPanel .adp-summary, #schedule .nav-tabs li.active h5, #main h2, .price strong  {color:#'+main_color+'} #schedule .nav-tabs li.active i, #schedule .nav-tabs li a:hover h5, #schedule .nav-tabs li:hover i, .schedule-box li h6 strong {color:#'+main_color+';}    div.section, #home {border-top:5px solid #'+main_color+';  } .styled div {border-color:#'+main_color+';  } #texture {background:url(img/'+body_texture+') repeat 0 0;} ::selection {background-color:#'+main_color+'; color:#fff;} ::-moz-selection {background-color:#'+main_color+'; color:#fff;} ');
  
  	
  // Gallery Captions
  	$(' #eg-thumbs > li ').each( function() { $(this).hoverdir(); } );
  	
  // Image Lightbox
  	$("a[rel^='prettyPhoto']").prettyPhoto({overlay_gallery: true});
  	$('.gallery a').append('<span class="link"><i class="fa fa-search-plus"></i></span>');
  	 
  // equal heights columns
  	$('.container').each(function(){  
  	  var highestBox = 0;
  	  $('.column', this).each(function(){
  		  if($(this).height() > highestBox) 
  			 highestBox = $(this).height(); 
  	  });  
  	  $('.column',this).height(highestBox);
  	});   
  		
  // Top Arrow
  	$(window).scroll(function() {
  			if ($(window).scrollTop() > 1000) { 
  				$('a.top').fadeIn('slow'); 
  			} else { 
  				$('a.top').fadeOut('slow');
  			}
  	});
  		 
  
  	  
  // Collapse menu for small devices
  	var winWidth = $('body').width();
  	if (winWidth <= 767) {
  		
  		// Add attribs to menu
  		$('#Navigation li a').attr('data-toggle', 'collapse');
  		$('#Navigation li a').attr('data-target', '#Navigation');
  		
  	} else {
  	} 
  		
  // Tooltip
  	$('a.tips').tooltip();
  	
  // responsive Video Target your .container, .wrapper, .post, etc.
      $(".container").fitVids();
  	
  // Tabs Active
  	$('#schedule .nav-tabs li').append('<span class="arrow"></span>');
  	$('#schedule .nav-tabs li span.arrow').hide();
  	
  // Counter
  	var endDate = "June 7, 2017 15:00:00";
          $('.countdown.styled').countdown({
            date: endDate,
            render: function(data) {
  			  var years = this.leadingZeros(data.years, 2);
  			  if (years != '00') {
              $(this.el).html("<div><span>" + this.leadingZeros(data.years, 2) + " </span><strong>years</strong></div><div><span>" + this.leadingZeros(data.days, 3) + " </span><strong>days</strong></div><div><span>" + this.leadingZeros(data.hours, 2) + "  </span><strong>hrs</strong></div><div><span>" + this.leadingZeros(data.min, 2) + "</span><strong>min</strong></div><div><span>" + this.leadingZeros(data.sec, 2) + " </span><strong>sec</strong></div>");
  			  } else {
  			  $(this.el).html("<div><span>" + this.leadingZeros(data.days, 3) + " </span><strong>days</strong></div><div><span>" + this.leadingZeros(data.hours, 2) + "  </span><strong>hrs</strong></div><div><span>" + this.leadingZeros(data.min, 2) + "</span><strong>min</strong></div><div><span>" + this.leadingZeros(data.sec, 2) + " </span><strong>sec</strong></div>");
  			  }
            }
          });
  	
  // Accordion Symbols
  	$('.panel-heading a').click(function() {
  			var thisParent = $(this).parent().next();
  		if(thisParent.hasClass('in')) {
  				$(this).parent().removeClass('active');
  		} else {
  				$('.panel-heading').removeClass('active');
  				$(this).parent().addClass('active');
  		}
  	});
  	
  //page Scroll
  	$('nav a[href^=#], a.top[href^=#]').click(function(event) {
  	  event.preventDefault();
  	  $('html,body').animate({
  	  scrollTop: $(this.hash).offset().top - 80},
  	  1000);	
  	});
  	
  // Year Update
  	var curYear = new Date().getFullYear();
  	$('.year').html(curYear);
  	
    
  //Speaker OverlayColor
  	  var getcolor = $('.speaker i').css("color");
  	  var matchColors = /rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)/;
  	  var match = matchColors.exec(getcolor);
  	  var transColor = "rgba("+match[1] + ', ' + match[2] + ', ' + match[3]+", 0.9)";
  	  $('figcaption').css("background-color", transColor);
  });
  