/**
 * Written by Rob Schmitt, The Web Developer's Blog
 * http://webdeveloper.beforeseven.com/
 */

/**
 * The following variables may be adjusted
 */

var active_color = '#000'; // Colour of user provided text
var inactive_color = '#DFDFDF'; // Colour of default text

/**
 * No need to modify anything below this line
 */

$(document).ready(function() {
  $("input.default-value").css("color", inactive_color);
  var default_values = new Array();
  $("input.default-value").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
	$(this).blur(function() {
	  if (this.value == '') {
		this.style.color = inactive_color;
		this.value = default_values[this.id];
	  }
	});
  });
});

$(document).ready(function() {
	var c = $(".content");
	var s = $(".sidebar");
	/*if(c.height() > s.height())
		s.height(c.height()+20);*/
	//c.height(Math.max(c.outerHeight(),s.outerHeight()));
	//s.height(Math.max(c.outerHeight(),s.outerHeight())+20);
	s.height($(".container-w-sidebar").height());
	c.height($(".container-w-sidebar").height()-15);
});
$(document).ready(function() {
	$(".frms").closest("form").submit(function(){
		$(this).append('<input type="hidden" name="frms" value="1"/>');
	});
	$(".article img").wrap('<div class="center"></div>');
	$(".article div:has(img)+span").addClass("img_hint");
});
