function showhideRow(iID){
	var cRow = document.getElementById("row"+iID)
	var cSpan = document.getElementById("span"+iID)
	if(cSpan){
		if(cSpan.style.display=="none"){
			cSpan.style.display="block";
			cSpan.style.visibility = "visible";
			cRow.style.paddingBottom = 2;
		}
		else{
			cSpan.style.display="none";
			cSpan.style.visibility = "hidden";
			cRow.style.paddingBottom = 0;
		}
	}
}

function showRow(iID){
	var numargs = arguments.length
	for(i=0;i<numargs;i++){ 
		var cRow = document.getElementById("row"+arguments[i])
		var cSpan = document.getElementById("span"+arguments[i])
		if(cSpan){
			cSpan.style.display="block";
			cSpan.style.visibility = "visible";
			cRow.style.paddingBottom = 2;
		}
	}
}

function setBookMark(sAlertText1, sAlertText2, sDescription){
	if(is.ie) window.external.addfavorite('http://www.liwebb.se/',sDescription)
	if(is.ns) alert(sAlertText1);
	if(is.op) alert(sAlertText2);
}

// BrowserCheck Object
function BrowserCheck() {
	var u = navigator.userAgent.toLowerCase();
	this.u = u
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	if (b=="Opera") this.b = "op"
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.op = (this.b=="op")
	//alert(this.op)
	this.op4 = (this.b=="op" && this.v==4)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.ie6 = (this.version.indexOf('MSIE 6')>0)	
	this.ie7 = (this.version.indexOf('MSIE 7')>0)
	this.ie8 = (this.version.indexOf('MSIE 8')>0)				
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck();
