// --------------------------------  Funções compre com um clique ---------------------------------------
$(function() {$('a#oneClickLink').lightBox();});
$(function() {$('a.oneClick').lightBox();});
// funcao oneclickBox - oneclickBox("url",700,350);
function oneclickLoader(){$2("oneIframe").style.visibility="hidden";$("#lightbox-loading").show();$2("lightbox-loading").appendChild(labelLoader)};

//function iframeAjuste(){
function iframeAjuste(){
	$("#lightbox-nav").hide();
   $("#lightbox-image").hide();
   $("#lightbox-container-image").show();
   var oneW=550;var oneH=50;
   $("#lightbox-container-image-data-box").css({width:oneW-20});
   $("#lightbox-container-image-box").css({width:oneW,height:520});
   $2("oneIframe").style.height="500px";
};
function oneclickBox(oneUrl){
	var container=$2("lightbox-container-image");
   if($.browser.msie==true)var oneIframe=document.createElement('<iframe frameborder="0" onload="iframeAjuste()">');
   else var oneIframe=document.createElement("iframe");
   $("#lightbox-container-image").hide();
   oneIframe.setAttribute("frameborder","0");
   oneIframe.setAttribute("scrolling","auto");
   oneIframe.setAttribute("width","100%");
   oneIframe.setAttribute("onload","iframeAjuste()");
   oneIframe.id="oneIframe";
   container.appendChild(oneIframe);
   $2("oneIframe").src=oneUrl
   $("#lightbox-image-details").hide();
};
function ajustaLightBoxOneClickTermo(){$2("oneIframe").style.height="240px"; $("#lightbox-container-image-box").css({height:260});}
function escondeFechar(){$("#lightbox-container-image-data-box").hide();};
function setCookie(name, value, expires, path, domain, secure) {
 document.cookie =
  name + "=" + escape(value) +
  ((expires) ? "; expires=" + expires.toGMTString() : "") +
  ((path) ? "; path=" + path : "") +
  ((domain) ? "; domain=" + domain : "") +
  ((secure) ? "; secure" : "");
 }
 setCookie("submitUmClique", "0", null, "/");
 
