//start banner rotation
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function querySt(str) {
	queryStr = window.location.search.substring(1);
	queryStrArray = queryStr.split("&");
	for (i=0;i<queryStrArray.length;i++) {
	ft = queryStrArray[i].split("=");
		if (ft[0] == str) {
		return ft[1].toLowerCase();
		}
	}
}
function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
	var result = Math.ceil(rnd()*number);
	if (!result)result++;
        return result
};
var ad_cnt1 = 6;
var ad1 = rand(ad_cnt1);
var link1;
var adBanner1;
var width1;
var height1;
var alt1;
var filetype;

if (querySt("txt_sector") && (querySt("txt_sector").indexOf("3")!=-1 || querySt("txt_sector").indexOf("7")!=-1 ) || window.location.href.indexOf("banking/index.jsp")!=-1 || window.location.href.indexOf("finance/index.jsp")!=-1){
	link1="http://www.londoncareers.net/";
	adBanner1="/css/flash/bpp468x60.swf";
	width1="468";
	height1="60";
	alt1="London Careers";
	filetype="flash";
}else if (ad1==1) {
link1="http://www.londoncareers.net/";
adBanner1="http://www.canarywharfcareers.co.uk/css/images/banners/lcn_animated.gif";
width1="468";
height1="60";
alt1="London Careers";
filetype="image";
}else if (ad1==2) {
link1="http://www.push.co.uk";
adBanner1="http://www.push.co.uk/files/Image/web/PushBanner.gif";
width1="468";
height1="60";
alt1="push.co.uk - the ruthlessly independent guide to uni life";
filetype="image";
}else if (ad1==3) {
link1="http://www.cronecorkill.co.uk";
adBanner1="http://www.londoncareers.net/css/images/banner5517-1174-CC-Homepage-Banner-Jan09.gif";
width1="468";
height1="60";
alt1="Crone Corkill";
filetype="image";
}else if (ad1==4) {
	link1="http://www.officeteamuk.com/portal/site/ot-uk/menuitem.b0a52206b89cee97e7dfed10c3809fa0/?vgnextoid=2122e051f9f25210VgnVCM1000005415fc0aRCRD&vgnextchannel=ade20dc59e824110VgnVCM1000003041fd0aRCRD";
	adBanner1="http://www.londoncareers.net/css/images/banners/officeteam.gif";
	width1="468";
	height1="60";
	alt1="push.co.uk - the ruthlessly independent guide to uni life";
	filetype="image";
	}
else if (ad1==5) {
		link1="http://www.homelearningcollege.com/redirect.aspx?cp=IDGCCN0004&pg=257";
		adBanner1="http://www.citycareers.com/css/images/IDGCCN0004.swf";
		width1="468";
		height1="60";
		alt1="HLC";
		filetype="flash";
		}
else if (ad1==6) {
	link1="http://www.bpp.com/courses/examination-courses/city,-banking--fs/cfa%c2%ae/levels.aspx";
	adBanner1="/css/flash/bpp468x60.swf";
	width1="468";
	height1="60";
	alt1="push.co.uk - the ruthlessly independent guide to uni life";
	filetype="flash";
	}
/*else if (ad1==4) {
link1="http://www.thefullercv.com/City_Careers.com.asp";
adBanner1="http://www.londoncareers.net/css/images/fullercv_cc.swf";
width1="468";
height1="58";
alt1="Fuller CV";
filetype="flash";
}*/
if (adBanner1.indexOf('.swf?')!=-1  && adBanner1.indexOf('benedix')!=-1){
	document.write('<object width="468" height="60">	    <param name="movie" value="http://benedix.affilitech.co.uk/accounts/default1/banners/benedix_468x60-5.swf?clickTAG=http%3A%2F%2Fwww.benedix.co.uk%2Fa%2FDerekcareers%2F29e1b341" />	    <param name="loop" value="true" />	    <param name="menu" value="false" />	    <param name="quality" value="medium" />	    <param name="wmode" value="Window" />	    <param name="FlashVars" value="clickTAG=http%3A%2F%2Fwww.benedix.co.uk%2Fa%2FDerekcareers%2F29e1b341" />	    <embed src="http://benedix.affilitech.co.uk/accounts/default1/banners/benedix_468x60-5.swf?clickTAG=http%3A%2F%2Fwww.benedix.co.uk%2Fa%2FDerekcareers%2F29e1b341" flashvars="clickTAG=http%3A%2F%2Fwww.benedix.co.uk%2Fa%2FDerekcareers%2F29e1b341" width="468" height="60" loop="true" menu="false" swliveconnect="FALSE" wmode="Window" allowscriptaccess="always"></embed>	  </object>	  <img style="border:0" src="http://www.benedix.affilitech.co.uk/scripts/imp.php?a_aid=Derekcareers&amp;a_bid=29e1b341" width="1" height="1" alt="" />');
}else if(filetype=="flash"){
	document.write ('<OBJECT ');
	document.write ('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" ');
	document.write ('WIDTH="'+width1+'" ');
	document.write ('HEIGHT="'+height1+'" ');
	document.write ('id="testbanner" ');
	document.write ('ALIGN="" ');
	document.write ('VIEWASTEXT>');
	document.write ('<PARAM NAME=movie VALUE="'+ adBanner1+ '">');
	document.write ('<PARAM NAME=quality VALUE=high>');
	document.write ('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
	document.write ('<EMBED ');
	document.write ('src="'+adBanner1+'" ');
	document.write ('quality=high ');
//	document.write ('bgcolor=#FFFCDA '
	document.write ('WIDTH="'+width1+'" ');
	document.write ('HEIGHT="'+height1+'"' );
	//document.write ('NAME="testbanner" ');
	//document.write ('ALIGN="center" ');
	document.write ('TYPE="application/x-shockwave-flash" ');
	document.write ('PLUGINSPAGE="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write ('</EMBED>');
	document.write ('</OBJECT>');
	
}else{

document.write('<left><a href="' + link1 + '" target="_blank">');
document.write('<img src="' + adBanner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>');
document.write('</left>');
}
// End -->


