/*======================================================================*\
|| #################################################################### ||
|| # Package - Joomla Template based on YJSimpleGrid Framework          ||
|| # Copyright (C) 2010  Youjoomla.com. All Rights Reserved.            ||
|| # Author  - Dragan Todorovic 						                ||
|| # license - PHP files are licensed under  GNU/GPL V2                 ||
|| # license - CSS  - JS - IMAGE files  are Copyrighted material        ||
|| # bound by Proprietary License of Youjoomla.com                      ||
|| # for more information visit http://www.youjoomla.com/license.html   ||
|| # Redistribution and  modification of this software                  ||
|| # is bounded by its licenses                                         ||
|| # websites - http://www.youjoomla.com | http://www.yjsimplegrid.com  ||
|| #################################################################### ||
\*======================================================================*/
(function ($) {

    var YjsgShortcodesEx = {

        settings: {
           // examplesetting: ""
        },

        initialize: function (options) {

            this.options = $.extend({}, this.settings, options);

            YjsgShortcodesEx.start();

        },
        start: function () {

            var self = this;
			
			
		var LinkShortcode = '<a class="btn yjsg-shortcode-link"';
			LinkShortcode += ' href="'+siteroot+'templates/'+sitetemplate+'/custom/yjsgshortcodes/templates/link.php"';
			LinkShortcode += ' rel="{handler: \'iframe\', size: {x: 770, y: 500}}">';
			LinkShortcode += ' <i class="fa fa-link"></i> ';
			LinkShortcode += 'Link';
			LinkShortcode += ' </a>';

			$( ".yjsg-shortcodes" ).append( LinkShortcode );

			if (typeof (SqueezeBox) != 'undefined') {
				SqueezeBox.initialize({});
				SqueezeBox.assign($$('a.yjsg-shortcode-link'), {
					parse: 'rel'
				});	
			}


        }


    }

    $(document).on('ready', YjsgShortcodesEx.initialize);

})(jQuery);