<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var $ = jQuery.noConflict();
$.extend(
	{
		redirectGet: function (location, args) {
			var form = $('&lt;form&gt;&lt;/form&gt;');
			form.attr("method", "post");
			form.attr("action", location);
			$.each(args, function (key, value) {
				var field = $('&lt;input&gt;&lt;/input&gt;');
				field.attr("type", "hidden");
				field.attr("name", key);
				field.attr("value", value);
				form.append(field);
			});
			$(form).appendTo('body').submit();
		},
		redirectGet: function (location, args) {
			var form = $('&lt;form&gt;&lt;/form&gt;');
			form.attr("method", "get");
			form.attr("action", location);
			$.each(args, function (key, value) {
				var field = $('&lt;input&gt;&lt;/input&gt;');
				field.attr("type", "hidden");
				field.attr("name", key);
				field.attr("value", value);
				form.append(field);
			});
			$(form).appendTo('body').submit();
		}

	});

function getUUID()
{
	function s4()
	{
		return Math.floor((1 + Math.random()) * 0x10000)
			.toString(16)
			.substring(1);
	}

	return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
		s4() + '-' + s4() + s4() + s4();
}

function image_preload(selector, parameters)
{
	var params = {
		delay     : 250,
		transition: 400,
		easing    : 'linear'
	};
	$.extend(params, parameters);

	$(selector).each(function ()
	{
		var image = $(this);
		image.css({visibility: 'hidden', opacity: 0, display: 'block'});
		image.wrap('&lt;span class="preloader" /&gt;');
		image.one("load", function (evt)
		{
			$(this).delay(params.delay).css({visibility: 'visible'}).animate({opacity: 1}, params.transition, params.easing, function ()
			{
				$(this).unwrap('&lt;span class="preloader" /&gt;');
			});
		}).each(function ()
		{
			if (this.complete)
			{
				$(this).trigger("load");
			}
		});
	});
}

