function popup(url,numb){
	window.open(url,"image"+numb,"menubar=no,status=no,scrollbars=yes,resizable=yes,width=800,height=600");
	}
function popup2(wid,hei,url,numb){
	window.open(url,"image"+numb,"menubar=no,status=no,scrollbars=yes,resizable=yes,width="+wid+",height="+hei+"");
	}

function popup3(url){
	window.open(url,"helpWin","menubar=no,status=no,scrollbars=yes,resizable=yes,width=450,height=400,left=0,top=0");
	}	
	
function glosspop(termid) {
	newWindow = open("/its/glosspop.php?glossterm="+termid, "glossWin","menubar=no,status=no,width=250,height=250");
	}
function popflash(filename) {
	newWindow = open("/its/demos/popdemo?swfile="+filename, "demoWin","menubar=no,status=no,width=600,height=480");
	demoWin.moveTo(0,0);
	}
function downpop(filename,definition,packagename) {
	newWindow = open("/its/facilities/software/download.php?filename="+filename+"&amp;definition="+definition+"&amp;packagename="+packagename+"", "downWin","menubar=no,status=no,width=250,height=250");
	}
	
function hidevalue(element) {
	element.value = "";
	}
	
$(document).ready(function() {
	$("input.search").val("Search IT Services");
	$("#header_search_input").val("Search sussex.ac.uk");
	//$("#breadcrumb ul li:first a").html('sussex.ac.uk');
	document.forms[1].elements[0].name = "searchstring";
	document.forms[1].action = "/its/help/search";
	document.forms[1].method = "POST";
	
	//include print friendly spreadsheet
	$("head").append("<link>");
	css = $("head").children(":last");
	css.attr({
			rel:  "stylesheet",
			type: "text/css",
			href: "/its/css/print.css",
			media: "print"
			});
	
	//make ipad friendly
	if($.browser.webkit) {
		$("head").append("<link>");
    	css = $("head").children(":last");
    	css.attr({
     		 	rel:  "stylesheet",
      			type: "text/css",
      			href: "/its/css/webkit.css"
    			});
	}
 });
