



            // Parse URL Queries Method

            (function ($) {

                $.getQuery = function (query) {

                    query = query.replace(/[\[]/, '\\\[').replace(/[\]]/, '\\\]');

                    var expr = '[\\?&]' + query + '=([^&#]*)';

                    var regex = new RegExp(expr);

                    var results = regex.exec(window.location.href);

                    if (results !== null) {

                        return results[1];

                    } else {

                        return false;

                    }

                };

            })(jQuery);



            $(function () {





                // Set theme based on URI

                if ($.getQuery('theme') === 'pill') {

                    $(function () {

                        $.scrollUp({

                            animation: 'fade',

                            activeOverlay: '#00FFFF'

                        });

                    });

                    $('.pill-switch').addClass('active');

                    $('#scrollUpTheme').attr('href', 'css/themes/pill.css?1.1');

                } else if ($.getQuery('theme') === 'link') {

                    $(function () {

                        $.scrollUp({

                            animation: 'fade',

                            activeOverlay: '#00FFFF'

                        });

                    });

                    $('#scrollUpTheme').attr('href', 'css/themes/link.css?1.1');

                    $('.link-switch').addClass('active');

                } else if ($.getQuery('theme') === 'image') {

                    $(function () {

                        $.scrollUp({

                            animation: 'fade',

                            activeOverlay: '#00FFFF',

                            scrollImg: {

                                active: true,

                                type: 'background',

                                src: 'img/top.png'

                            }

                        });

                    });

                    $('#scrollUpTheme').attr('href', 'css/themes/image.css?1.1');

                    $('.image-switch').addClass('active');

                } else {

                    $(function () {

                        $.scrollUp({

                            animation: 'slide',

                            activeOverlay: '#00FFFF'

                        });

                    });

                    $('#scrollUpTheme').attr('href', 'css/themes/tab.css?1.1');

                    $('.tab-switch').addClass('active');

                }



    

          

            });

