var WidgetOptions = {
		  effects : {
		    effectDuration : 100,
		    widgetShow : 'fade',
		    widgetHide : 'slide'
		  }
}

$(document).ready( function() {
	$.fn.EasyWidgets({
		behaviour : {
		    useCookies : true
	    },
	    i18n : {		    	
            extendText : '<div class="extendButton"></div>',
            collapseText : '<div class="collapseButton"></div>'
	    },
	    effects : {
		    widgetExtend: 'slide',
		    widgetCollapse: 'slide'
	    }
    });
});

$( function () {
	$("#chatGirls").scrollable({
		next: ".buttonDown",
	    prev: ".buttonUp",
	    vertical: true,
	    size: 4,
	    keyboard: false
	});
});

var winlist = new Array();

function openWindow(url, name, w, h)
{
    if (typeof(winlist[name]) == 'undefined' || winlist[name].closed) {
        var xy = '';
        var x  = (screen.availWidth - w) / 2;
        var y  = (screen.availHeight - h) / 2;
        winlist[name] = window.open(url, name,
                'toolbar=no,status=no,resizable=yes,scrollbars=yes,width=' +
                w + ',height=' + h + ',top=' + y + ',left=' + x);
    } else {
        winlist[name].focus();
        if (url && winlist[name].location.href != url) {
            winlist[name].location = url;
        }
    }
}

function toggleSection(linkObj, id)
{
    var obj = document.getElementById(id);
    if (obj.style.display == 'none') {
        obj.style.display = '';
        linkObj.className = 'linkSectionCollapse';
    } else {
        obj.style.display = 'none';
        linkObj.className = 'linkSectionExpand';
    }
}

$(document).ready(function(){
	$('.videoImg').slideshow();
	$('.videoThumb a img').slideshow();
});