function openLink(ln){

ln = "http://www.simplyhired.com" +unescape(ln);
var content = '<META HTTP-EQUIV="refresh" content="0;URL=' + ln + '">' 
top.consoleRef = window.open("", "p");

 top.consoleRef.document.writeln(
  '<html><head>' + content + '</head>'
   +'<body bgcolor=white onLoad="self.focus()">'
   + ' '
   +'</body></html>'
 )
 top.consoleRef.document.close();
}

function writeButton(col1, col2, col3, str, width)
	{
	var htm = "";
	
	htm += "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=" + width + " bgcolor=";
	htm += col1 + ">";
	htm +="<tr>";
	htm +="<td colspan=3 bgcolor=" + col2 + " height=1></td>";
	htm +="</tr>";
	htm +="<tr>";
	htm +="<td bgcolor=" + col2 + " width=1></td>"
	htm +="<td align=center> <font color=" +col3 + "><B>" + str + " </B></font></td>";
	htm +="<td bgcolor=" + "black" + " width=1></td>";
	htm +="</tr>";
	htm +="<tr>";
	htm +="<td colspan=3 bgcolor=" + "black" + " height=1></td>";
	htm +="</tr>";			
	htm +="</table>";
	document.writeln(htm);	
	}

var slideShowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files


var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();

for (i = 0; i < p; i++) {
preLoad[i] = new Image();
//preLoad[i].src = Pic[i];
}
var thisdate = new Date(); 
var t1 = thisdate.getTime();

var show = true;
function chg() {
	show = !show;
	if (show) {
		showImg();
	}
}

function showImg() {
		runSlideShow();
		var thisdate = new Date(); 
		t1 = thisdate.getTime();
}

function runSlideShow() {

	if (document.all) {
		document.images.SlideShow.style.filter="blendTrans(duration=5)";
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow.filters.blendTrans.Apply();
	}
	document.images.SlideShow.src = preLoad[j].src;
	if (document.all) {
		document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = 0;
	//t = setTimeout('runSlideShow()', slideShowSpeed);
}


function showIt() {
	thisdate = new Date(); 
	if (!preLoad[j].src) {
		preLoad[j].src = Pic[j];
	}
	if ( (thisdate.getTime()  -t1 > 20000 && show) || (thisdate.getTime()  -t1 > 5000 && preLoad[j].src && show && preLoad[j].complete == 1 )) {
		showImg();
	}
	setTimeout('showIt()', 1000);
	
		
}


