/* -------------------------------------------------- *
 * ToggleVal Plugin for jQuery                        *
 * Version 1.0                                        *
 * -------------------------------------------------- *
 * Author:   Aaron Kuzemchak                          *
 * URL:      http://kuzemchak.net/                    *
 * E-mail:   afkuzemchak@gmail.com                    *
 * Date:     8/18/2007                                *
 * -------------------------------------------------- */
jQuery.fn.toggleVal = function(focusClass) {
	this.each(function() {
		$(this).focus(function() {
			// clear value if current value is the default
			if($(this).val() == this.defaultValue) { $(this).val(""); }
			// if focusClass is set, add the class
			if(focusClass) { $(this).addClass(focusClass); }
		}).blur(function() {
			// restore to the default value if current value is empty
			if($(this).val() == "") { $(this).val(this.defaultValue); }
			// if focusClass is set, remove class
			if(focusClass) { $(this).removeClass(focusClass); }
		});
	});
}
/*
==============================================================
File: cc.js
Created by: Osman Gormus <osman@project6.com>
Created: March 05, 2008 01:35:10 PM
==============================================================
*/
$(document).ready(function() {

  // .ThemeButton { padding:.25em .75em;border:1px solid #525252; text-transform: uppercase;color:#2E2E2E;text-decoration: none;}
  var ThemeButtonCSS = { 
      padding: "6px",
      borderWidth: "1px",
      borderStyle: "solid",
      borderColor: "#525252",
      textTransform: "uppercase",
      color: "#2E2E2E",
      textDecoration: "none",
      textAlign: "center"
      }
  
$('.ThemeGold   .ThemeButton').gradient({from: 'F2E6C4',to: 'DBB649',direction: 'horizontal'}).css(ThemeButtonCSS).css({borderColor: "#84723B"});
$('.ThemeBlue   .ThemeButton').gradient({from: 'CAD1DA',to: '5C728F',direction: 'horizontal'}).css(ThemeButtonCSS).css({borderColor: "#45505E"});
$('.ThemeGreen  .ThemeButton').gradient({from: 'CAD3D6',to: '5D7C86',direction: 'horizontal'}).css(ThemeButtonCSS).css({borderColor: "#45555A"});
$('.ThemePurple .ThemeButton').gradient({from: 'CDCBD5',to: '66617F',direction: 'horizontal'}).css(ThemeButtonCSS).css({borderColor: "#4A4756"});

});






