function checklocation(frameArray) {
		for (n=0; n<frameArray.length; n++) {
//window.alert(frameArray[n][0].name);
//window.alert(frameArray[n][1]);
		}
//window.alert(frameArray[0]);
	topLocation = top.location.href;
	topLocation = topLocation.substring(0,topLocation.indexOf('?'));
//		window.alert('window.top = ' + window.top.location.href);
//		window.alert('top = ' + top.location.href);
	if ((top.location.href != "http://www.rewine.se/") && (top.location.href != "http://www.rewine.se/index.htm") && (topLocation != "http://www.rewine.se/") && (topLocation != "http://www.rewine.se/index.htm")) {
		top.location.href = "http://www.rewine.se/";
	}
	else {
		searchStr = window.location.search.substring(1);
		//window.alert('searchStr '+searchStr);
		//window.alert('frameArray.length = '+frameArray.length);
		for (i=0; i<frameArray.length; i++) {
//		//window.alert(frameArray[i][0]);
//		//window.alert(frameArray[i][1]);
			//window.alert('for searchStr='+searchStr);
			if ((searchStr != "")&&(searchStr[0] != ',')) {
				//window.alert('if1 searchStr='+searchStr);
				if ((searchStr.indexOf('(') != -1) && (searchStr.indexOf('(')<searchStr.indexOf(','))) {
					//window.alert('if2 searchStr='+searchStr);
					locationStr = searchStr.substring(0,searchStr.indexOf('('));
					//window.alert('locationStr1 = '+locationStr);
					nextSearchStr = "?";
					searchStr = searchStr.substring((searchStr.indexOf('(')+1),searchStr.length);
					//window.alert(searchStr);																										 
					k = 0;
					j = 1;
					while (j>k) {
						if (searchStr.indexOf('(')<searchStr.indexOf(')')&&(searchStr.indexOf('(') != -1)) {
							nextSearchStr = nextSearchStr + searchStr.substring(0,(searchStr.indexOf('(')+1));
							searchStr = searchStr.substring((searchStr.indexOf('(')+1),searchStr.length);
							j++;
						}
						else {
							nextSearchStr = nextSearchStr + searchStr.substring(0,(searchStr.indexOf(')')+1));
							searchStr = searchStr.substring((searchStr.indexOf(')')+1),searchStr.length);
							k++;
						}
//							//window.alert(searchStr);
//							//window.alert(searchStr.indexOf('('));
					}
					searchStr = searchStr.substring(1);
					nextSearchStr = nextSearchStr.substring(0,(nextSearchStr.length-1));
				}
				else {
					locationStr = searchStr.substring(0,searchStr.indexOf(','));
					//window.alert('locationStr2 = '+locationStr);
					nextSearchStr = "";
					searchStr = searchStr.substring((searchStr.indexOf(',')+1),searchStr.length);
				}
//				window.alert('locationStr = '+locationStr);
				locationStr = locationStr.replace("&","#");
//				window.alert('locationStr + nextSearchStr '+locationStr + nextSearchStr);
				frameArray[i][1] = locationStr + nextSearchStr;
				//window.alert('searchStr= '+searchStr);
				//window.alert('i= '+i);
			}
		}
		//window.alert('frameArray.length = '+frameArray.length);
		for (m=0; m<frameArray.length; m++) {
//			window.alert('else frameArray '+frameArray[m][1]);
//			window.alert('else frameArray '+frameArray[m][0].name);
			frameArray[m][0].location.href = frameArray[m][1];
			//window.alert('m= '+m);
		}
	}
}

function adjustContentHeightLeft() {
	content.style.height=document.body.clientHeight-65;
	left_left.style.height=content.style.height;
	left_right.style.height=content.style.height;	
}
function adjustContentHeightRight() {
	var xy = navigator.appName;
	var xz = xy.substring(0,4);
	if (xz="Micr") {
	content.style.height=document.body.clientHeight-65;
	right_right.style.height=content.style.height;
	}
}
function adjustContentHeightRight2() {
	content.style.height=document.body.clientHeight-65;
	if (content1.offsetHeight > document.body.clientHeight-65) {
	right_right_img.style.height=content1.offsetHeight;
	right_left_img.style.height=content1.offsetHeight;
	}
	else {
	right_right_img.style.height=content.style.height;
	right_left_img.style.height=content.style.height;
	}
}
function adjustContentHeightLeft2() {
	ProdukterLeftDiv.style.height=document.body.clientHeight-115;
	left_left.style.height=ProdukterLeftDiv.style.height;
	left_right.style.height=ProdukterLeftDiv.style.height;	
}
function adjustContentHeightLeft3() {
	ProducenterLeftDiv.style.height=document.body.clientHeight-65;
	left_left.style.height=ProducenterLeftDiv.style.height;
	left_right.style.height=ProducenterLeftDiv.style.height;	
}
