function changeSize() {
if(document.body.clientWidth<1024){
	document.getElementById("searchBar").size = '11';
	document.getElementById("rightSide").width = '5000';
}
if(document.body.clientWidth>1024){
	if(document.getElementById("searchBar").size = '11')
	document.getElementById("searchBar").size = '27';
}
}

window.onload = function() {
		changeSize();
}

window.onresize = function() {
		changeSize();
}

function showAbstract(elementID) {
	document.getElementById(elementID).style.display = 'block'
}

function hideAbstract(elementID) {
	document.getElementById(elementID).style.display = 'none'
}

function switchid(id1,id2){	
	hidediv(id1);
	showdiv(id2);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}