// TSC JS file

//flash logo

var flaGthree = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="200" HEIGHT="30"'
    + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<PARAM NAME="MOVIE" VALUE="swf/create.swf">'
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="true">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
    + '<EMBED SRC="swf/create.swf"'
    + 'WIDTH="200" HEIGHT="30"'
    + 'PLAY="true"'
    + 'LOOP="true"'
    + 'QUALITY="high"'
    + 'MENU="false"'
    + 'TYPE="application/x-shockwave-flash"'
    + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
    + '</EMBED>'
    + '</OBJECT>';

//Flash intro
var flaTsc = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="775" HEIGHT="500"'
    + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<PARAM NAME="MOVIE" VALUE="swf/tsc.swf">'
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="true">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
    + '<EMBED SRC="swf/tsc.swf"'
    + 'WIDTH="775" HEIGHT="500"'
    + 'PLAY="true"'
    + 'LOOP="true"'
    + 'QUALITY="high"'
    + 'MENU="false"'
    + 'TYPE="application/x-shockwave-flash"'
    + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
    + '</EMBED>'
    + '</OBJECT>';




//window status array
var statName=new Array();
statName[0]="Home";
statName[1]="About Us";
statName[2]="Industry Sector";
statName[3]="Affiliate Offices";
statName[4]="Employer Info";
statName[5]="Jobseeker Profiles";
statName[6]="Job Opportunities";
statName[7]="Mechanical/Manufacturing Engineers";
statName[8]="Electric/Electircal Engineers";
statName[9]="Civil/Structural Engineers";
statName[10]="Chemical Engineers";
statName[11]="Maintenance Managers/Supervisors";
statName[12]="Plant & Production Managers/Supervisors";
statName[13]="Quality Control/Assurance";
statName[14]="Skilled Trades";
statName[15]="Materials/Logistics";
statName[16]="Chemistry/Biology";
statName[17]="Architectural Technicians & Technologists";
statName[18]="Contact Us";
statName[19]="Interview Tips";


//Status bar on
function StatOn(whichName) {
window.status=statName[whichName];return true;
}
// Status bar clear
function StatOut() {
window.status='';
}


//multiple clicking on a frame
function changeFrame(newPage){
parent.leftNav.document.location.href="left" + newPage + ".html"
document.location.href="home" + newPage + ".html"
}

//pop up windows
function jobsWin(jobPost) {

jobswindow=window.open(jobPost,
'jobsWin','width=450,height=400,scrollbars=yes,menubar=yes')
}

function winIntro() { 
				if (document.all) {var xMax = screen.width, yMax = screen.height} 
				else if (document.layers) {var xMax = window.outerWidth, yMax = window.outerHeight} 
				else {var xMax = 1024, yMax=768}; var xOffset = (xMax - 800)/2, yOffset = (yMax - 600)/2; 
				window.open('intro.html','mainpop','width=775,height=500,scrollbars=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'')
				}
