// JavaScript Document

var colorcookie = {
	date: new Date(),
	create: function(strName, strValue, intDays) {
		if ( intDays ) {
			this.date.setTime(this.date.getTime()+(intDays*24*60*60*1000));
			var expires = "; expires=" + this.date.toGMTString();
		} 
		else {
			var expires = "";
		}
		document.cookie = strName + "=" + strValue + expires + "; path=/";
	}
}
function changefundo(color){
	document.getElementById('flexivel').href = "css/" + color + ".css";
	document.getElementById('icone').href = "img/icones/" + color + ".ico";
	colorcookie.create('vtr_color',color,365);
}