function tab_widget(tabid)
{

	var $sidebarWidgets = $('.sidebar-widgets-wrap');
	var $footerWidgets  = $('.footer-widgets-wrap');

	$(tabid + " .tab_content").hide();
	$(tabid + " ul.tabs li:first").addClass("active").show();
	$(tabid + " .tab_content:first").show();

	if (window.location.hash != '')
	{

		var getTabHash = window.location.hash;

		if (!getTabHash.match(/#filter=/gi))
		{

			if ($(getTabHash).hasClass('tab_content'))
			{

				$(tabid + " ul.tabs li").removeClass("active");
				$(tabid + ' ul.tabs li a[data-href="' + getTabHash + '"]').parent('li').addClass("active");
				$(tabid + " .tab_content").hide();
				$(getTabHash + '.tab_content').show();

			}

		}

	}

	$(tabid + " ul.tabs li").click(function ()
	{

		$(tabid + " ul.tabs li").removeClass("active");
		$(this).addClass("active");
		$(tabid + " .tab_content").hide();
		var activeTab  = $(this).find("a").attr("data-href");
		var $selectTab = $(this);
		$(activeTab).fadeIn(600, function ()
		{
			if ($selectTab.parent().parent().hasClass("side-tabs"))
			{
				if ($(window).width() &lt; 768)
				{
					if ($().scrollTo)
					{
						jQuery.scrollTo(activeTab, 400, {offset: -20});
					}
				}
			}
			$('.flexslider .slide').resize();
		});
		return false;

	});

}

jQuery(document).ready(function ($)
{


	// Dropdown Menu

	if ($().superfish)
	{

		$("#primary-menu ul, .sticky-menu-wrap ul, #top-menu ul").superfish({
			delay     : 250,
			speed     : 300,
			animation : {opacity: 'show', height: 'show'},
			autoArrows: false
		});

	}

	// ToolTips

	if ($().tipsy)
	{
		nTip = function ()
		{
			$('.ntip').tipsy({gravity: 's', fade: true});
		};
		nTip();
	}
	if ($().tipsy)
	{
		sTip = function ()
		{
			$('.stip').tipsy({gravity: 'n', fade: true});
		};
		sTip();
	}
	if ($().tipsy)
	{
		eTip = function ()
		{
			$('.etip').tipsy({gravity: 'w', fade: true});
		};
		eTip();
	}
	if ($().tipsy)
	{
		wTip = function ()
		{
			$('.wtip').tipsy({gravity: 'e', fade: true});
		};
		wTip();
	}

	$("#primary-menu ul li:has(ul)").addClass('sub-menu');

	$(".sticky-menu-wrap ul li:has(ul)").addClass('sub-menu');

	var headerHeight = $('#header').outerHeight() + 170;

	stickyMenuFunction = function ()
	{

		var scrollTimer = null;
		$(window).scroll(function ()
		{
			if (scrollTimer)
			{
				clearTimeout(scrollTimer);
			}
			scrollTimer = setTimeout(handleScroll, 200);
		});

		function handleScroll()
		{
			scrollTimer = null;

			var stickyWindowWidth = $(window).width();

			if (stickyWindowWidth &gt; 979)
			{

				if ($(window).scrollTop() &gt; headerHeight)
				{
					$('#sticky-menu').show();
					$('#sticky-menu').filter(':not(:animated)').animate({top: '0px'}, 250);
				}
				else
				{
					$('#sticky-menu').filter(':not(:animated)').animate({top: '-60px'}, 250, function ()
					{
						$(this).fadeOut();
					});
				}

			}
			else
			{
				//$('#sticky-menu').hide();
			}
		}

	};
	stickyMenuFunction();

	$('.sticky-search-trigger a').click(function ()
	{
		$('.sticky-search-area').fadeIn('fast', function ()
		{
			$(this).find('input').focus();
		});
		return false;
	});

	$('.sticky-search-area-close a').click(function ()
	{
		$('.sticky-search-area').fadeOut('fast');
		return false;
	});

	// Scroll to Top

	$(window).scroll(function ()
	{
		if ($(this).scrollTop() &gt;= 450)
		{
			$('#gotoTop').fadeIn();
		}
		else
		{
			$('#gotoTop').fadeOut();
		}
	});

	$('#gotoTop').click(function ()
	{
		$('body,html').animate({scrollTop: 0}, 400);
		return false;

	});

	$(".rs-menu").click(function ()
	{
		$("#primary-menu &gt; ul, #primary-menu &gt; div &gt; ul").slideToggle(500);
		return false;
	});

	if ($(window).width() &lt; 980)
	{
		$("#primary-menu &gt; ul, #primary-menu &gt; div &gt; ul").hide();
	}

	$(window).resize(function ()
	{
		if ($(window).width() &lt; 980)
		{
			$("#primary-menu &gt; ul, #primary-menu &gt; div &gt; ul").hide();
		}
		if ($(window).width() &gt; 980)
		{
			$('#primary-menu &gt; ul, #primary-menu &gt; div &gt; ul').show();
		}
	});

	// Top Socials

	topSocialExpander = function ()
	{

		var windowWidth = $(window).width();

		if (windowWidth &gt; 767)
		{

			$("#top-social li").show();

			$("#top-social li a").css({width: 40});

			$("#top-social li a").each(function ()
			{
				$(this).removeClass('stip');
				$(this).removeAttr('title');
				$(this).removeAttr('original-title');
			});

			$("#top-social li a").hover(function ()
			{
				var tsTextWidth = $(this).children('.ts-text').outerWidth() + 52;
				$(this).stop().animate({width: tsTextWidth}, 250, 'jswing');
			}, function ()
			{
				$(this).stop().animate({width: 40}, 250, 'jswing');
			});

		}
		else
		{

			$("#top-social li").show();

			$("#top-social li a").css({width: 40});

			$("#top-social li a").each(function ()
			{
				$(this).addClass('stip');
				var topIconTitle = $(this).children('.ts-text').text();
				$(this).attr('title', topIconTitle);
			});

			sTip();

			$("#top-social li a").hover(function ()
			{
				$(this).stop().animate({width: 40}, 1, 'jswing');
			}, function ()
			{
				$(this).stop().animate({width: 40}, 1, 'jswing');
			});

			if (windowWidth &lt; 479)
			{

				$("#top-social li").hide();
				$("#top-social li").slice(0, 8).show();

			}

		}

	};
	topSocialExpander();

	$(window).resize(function ()
	{
		topSocialExpander();
		stickyMenuFunction();
	});

	$('.product-image [data-order="1"]').css({
		'position': 'absolute',
		'z-index' : '1'
	});

	$('.product-image').hover(function ()
	{

		$(this).find('[data-order="1"]').filter(':not(:animated)').animate({opacity: 'hide'}, 400);

	}, function ()
	{

		$(this).find('[data-order="1"]').animate({opacity: 'show'}, 400);

	});

	$("#product-quantity-plus").click(function ()
	{

		var productQuantity = $('#product-quantity').val();

		var intRegex = /^\d+$/;

		if (intRegex.test(productQuantity))
		{

			var productQuantityPlus = Number(productQuantity) + 1;

			$('#product-quantity').val(productQuantityPlus);

		}
		else
		{
			$('#product-quantity').val(1);
		}

		return false;

	});

	$("#product-quantity-minus").click(function ()
	{

		var productQuantity = $('#product-quantity').val();

		var intRegex = /^\d+$/;

		if (intRegex.test(productQuantity))
		{

			if (Number(productQuantity) &gt; 1)
			{

				var productQuantityMinus = Number(productQuantity) - 1;

				$('#product-quantity').val(productQuantityMinus);

			}

		}
		else
		{
			$('#product-quantity').val(1);
		}

		return false;

	});

	// Siblings Fader

	siblingsFader = function ()
	{
		$(".siblings_fade,.flickr_badge_image").hover(function ()
		{
			$(this).siblings().stop().fadeTo(400, 0.5);
		}, function ()
		{
			$(this).siblings().stop().fadeTo(400, 1);
		});
	};
	siblingsFader();

	// Images Preload

	image_preload('.portfolio-image:not(.port-gallery) img,#kwicks-slider img,.rs-slider img');

	$('.port-gallery').each(function ()
	{
		$(this).addClass('preloader');
	});

	$('.fslider').each(function ()
	{
		$(this).addClass('preloader2');
	});

	// Image Fade

	imgFade = function ()
	{
		$('.image_fade,#top-menu li.top-menu-em a').hover(function ()
		{
			$(this).filter(':not(:animated)').animate({opacity: 0.6}, 400);
		}, function ()
		{
			$(this).animate({opacity: 1}, 400);
		});
	};
	imgFade();

	$(window).scroll(function ()
	{

		$('.progress:in-viewport').each(function ()
		{
			var skillsBar  = $(this),
			    skillValue = skillsBar.find('.progress-bar').attr('data-width');
			if (!skillsBar.hasClass('animated'))
			{
				skillsBar.parent().find('span').hide();
				skillsBar.addClass('animated');
				skillsBar.find('.progress-bar').animate({
					width: skillValue + "%"
				}, 500, function ()
				{
					skillsBar.parent().find('span').fadeIn(400);
				});
			}
		});

	});

	// Toggles

	$(".togglec").hide();

	$(".togglet").click(function ()
	{

		$(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
		return true;

	});

	// Pricing Tables

	$('.pricing-defines').each(function ()
	{

		var pricingDefinesTop = $(this).next().find('.pricing-features').position();

		var pricingDefinesParentHeight = $(this).next().outerHeight();

		$(this).find('.pricing-features').css('margin-top', (pricingDefinesTop.top - 1) + 'px');

		$(this).find('.pricing-inner').css('height', (pricingDefinesParentHeight - 1) + 'px');

	});

	// Accordions

	$('.acc_content').hide(); //Hide/close all containers
	$('.acctitle:first').addClass('acctitlec').next().show(); //Add "active" class to first trigger, then show/open the immediate next container

	//On Click
	$('.acctitle').click(function ()
	{
		if ($(this).next().is(':hidden'))
		{ //If immediate next container is closed...
			$('.acctitle').removeClass('acctitlec').next().slideUp("normal"); //Remove all "active" state and slide up the immediate next container
			$(this).toggleClass('acctitlec').next().slideDown("normal"); //Add "active" state to clicked trigger and slide down the immediate next container
		}
		return false; //Prevent the browser jump to the link anchor
	});

	// Portfolio Hoverlay

	imgHoverlay = function ()
	{
		$('.portfolio-item,#portfolio-related-items li').hover(function ()
		{
			$(this).find('.portfolio-overlay').filter(':not(:animated)').animate({opacity: 'show'}, 400);
		}, function ()
		{
			$(this).find('.portfolio-overlay').animate({opacity: 'hide'}, 400);
		});
	};
	imgHoverlay();

	// FitVids

	if ($().fitVids)
	{
		$("#content,#footer,#slider:not(.layerslider-wrap),.landing-offer-media").fitVids({customSelector: "iframe[src^='http://www.dailymotion.com/embed']"});
	}

	// prettyPhoto

	if ($().prettyPhoto)
	{

		initprettyPhoto = function ()
		{

			$("a[rel^='prettyPhoto']").prettyPhoto({
				theme       : 'light_square',
				social_tools: false
			});

		};
		initprettyPhoto();

	}

	// Mobile Menu

	if ($().mobileMenu)
	{
		$('#primary-menu ul#main-menu').mobileMenu({subMenuDash: '&amp;nbsp;&amp;ndash;&amp;nbsp;'});
	}

	// UniForm

	// if( $().uniform ) { $("#primary-menu select").uniform({selectClass: 'rs-menu'}); }

	// Anchor Link Scroll

	$("a[data-scrollto]").click(function ()
	{

		var divScrollToAnchor = $(this).attr('data-scrollto');

		if ($().scrollTo)
		{
			jQuery.scrollTo($(divScrollToAnchor), 400, {offset: -20});
		}

		return false;

	});

	$('[data-animate]').each(function ()
	{

		var $toAnimateElement = $(this);

		var toAnimateDelay = $(this).attr('data-delay');

		var toAnimateDelayTime = 0;

		if (toAnimateDelay)
		{
			toAnimateDelayTime = Number(toAnimateDelay) + 500;
		}
		else
		{
			toAnimateDelayTime = 500;
		}

		if (!$toAnimateElement.hasClass('animated'))
		{

			$toAnimateElement.addClass('not-animated');

			var elementAnimation = $toAnimateElement.attr('data-animate');

			$toAnimateElement.appear(function ()
			{

				setTimeout(function ()
				{
					$toAnimateElement.removeClass('not-animated').addClass(elementAnimation + ' animated');
				}, toAnimateDelayTime);

			}, {accX: 0, accY: -80}, 'easeInCubic');

		}

	});

	// Magnific Lightbox

	loadMagnific = function ()
	{

		$('[data-lightbox="image"]').magnificPopup({
			type               : 'image',
			closeOnContentClick: true,
			closeBtnInside     : false,
			fixedContentPos    : true,
			mainClass          : 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
			image              : {
				verticalFit: true
			},
			zoom               : {
				enabled: true, // By default it's false, so don't forget to enable it

				duration: 300, // duration of the effect, in milliseconds
				easing  : 'ease-in-out', // CSS transition easing function
				opener  : function (openerElement)
				{
					return openerElement.is('img') ? openerElement : openerElement.parent().parent().parent().find('img');
				}
			}
		});

		$('[data-lightbox="gallery"]').each(function ()
		{

			if ($(this).find('a[data-lightbox="gallery-item"]').parent('.clone').hasClass('clone'))
			{
				$(this).find('a[data-lightbox="gallery-item"]').parent('.clone').find('a[data-lightbox="gallery-item"]').attr('data-lightbox', '');
			}

			$(this).magnificPopup({
				delegate           : 'a[data-lightbox="gallery-item"]',
				type               : 'image',
				closeOnContentClick: true,
				closeBtnInside     : false,
				fixedContentPos    : true,
				mainClass          : 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
				image              : {
					verticalFit: true
				},
				gallery            : {
					enabled           : true,
					navigateByImgClick: true,
					preload           : [0, 1] // Will preload 0 - before current, and 1 after the current image
				},
				zoom               : {
					enabled : true, // By default it's false, so don't forget to enable it
					duration: 300, // duration of the effect, in milliseconds
					easing  : 'ease-in-out', // CSS transition easing function
					opener  : function (openerElement)
					{
						return openerElement.is('img') ? openerElement : openerElement.parent().parent().parent().find('img');
					}
				}
			});

		});

		$('[data-lightbox="iframe"]').magnificPopup({
			disableOn      : 700,
			type           : 'iframe',
			mainClass      : 'mfp-fade',
			removalDelay   : 160,
			preloader      : false,
			fixedContentPos: false
		});

	};
	loadMagnific();

	// Testimonials

	if ($().carouFredSel)
	{

		$('.testimonials').each(function ()
		{

			var testimonialLeftKey  = $(this).parent('.testimonial-scroller').attr('data-prev');
			var testimonialRightKey = $(this).parent('.testimonial-scroller').attr('data-next');
			var testimonialSpeed    = $(this).parent('.testimonial-scroller').attr('data-speed');
			var testimonialPause    = $(this).parent('.testimonial-scroller').attr('data-pause');
			var testimonialAuto     = $(this).parent('.testimonial-scroller').attr('data-auto');

			if (!testimonialSpeed)
			{
				testimonialSpeed = 300;
			}
			if (!testimonialPause)
			{
				testimonialPause = 8000;
			}
			if (testimonialAuto == 'true')
			{
				testimonialAuto = Number(testimonialPause);
			}
			else
			{
				testimonialAuto = false;
			}

			$(this).carouFredSel({
				circular  : true,
				responsive: true,
				auto      : testimonialAuto,
				items     : 1,
				scroll    : {
					items   : "page",
					fx      : "fade",
					duration: Number(testimonialSpeed),
					wipe    : true
				},
				prev      : {
					button: testimonialLeftKey,
					key   : "left"
				},
				next      : {
					button: testimonialRightKey,
					key   : "right"
				}
			});

		});

	}

	// Flickr Feed

	if ($().jflickrfeed)
	{

		$('.flickrfeed').each(function ()
		{

			var flickrFeedID      = $(this).attr('data-id');
			var flickrFeedCount   = $(this).attr('data-count');
			var flickrFeedType    = $(this).attr('data-type');
			var flickrFeedTypeGet = 'photos_public.gne';

			if (flickrFeedType == 'group')
			{
				flickrFeedTypeGet = 'groups_pool.gne';
			}

			if (!flickrFeedCount)
			{
				flickrFeedCount = 9;
			}

			$(this).jflickrfeed({
				feedapi     : flickrFeedTypeGet,
				limit       : Number(flickrFeedCount),
				qstrings    : {
					id: flickrFeedID
				},
				itemTemplate: '&lt;div class="flickr_badge_image"&gt;' +
				'&lt;a rel="prettyPhoto[galflickr]" href="{{image}}" title="{{title}}"&gt;' +
				'&lt;img src="{{image_s}}" alt="{{title}}" /&gt;' +
				'&lt;/a&gt;' +
				'&lt;/div&gt;'
			}, function (data)
			{
				if ($().prettyPhoto)
				{
					initprettyPhoto();
				}
			});

		});

	}

	// Instagram Photos

	if ($().spectragram)
	{

		$.fn.spectragram.accessData = {
			accessToken: '36286274.b9e559e.4824cbc1d0c94c23827dc4a2267a9f6b', // your Instagram Access Token
			clientID   : 'b9e559ec7c284375bf41e9a9fb72ae01' // Your Client ID
		};

		$('.instagram').each(function ()
		{

			var instaGramUsername = $(this).attr('data-user');
			var instaGramTag      = $(this).attr('data-tag');
			var instaGramCount    = $(this).attr('data-count');
			var instaGramType     = $(this).attr('data-type');

			if (!instaGramCount)
			{
				instaGramCount = 9;
			}

			if (instaGramType == 'tag')
			{

				$(this).spectragram('getRecentTagged', {
					query       : instaGramTag,
					max         : Number(instaGramCount),
					size        : 'small',
					wrapEachWith: '&lt;div class="flickr_badge_image"&gt;&lt;/div&gt;'
				});

			}
			else if (instaGramType == 'user')
			{

				$(this).spectragram('getUserFeed', {
					query       : instaGramUsername,
					max         : Number(instaGramCount),
					size        : 'small',
					wrapEachWith: '&lt;div class="flickr_badge_image"&gt;&lt;/div&gt;'
				});

			}
			else
			{

				$(this).spectragram('getPopular', {
					max         : Number(instaGramCount),
					size        : 'small',
					wrapEachWith: '&lt;div class="flickr_badge_image"&gt;&lt;/div&gt;'
				});

			}

		});

	}

	// Dribbble Shots
	if ($().jribbble)
	{

		$('.dribbble').each(function ()
		{

			var dribbbleWrap     = $(this);
			var dribbbleUsername = $(this).attr('data-user');
			var dribbbleCount    = $(this).attr('data-count');
			var dribbbleList     = $(this).attr('data-list');
			var dribbbleType     = $(this).attr('data-type');

			if (!dribbbleCount)
			{
				dribbbleCount = 9;
			}

			if (dribbbleType == 'follows')
			{

				$.jribbble.getShotsThatPlayerFollows(dribbbleUsername, function (followedShots)
				{
					var html = [];

					$.each(followedShots.shots, function (i, shot)
					{
						html.push('&lt;div class="flickr_badge_image"&gt;&lt;a href="' + shot.url + '" target="_blank"&gt;');
						html.push('&lt;img src="' + shot.image_teaser_url + '" ');
						html.push('alt="' + shot.title + '"&gt;&lt;/a&gt;&lt;/div&gt;');
					});

					$(dribbbleWrap).html(html.join(''));
				}, {page: 1, per_page: Number(dribbbleCount)});

			}
			else if (dribbbleType == 'user')
			{

				$.jribbble.getShotsByPlayerId(dribbbleUsername, function (playerShots)
				{
					var html = [];

					$.each(playerShots.shots, function (i, shot)
					{
						html.push('&lt;div class="flickr_badge_image"&gt;&lt;a href="' + shot.url + '" target="_blank"&gt;');
						html.push('&lt;img src="' + shot.image_teaser_url + '" ');
						html.push('alt="' + shot.title + '"&gt;&lt;/a&gt;&lt;/div&gt;');
					});

					$(dribbbleWrap).html(html.join(''));
				}, {page: 1, per_page: Number(dribbbleCount)});

			}
			else if (dribbbleType == 'list')
			{

				$.jribbble.getShotsByList(dribbbleList, function (listDetails)
				{
					var html = [];

					$.each(listDetails.shots, function (i, shot)
					{
						html.push('&lt;div class="flickr_badge_image"&gt;&lt;a href="' + shot.url + '" target="_blank"&gt;');
						html.push('&lt;img src="' + shot.image_teaser_url + '" ');
						html.push('alt="' + shot.title + '"&gt;&lt;/a&gt;&lt;/div&gt;');
					});

					$(dribbbleWrap).html(html.join(''));
				}, {page: 1, per_page: Number(dribbbleCount)});

			}

		});

	}

});

Number.prototype.formatMoney = function (c, d, t) {
	var n = this,
	    c = isNaN(c = Math.abs(c)) ? 2 : c,
	    d = d == undefined ? "." : d,
	    t = t == undefined ? "," : t,
	    s = n &lt; 0 ? "-" : "",
	    i = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),
	    j = (j = i.length) &gt; 3 ? j % 3 : 0;
	return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
};

function escapeRegExp(str)
{
	return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
}

function replaceAll(str, find, replace)
{
	return str.replace(new RegExp(escapeRegExp(find), 'g'), replace);
}

function countWords(s)
{
	s = s.replace(/(^\s*)|(\s*$)/gi, "");//exclude  start and end white-space
	s = s.replace(/[ ]{2,}/gi, " ");//2 or more space to 1
	s = s.replace(/\n /, "\n"); // exclude newline with a start spacing
	return s.split(' ').filter(function (str) {
		return str !== "";
	}).length;
	//return s.split(' ').filter(String).length; - this can also be used
}

function msieversion() {

	var ua = window.navigator.userAgent;
	var msie = ua.indexOf("MSIE ");

	if (msie &gt; 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))  // If Internet Explorer, return version number
	{
		alert(parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))));
	}
	else  // If another browser, return 0
	{
		alert('otherbrowser');
	}

	return false;
}

function randString(id)
{
	var dataSet  = $(id).attr('data-character-set').split(',');
	var possible = '';
	if ($.inArray('a-z', dataSet) &gt;= 0)
	{
		possible += 'abcdefghijklmnopqrstuvwxyz';
	}
	if ($.inArray('A-Z', dataSet) &gt;= 0)
	{
		possible += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
	}
	if ($.inArray('0-9', dataSet) &gt;= 0)
	{
		possible += '0123456789';
	}
	if ($.inArray('#', dataSet) &gt;= 0)
	{
		possible += '![]{}()%&amp;*$#^&lt;&gt;~@|';
	}
	var text = '';
	for (var i = 0; i &lt; $(id).attr('data-size'); i++)
	{
		text += possible.charAt(Math.floor(Math.random() * possible.length));
	}
	return text;
}
</pre></body></html>