/*
	
SynviscOneHCP Javascript Functions

*/

//start the jQuery functions
jQuery(function($) { //dollar sign is safe here.

	// Few setups for IE6
	if(document.all){
		//add class to drop downs and buttons 
	    $('button').hover(
			function() { $(this).addClass('over'); },
			function() { $(this).removeClass('over'); }
	    );
	}// if document.all
	
	$('fieldset .other-text').hide().prev('.checkradio').each(function(){
	        var $this = $(this),
	            $otherbutton = $this.find('input[value="Other"]'),
	            $target = $this.next('.other-text');
            $this.click(function(){ $otherbutton.attr('checked') ? $target.show() : $target.hide(); });
	    });

});  // document ready / end jquery functions

// IE6 flickering
try { document.execCommand("BackgroundImageCache", false, true); } catch (err) { }

// clean console.log
function cl(logit) { if (window.console && window.console.firebug) { console.log(logit) } }; //cl()
// example: cl("If you use cl() instead of console.log(), it won't break IE when you forget to take it out.");

