/* SCRIPIT CREATOR - CROSS BROWSER AJAX */
function scriptRequest(id,url,callback){
	this.url=url;
	this.callback=callback;
	this.header=document.getElementsByTagName("head").item(0);
	this.scriptID=id;
}
scriptRequest.prototype.generateTag=function(){
	this.oScript=document.createElement("script");
	this.oScript.setAttribute("type","text/javascript");
	this.oScript.setAttribute("src",this.url+"&callback="+this.callback+"&r="+escape(location.href));
	this.oScript.setAttribute("id",this.scriptID);
}
scriptRequest.prototype.removeTag=function(){
	this.header.removeChild(this.oScript);
}
scriptRequest.prototype.addTag=function(){
	this.header.appendChild(this.oScript);
}
function expand(item)
{
	var sub=document.getElementById(item+'sub');
	(sub.style.display=='none')?sub.style.display='list-item':sub.style.display='none';
	var imgtag=document.getElementById(item).getElementsByTagName('img');
	(sub.style.display=='none')?imgtag[0].src='http://www.jobs4careers.com.au/images/nav/plus.gif':imgtag[0].src='http://www.jobs4careers.com.au/images/nav/minus.gif';
}
/* SCRIPIT CREATOR - CROSS BROWSER CSS
function cssRequest(){
	this.header=document.getElementsByTagName("head").item(0);
}
cssRequest.prototype.generateTag=function(wid){
	this.oCss=document.createElement("link");
	this.oCss.setAttribute("href","http://www.jobs4careers.com.au/widgets/j4c_synd_css.php");
	this.oCss.setAttribute("rel","stylesheet");
	this.oCss.setAttribute("type","text/css");
}
cssRequest.prototype.removeTag=function(){
	this.header.removeChild(this.oCss);
}
cssRequest.prototype.addTag=function(){
	this.header.appendChild(this.oCss);
}

var oCss=new cssRequest();
oCss.generateTag();
oCss.addTag();*/
