var streamheight;
var streamwidth;
var streamwrapper;

//formatting
var cb__fnt = cb_jobstream_text_font?'font: '+cb_jobstream_text_font+';':'';
var cb__fntclr = cb_jobstream_font_color?'color: '+cb_jobstream_font_color+';':'';
var cb__bg  = cb_jobstream_main_bgcolor?'background-color: '+cb_jobstream_main_bgcolor+';':'';
var cb__lnk = cb_jobstream_link_color?'color: '+cb_jobstream_link_color+';':'';

p6 ='<table border="0" width="100%">';
p6+= '<tr><td onmouseover="highlight(this);" onmouseout="unhighlight(this);" style="padding: 0 0 10px 0;"><a target="_top" href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=J3H5Q95W8ZZJH4P9ZQL" style="'+cb__fnt+cb__lnk+'"><b>Maintenance Technician -  International Airport, Nashville TN</b><\/a><br \/><a href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=J3H5Q95W8ZZJH4P9ZQL" style="'+cb__fnt+cb__fntclr+'text-decoration:none;display:block;">National Car Rental / Alamo Rent A Car- CareerRookie<br \/>US-TN-Nashville</a><\/td><\/tr>';
p6+= '<tr><td onmouseover="highlight(this);" onmouseout="unhighlight(this);" style="padding: 0 0 10px 0;"><a target="_top" href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=JN140876B79R1JJ35WT" style="'+cb__fnt+cb__lnk+'"><b>TOP 10 INTERNSHIP IN SALES AND FINANCE!</b><\/a><br \/><a href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=JN140876B79R1JJ35WT" style="'+cb__fnt+cb__fntclr+'text-decoration:none;display:block;">Northwestern Mutual - The Russo Financial Group<br \/>US-NY-New York</a><\/td><\/tr>';
p6+= '<tr><td onmouseover="highlight(this);" onmouseout="unhighlight(this);" style="padding: 0 0 10px 0;"><a target="_top" href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=J8E58G66K7LFNM7TLWB" style="'+cb__fnt+cb__lnk+'"><b>Event Coordinator</b><\/a><br \/><a href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=J8E58G66K7LFNM7TLWB" style="'+cb__fnt+cb__fntclr+'text-decoration:none;display:block;">Red Frog Events<br \/>US-IL-Chicago</a><\/td><\/tr>';
p6+= '<tr><td onmouseover="highlight(this);" onmouseout="unhighlight(this);" style="padding: 0 0 10px 0;"><a target="_top" href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=JB92X06S48NPPJHLG4N" style="'+cb__fnt+cb__lnk+'"><b>Civil Engineer Graduates</b><\/a><br \/><a href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=JB92X06S48NPPJHLG4N" style="'+cb__fnt+cb__fntclr+'text-decoration:none;display:block;">Kimley-Horn<br \/>US-NC-Raleigh</a><\/td><\/tr>';
p6+= '<tr><td onmouseover="highlight(this);" onmouseout="unhighlight(this);" style="padding: 0 0 10px 0;"><a target="_top" href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=J8A2KN6GC46KJ7ZW0C7" style="'+cb__fnt+cb__lnk+'"><b>FIT N FUN Instructor (s)</b><\/a><br \/><a href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=J8A2KN6GC46KJ7ZW0C7" style="'+cb__fnt+cb__fntclr+'text-decoration:none;display:block;">Y of Central Maryland<br \/>US-MD-Central Maryland</a><\/td><\/tr>';
p6+= '<tr><td onmouseover="highlight(this);" onmouseout="unhighlight(this);" style="padding: 0 0 10px 0;"><a target="_top" href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=JN67695Y55FG3RDJMTG" style="'+cb__fnt+cb__lnk+'"><b>TOP 10 INTERNSHIP IN SALES &amp; FINANCE!</b><\/a><br \/><a href="http://www.careerrookie.com/CC/JobSeeker/Jobs/JobDetail.aspx?ipath=jbstrm&siteid=crintern2&Job_DID=JN67695Y55FG3RDJMTG" style="'+cb__fnt+cb__fntclr+'text-decoration:none;display:block;">Northwestern Mutual - Strategic Financial Group<br \/>US-CA-Los Angeles/Irvine, CA</a><\/td><\/tr>';

p6+='</table>';

document.write('<div id="stream">'+p6+'</div>');
streamheight = document.getElementById('stream').scrollHeight;
document.getElementById('stream').style.display = 'none';

streamwidth = (parseFloat(cb_jobstream_width) - 6) + 'px';
streamwrapper = (parseFloat(cb_jobstream_height)) + 'px';

//JobStream
document.write('<table border="0"><tr><td>');


document.write('<div style="overflow-y:auto;width:'+streamwidth+';height:'+streamwrapper+';">'+p6+'</div>');

document.write('<\/td><\/tr><\/table>');

//Scripts for scroller
function scrollerObj(name,initH,initW,heightB,widthB,content,initBg,Bg,speed,initFl){

//**data**//
this.name=name;this.initH=initH;this.initW=initW;this.heightB=heightB;
this.widthB=widthB;this.content=content;this.initBg=initBg;
this.Bg=Bg;this.iniFl=initFl;this.speed=parseInt(speed,5);
this.timer=name+"Timer";

//**methods**//
this.getElement=getElement;this.createLayer=createLayer;
this.scrollLayer=scrollLayer;this.scrollLoop=scrollLoop;

//**initiate methods**//
this.createLayer();this.getElement();this.scrollLayer();}

//**call this method to stop scrolling**//
function scrollLoop(s){this.speed=s;}
function scrollLayer(){
if(parseInt(this.elem.style.top,10)>(this.elem.offsetHeight*(-1))){
  this.elem.style.top=parseInt(this.elem.style.top,10)-this.speed+'px';
  } else {this.elem.style.top=this.initH;}}
function getElement(){this.elem=document.getElementById(this.name);}
function createLayer(){
document.write('<div id="layer'+this.name+'" style="position:relative;overflow:hidden;float:center');
document.write(';background-color:'+this.initBg+';width:');
document.write(this.initW+';height:'+this.initH+';" onmouseover="');
document.write(this.name+'.scrollLoop(0)" onmouseout="'+this.name+'.scrollLoop(');
document.write(this.speed+')">');
document.write('<table width="100%" id="'+this.name+'" style="position:absolute;top:');
document.write(this.initH+';left:0px;border:0px solid black;');
document.write('height:'+this.heightB+';background-color:');
document.write(this.Bg+'"><tr><td>');
document.write(this.content);
document.write('<\/td><\/tr><\/table><\/div>');
if(this.scrollLayer){this.timer=setInterval(this.name+'.scrollLayer()','30');}
}

function switchTabs(tab) {
     if (tab=='jbstrm') {
        document.getElementById(tab).style.display = '';
        document.getElementById("qsb").style.display = 'none';     
	}
    else {
        document.getElementById(tab).style.display = '';
        document.getElementById("jbstrm").style.display = 'none';      
    }
}

function highlight(section) {
    section.style.background = cb_jobstream_highlight;
}

function unhighlight(section) {
    section.style.background = cb_jobstream_main_bgcolor;
}