﻿Cufon.replace('h1, h2, h3, div.mainMenu table.mainMenu td.mainMenu > a, .title, .titleLinked a, .documents .group > a, .forum .block a, .button a');

$(document).ready(function() {
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme: 'facebook',
		show_title: false,
		autoplay_slideshow: false,
		deeplinking: false,
		social_tools: "",
		overlay_gallery: false
	});

	$(".clickable").click(function() {
		var link = $(this).find("a:first");
		if (link != "undefined") {
			if (link.attr("target") == "_blank") {
				window.open(link.attr("href"));
			}
			else {
				location = link.attr("href");
			}
		}
	})
    .mouseover(function() {
    	$(this).toggleClass("hover");
    })
    .mouseout(function() {
    	$(this).toggleClass("hover");
    });

	$("label.infield").inFieldLabels();
});

function MinLength(sender, args) { args.IsValid = (args.Value.length >= 3); }


