// JavaScript Document

$(document).ready(function() {
	$("#nav").droppy({ speed: 250 }); 
	$("marquee").marquee().mouseover(function () {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	}).mousemove(function (event) {
		if ($(this).data('drag') == true) {
			this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		$(this).data('drag', false);
	});
	$("#options select").sSelect().change(function(){
		window.location = $(this).getSetSSValue();
	});
	$("#searchform input:text").focus(function(){
		if($(this).val() == $(this).attr('defaultValue')){
			$(this).val('');
		}
	});
	$("#searchform input:text").blur(function(){
		if($(this).val() == ''){
			$(this).val($(this).attr('defaultValue'));
		}
	});
	$("img[align='right']").addClass("right");
	$("img[align='left']").addClass("left");
});

