function explode( delimiter, string ) {	// Split a string by string
	//
	// +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
	// +   improved by: kenneth
	// +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)

	var emptyArray = { 0: '' };

	if ( arguments.length != 2
		|| typeof arguments[0] == 'undefined'
		|| typeof arguments[1] == 'undefined' )
	{
		return null;
	}

	if ( delimiter === ''
		|| delimiter === false
		|| delimiter === null )
	{
		return false;
	}

	if ( typeof delimiter == 'function'
		|| typeof delimiter == 'object'
		|| typeof string == 'function'
		|| typeof string == 'object' )
	{
		return emptyArray;
	}

	if ( delimiter === true ) {
		delimiter = '1';
	}

	return string.toString().split ( delimiter.toString() );
}



$(document).ready(function()
{
    $("#banner_inner").cycle
    ({
        fx: 'fade',
        timeout: 5500,
        after: function()
        {
            $("#banner .text").html(this.alt);
        }
    });

    // Tooltips
    $('.pictogram span img').qtip
    ({
        content: $(this).attr("alt"),
        position:
        {
            corner:
            {
                target: 'topMiddle',
                tooltip: 'bottomMiddle'
            }
        },
        style:
        {
            padding: 0,
            tip: "bottomMiddle",
            background: '#cce2ff',
            border:
            {

                width: 1,
                radius: 5,
                color: '#cce2ff'
            }
        }

    });


    $("div.more").hover
    (
        function(e)
        {
            $(this).addClass("more_hover")
        },
        function(e)
        {
            $(this).removeClass("more_hover")
        }
    );

    $("div.submit_container").hover
    (
        function(e)
        {
            $(this).addClass("submit_container_hover")
        },
        function(e)
        {
            $(this).removeClass("submit_container_hover")
        }
    );
});

