


$(document).ready(function() {

    isAuthenticated();


    $("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").toggle(
            function() {
                $(this).parent().next("div.Content").show("fast");
                $(this).attr("class", "ArrowClose");
            },
            function() {
                $(this).parent().next("div.Content").hide("fast");
                $(this).attr("class", "ArrowExpand");
            });



    $(".popup a").hover(function() {
        $(this).next("em").stop(true, true).animate({ opacity: "show", top: "-50" }, "slow");
    }, function() {
        $(this).next("em").animate({ opacity: "hide", top: "-60" }, "fast");
    });






    var mygallery = new simpleGallery({
        wrapperid: "simplegallery1", //ID of main gallery container,
        dimensions: [237, 178], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
        //["path_to_image", "optional_link", "optional_linktarget", "optional_textdescription"]
        imagearray: [
		["http://www.onspeeddating.com/rotate/rotImage1.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage2.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage3.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage4.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage5.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage6.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage7.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage8.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage9.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage10.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage11.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage12.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage13.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage14.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage15.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage16.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage17.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage18.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage19.jpg", "", "", ""],
		["http://www.onspeeddating.com/rotate/rotImage20.jpg", "", "", ""],
        ["http://www.onspeeddating.com/rotate/rotImage21.jpg", "", "", ""]
	],
        autoplay: [true, 2500, 4], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
        persist: false, //remember last viewed slide and recall within same session?
        fadeduration: 500, //transition duration (milliseconds)
        oninit: function () { //event that fires when gallery has initialized/ ready to run
            //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
        },
        onslide: function (curslide, i) { //event that fires after each slide is shown
            //Keyword "this": references current gallery instance
            //curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
            //i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
        }
    })




});






