var qString = "cid="+VentureLoopCompId;

if(typeof VentureLoopPType != 'undefined') {
	qString += "&pt="+VentureLoopPType;
} else {
	qString += "&pt=1";
}

if(typeof VentureLoopJobsPerPage != 'undefined') {
	qString += "&jpp="+VentureLoopJobsPerPage;
} else {
	qString += "&jpp=10";
}

if(typeof VentureLoopHeaderRowColor != 'undefined') {
	qString += "&hrc="+VentureLoopHeaderRowColor;
} else {
	qString += "&hrc=0000ff";
}

if(typeof VentureLoopHeaderRowFontColor != 'undefined') {
	qString += "&hrfc="+VentureLoopHeaderRowFontColor;
} else {
	qString += "&hrfc=0000ff";
}

if(typeof VentureLoopFontFace != 'undefined') {
	qString += "&fface="+VentureLoopFontFace;
} else {
	qString += "&fface=verdana, arial";
}

if(typeof VentureLoopFontSize != 'undefined') {
	qString += "&fsize="+VentureLoopFontSize+"px";
} else {
	qString += "&fsize=11px";
}

if(typeof VentureLoopEvenRowSortedColor != 'undefined') {
	qString += "&ersc="+VentureLoopEvenRowSortedColor;
} else {
	qString += "&ersc=EDF5FF";
}

if(typeof VentureLoopOddRowSortedColor != 'undefined') {
	qString += "&orsc="+VentureLoopOddRowSortedColor;
} else {
	qString += "&orsc=DBEAFF";
}

if(typeof VentureLoopVerNum != 'undefined') {
	qString += "&vernum="+VentureLoopVerNum;
} else {
	qString += "&vernum=0.9";
}


if(typeof VentureLoopPageHeight != 'undefined') {
	var VentureLoopPageHeight = VentureLoopPageHeight+"px";
} else {
	var VentureLoopPageHeight = '600px';
}

if(typeof VentureLoopPageWidth != 'undefined') {
	var VentureLoopPageWidth = VentureLoopPageWidth+"px";
} else {
	var VentureLoopPageWidth = '600px';
}

if(typeof VentureLoopFrameScrolling != 'undefined') {
	var VentureLoopFrameScrolling = VentureLoopFrameScrolling;
} else {
	var VentureLoopFrameScrolling = 'no';
}

qString += "&srcsite="+window.location.href; 
qString += "&dom="+window.location.host;

function careersPoweredByVentureLoop() {
	var divText = "<div style='text-align: center; font-family: arial, verdana, sans serif; margin-top: 8px; font-size: 11px; font-weight:normal'><span style='color: #999'>Careers Powered by </span><a href='http://www.ventureloop.com' target='_top' style='text-decoration: none'><span style='color: #green; font-weight:normal; font-size: 11px;'>VentureLoop</a></div>";
	var careersBy = document.getElementById('careersPoweredByVentureLoop');
	if(careersBy) {
		careersBy.innerHTML = divText;
	} else {
		var addDiv = document.createElement('divText');
		addDiv.innerHTML = "<div style='text-align: center; font-family: arial, verdana, sans serif; margin-top: 8px; font-size: 11px; font-weight:normal'><span style='color: #999'>Careers Powered by </span><a href='http://www.ventureloop.com' target='_top' style='text-decoration: none'><span style='color: #green; font-weight:normal; font-size: 11px;'>VentureLoop</span></a></div>";
		document.getElementById('VentureLoopJobWidgetiFrame').parentNode.appendChild(addDiv);
	}
}
document.write("<iframe frameborder='0' width='"+VentureLoopPageWidth+"' height='"+VentureLoopPageHeight+"' marginheight='0px' marginwidth='0px' scrolling='"+VentureLoopFrameScrolling+"' id='VentureLoopJobWidgetiFrame' src='http://www.ventureloop.com/ventureloop/jobwidget/VLjobwidget.php?"+qString+"' ></iframe>");

window.setTimeout("careersPoweredByVentureLoop()", 100)
