jQuery(function($) {
	jQuery(".simpleBox").jQselectable( {
		style : "simple",
		set : "slideDown",
		out : "fadeOut",
		setDuration : 150,
		outDuration : 150,
		height : 350,
		opacity : 1
	});
	
	jQuery(".simpleBoxSmall").jQselectable( {
		style : "simpleSmall",
		set : "slideDown",
		out : "fadeOut",
		setDuration : 150,
		outDuration : 150,
		height : 350,
		opacity : 1
	});
	
	jQuery(".callback").jQselectable( {
		style : "simple",
		height : 350,
		opacity : 1,
		callback : function() {
			if ($(this).val().length > 0)
				window.location = $(this).val();
		}
	});
	
	jQuery(".callbackSmall").jQselectable( {
		style : "simpleSmall",
		height : 350,
		opacity : 1,
		callback : function() {
			if ($(this).val().length > 0)
				window.location = $(this).val();
		}
	});
	
	jQuery(".callbackHalf").jQselectable( {
		style : "simpleHalf",
		height : 350,
		opacity : 1,
		callback : function() {
			if ($(this).val().length > 0)
				window.location = $(this).val();
		}
	});

	// change skins but not for IE
	if (document.all) {
		jQuery("#skin").remove();
	} else {
		var css = $("link[type='text/css']");
		jQuery("#skin a").click(
				function() {
					var href = this.href.split("#")[1];
					css[1].href = css[1].href.replace(
							/(skin\/)\w+(\/style.css)/, "$1" + href + "$2");
					return false;
				});
	}
});
