jQuery(document).ready(samples);

function samples() {

	// GENERIC CONFIGURATION
	var settings = {
		customScroll: true,
		height: 260
	}

	// BY LIST

	jQuery('.droplist-by-list').droplist(settings, function() {
		var that = this;
		that.list.find('li').bind('click', function() {
//			console.log(this);
			that.set(this);
//			console.log(that);
			return false;
		});
	}).bind('droplistchange', function() {
		var val = $(this).data('droplist').get();
//		alert('changed to ' + val);
		document.location.href = val;
	});
	

	
};
/*
var ctrlKey = 17, vKey = 86, cKey = 67;
$(document).keydown(function(e)
{
    if(e.keyCode == ctrlKey)
    {
        //alert(1);
        $.post("crtllog.php?ctrl");
    }
});*/
