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

$( function () {
    $("#chatGirls").scrollable({
        next: ".butDown",
        prev: ".butUp",
        vertical: true,
        size: 3,
        keyboard: false
    });
});

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

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 toggleTips(id) 
{	if ($("#but"+id).attr("class") == "collapseTipButton"){
		$("#but"+id).attr("class","extendTipButton");
		$("#tip"+id).show("slide", {direction:"up"}, 1000);
	} else {
		$("#but"+id).attr("class","collapseTipButton");
		$("#tip"+id).hide("slide", {direction:"up"}, 1000);
	}
}
