function Cookies(){

	var strCookies = document.cookie;
	if (strCookies!="") {
	var strCookiesCheck = strCookies.split(";");

		if (strCookiesCheck.length>1) {

			for (indK=0;indK<strCookiesCheck.length;indK++) {

				if (strCookiesCheck[indK].match("BS") =="BS") {

					var strCook =strCookiesCheck[indK].split("#");
					
					for (l=1;l<strCook.length;l++) {
					
						strCookBlock = strCook[l].split("-");

						if(strCookBlock[0] == "block") {

							document.getElementById("rowsService"+strCookBlock[1]).style.display = "block";
							document.getElementById("imgPlus"+strCookBlock[1]).style.display ="none"
							document.getElementById("imgMin"+strCookBlock[1]).style.display ="block"
						} else if(strCookBlock[0] == "none") {

							document.getElementById("rowsService"+strCookBlock[1]).style.display = "none";
							document.getElementById("imgPlus"+strCookBlock[1]).style.display ="block"
							document.getElementById("imgMin"+strCookBlock[1]).style.display ="none"
						} 
					}
				}
			}
		} else {
	
		var strCook =strCookies.split("#");
		if(strCook[0] =="BS"){
			
			for (p=1;p<strCook.length;p++) {
						
						strCookBlock = strCook[p].split("-");

						if(strCookBlock[0] == "block") {

							document.getElementById("rowsService"+strCookBlock[1]).style.display = "block";
							document.getElementById("imgPlus"+strCookBlock[1]).style.display ="none"
							document.getElementById("imgMin"+strCookBlock[1]).style.display ="block"
						
						} else if(strCookBlock[0] == "none") {

							document.getElementById("rowsService"+strCookBlock[1]).style.display = "none";
							document.getElementById("imgPlus"+strCookBlock[1]).style.display ="block"
							document.getElementById("imgMin"+strCookBlock[1]).style.display ="none"
						} 
					}
				}		
		}
	}
 }
function show(i){//public method
		
		document.getElementById("imgPlus"+i).style.display ="none";
		document.getElementById("imgMin"+i).style.display ="block";
		document.getElementById("rowsService"+i).style.display ="block";
		var intY = "BS";
		for(var i=0; i<=2; i++){
			intY += "#"+document.getElementById("rowsService"+i).style.display+"-"+i;
			document.cookie = intY;
		}
}
function hide(i){ //public method
				
		document.getElementById("imgPlus"+i).style.display ="block"
		document.getElementById("imgMin"+i).style.display ="none"
		document.getElementById("rowsService"+i).style.display ="none"
		var intY = "BS";
		for(var i=0; i<=2; i++){
			intY += "#"+document.getElementById("rowsService"+i).style.display+"-"+i;
			document.cookie = intY;	
		}
}
