		var _root = "/";	//http://www.femorale.com.br/-/internet2/
		var _roots = "https://femora.sslterraempresas.com.br/";
		
		function calcHeight(frm){
		  //find the height of the internal page
		  var the_height = document.getElementById(frm).contentWindow.document.body.scrollHeight;
		  //change the height of the iframe
		  document.getElementById(frm).height = the_height;
		}
		
		// change text size
		function changeFontSize(value){
		var fts = document.getElementById("bdtext");
		for (var i=0;i<fts.getElementsByTagName("p").length;i++) {
			fts.getElementsByTagName("p")[i].style.fontSize = value +"px";
		}
		}

		
		function setCookie(c_name,value,expiredays)
		{
		var exdate=new Date();
		exdate.setDate(exdate.getDate()+expiredays);
		document.cookie=c_name+ "=" +escape(value)+
		((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
		}
		
		function getCookie(c_name)
		{
		if (document.cookie.length>0)
		  {
		  c_start=document.cookie.indexOf(c_name + "=");
		  if (c_start!=-1)
			{
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end = document.cookie.length
			var cValue = document.cookie.substring(c_start,c_end);
			if (cValue.length >2) cValue = String(cValue).substring(0,13);
			return unescape(cValue);

			}
		  }
		return null;
		}
		
	var Consts = {
	addWishList : _root+ "wishlist/addtowishlist.asp"
	}
	
	
	var _urls = { capt: _roots+ "captcha.aspx"
		};
	
	var mbtype = "GET", 
	mburl = _roots+ "shop/newby/sess/",
	mbbsmsg = function(){
		return "Please wait while we process your order";
	};
	
	// ready xml function
	function xmlreader(pathfilename){
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp = new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.open("GET",pathfilename,false);
		xmlhttp.send();
		xmlDoc = xmlhttp.responseXML;
		return xmlDoc;
	}
	
	var contador = function(){
		return "<img src='"+ _root +"'images/countc.gif'/>";
	};

	document.write("<script type='text/javascript' src='"+ _root +"jss/jquery.js'></script>");

