/*!
 * Initiates custom functions
 * Initiates custom functions
 * Initiates custom functions
 * Initiates custom functions
 * Initiates custom functions
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */

jQuery.noConflict();

jQuery(window).load(function() {
	
	// Add gradient and rounded corners to several divs
 	jQuery(".fieldwrap").liquidCanvas("[gradient{from:#f6f6f6; to:#ffffff}] => roundedRect{radius:2}");
 	jQuery(".gradientgrey").liquidCanvas("[gradient{from:#edecec; to:#ffffff}] => roundedRect{radius:6}");
 	jQuery(".gradientblack").liquidCanvas("[gradient{from:#272727; to:#404040}] => roundedRect{radius:12}");
	jQuery(".gradientblue").liquidCanvas("[gradient{from:#00acec; to:#0077a5}] => roundedRect{radius:12}");
	jQuery(".gradientblue-6px").liquidCanvas("[gradient{from:#00acec; to:#0077a5}] => roundedRect{radius:6}");
	jQuery(".gradientblue-right").liquidCanvas("[gradient{from:#00acec; to:#0077a5}] => ecken{tl:0; bl:0; br:12; tr:12}");
	jQuery(".gradientred").liquidCanvas("[gradient{from:#ed2024; to:#ba2026}] => roundedRect{radius:12}");
	jQuery(".gradientred-left").liquidCanvas("[gradient{from:#ed2024; to:#ba2026}] => ecken{tl:12; bl:12; br:0; tr:0}");

	// Buttons
	jQuery("#onestepcheckout-place-order, .buttons-set button.button, .btn-continue, .btn-update, .btn-checkout").liquidCanvas("[gradient{from:#00acec; to:#0077a5}] => roundedRect{radius:6}");
	
	// Transparent header
	jQuery(".header").liquidCanvas("[fill{color:rgba(255, 255, 255, 0.7);}] => ecken{tl:0; bl:12; br:12; tr:0}");
	
	// Page titles
	jQuery(".addresses-list, .page-title, .postWrapper, .toolbar, .product-name, .padder, .std, .container-style, .aw_blog-title").liquidCanvas("[fill{color:rgba(255, 255, 255, 0.7);}] => roundedRect{radius:12}");
	
	// Messages
	jQuery(".note-msg").liquidCanvas("[border{color:#ffcf39;width:1} fill{color:#fbf9ec;}] => roundedRect{radius:12}");
	jQuery(".success-msg").liquidCanvas("[border{color:#92eb47;width:1} fill{color:#eff5ea;}] => roundedRect{radius:12}");
	jQuery(".note-msg, .notice-msg").liquidCanvas("[border{color:#fcd344;width:1} fill{color:#fafaec;}] => roundedRect{radius:12}");
	
	jQuery(".content-category").liquidCanvas("[gradient{from:#ed2024; to:#ba2026}] => roundedRect{radius:12}");

	jQuery(".cornered").liquidCanvas("[fill] => roundedRect{radius:12}");
	jQuery(".catalogproducts-itemwrap").liquidCanvas("[fill{color:#5ea8cd}] => roundedRect{radius:12}");
	jQuery(".catalogproducts-item").liquidCanvas("[fill{color:#d5eff7}] => roundedRect{radius:12}");

	jQuery(".relatedproducts-itemwrap").liquidCanvas("[fill{color:#5ea8cd}] => roundedRect{radius:12}");
	jQuery(".relatedproducts-item").liquidCanvas("[fill{color:#d5eff7}] => roundedRect{radius:12}");

	jQuery(".productview-itemwrap").liquidCanvas("[fill{color:#5ea8cd}] => roundedRect{radius:12}");
	jQuery(".productview-item").liquidCanvas("[fill{color:#d5eff7}] => roundedRect{radius:12}");

	// Special trans for banner area
	jQuery(".tabcontent-image").liquidCanvas("[fill{color:rgba(255,255,255,0.5)}] => roundedRect{radius:12}");

	// Special for tabs
	jQuery("ul.tabs li").liquidCanvas("[border{color:#b9b6b6;width:1} fill{color:#e3e3e3}] => roundedRect{radius:4}");
	jQuery("ul.tabs li.active").liquidCanvas("[border{color:#b9b6b6;width:1} gradient{from:#00acec; to:#0077a5}] => roundedRect{radius:4}");	
	jQuery("ul.tabs li").click(function(){
		jQuery("ul.tabs li").liquidCanvas("[border{color:#b9b6b6;width:1} fill{color:#e3e3e3}] => roundedRect{radius:4}");
		jQuery("ul.tabs li.active").liquidCanvas("[border{color:#b9b6b6;width:1} gradient{from:#00acec; to:#0077a5}] => roundedRect{radius:4}");
	});
 	
});	

/*
Cufon.DOM.ready(function() {
	// Yeah hi, i'm cufon!
	Cufon.set('fontFamily', 'VagLight').replace('ul#nav li a,.cufonme');
});
*/
