var j = 0;
var p = Pic.length;
var preLoad = new Array();

function carregar(){
	for (i = 0; i < p; i++){
	    preLoad[i] = new Image();
	    preLoad[i].src = Pic[i];
	}
}

function change(x){
	if (document.all){
		document.images.flor.style.filter="blendTrans(duration=1)";
		document.images.flor.filters.blendTrans.Apply();
	}
	if (x == "1"){j = j + 1;if (j > (p-1)) j=0;}
	if (x == "0"){j = j - 1;if (j == "-1") j=p-1;}
	document.images.flor.src = preLoad[j].src;
	if (document.all){
		document.images.flor.filters.blendTrans.Play();
	}
}

function fixQuote(x){
	x = x.replace(/&quot;/g, "\"");
	return x;
}

function fechar_pop() {
    $("#overlay").trigger('click');
}
