<!--//
if (!window.console || !console.firebug)
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = {};
    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}

window.addEvent('domready',function() {
	//if the page if gift registry, go on
	if(!$('giftreg'))
	{
		console.log("no giftreg");
		return;
	}
	//get the checkboxes and replace them with links that do the same thing
	$$('input').each(function(i) {
		//make sure it's a checkbox
		if(i.getProperty('class')!="chk")
			return;
		
		//hide the original checkbox
		i.setStyle('display','none');
		
		new Element('a').injectBefore(i)
			.addEvent("click",function(){
				if(!i.checked)
				{
					this.addClass('chkon');
					i.checked = true;
				}
				else
				{
					this.removeClass('chkon');
					i.checked = false;
				}
			})
			.addClass('newchk');
	});

});
																		
																		
//-->
