$(function() {
	$("ol").each(function() {
		var start = parseInt($(this).attr("start"));
		if (!start || start == -1) start = 1;
		
		var i = start;
		$(this).children().each(function() {			
			$(this).prepend("<div class='ol_li' style='line-height: 11px;'><img src='/img/side_blue.gif' width='1' height='11' alt=' align='bottom' /><span>"+i+"</span><img src='/img/side_blue.gif' width='1' height='11' alt='' align='bottom' /></div>" );
			i++;
		});
	})


	$("input[default_value]").each(function(){
		if ($(this).val() === "") {
			$(this).val($(this).attr("default_value"));
		}

		$(this).focus(function(){
			if ($(this).attr("value") == $(this).attr("default_value")){
				$(this).attr("value", '')
			} 
		} );

		$(this).blur(function(){
			if ($(this).attr("value") == ""){
				$(this).attr("value", $(this).attr("default_value"));
			} 		
		} );
	});

	var url = window.location.href;
	var position = url.lastIndexOf("#");	
	var after_number = (position > -1) ? url.substring(position) : "";

	$(".faq a").click(function() {
		$(this).next().next().next().toggle();
	});

	if (after_number) { $(".faq a[href=" + after_number + "]").click() };

	$(".request").overlay({
    	expose: {
    		color: '#333',
    		loadSpeed: 200,
    		opacity: 0.9
    	}
	});

});