     
        
        function EmbedFlash(
	width,
	height,
	flashFile
)
{
	document.write("<object ");
	document.write("	classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ");
	document.write("	codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" ");
	document.write("	width=\""+width+"\" "); 
	document.write("	height=\""+height+"\" ");
	document.write("	id=\"slideshow\" ");
	document.write("	align=\"middle\" ");
	document.write("	VIEWASTEXT> ");
	document.write("	<param name=\"allowScriptAccess\" value=\"sameDomain\" /> ");
	document.write("	<param name=\"movie\" value=\""+flashFile+"\" /> ");
	document.write("	<param name=\"quality\" value=\"high\" /> ");
	document.write("	<param name=\"bgcolor\" value=\"#ffffff\" /> ");
	document.write("	<embed ");
	document.write("		src=\""+flashFile+"\"");
	document.write("		quality=\"high\" ");
	document.write("		bgcolor=\"#ffffff\" ");
	document.write("		width=\""+width+"\" ");
	document.write("		height=\""+height+"\" ");
	document.write("		name=\"slideshow\" ");
	document.write("		align=\"middle\" ");
	document.write("		allowScriptAccess=\"sameDomain\" ");
	document.write("		type=\"application/x-shockwave-flash\" ");
	document.write("		pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> ");
	document.write("</object> ");
}
        
        

//alternating row colors for job search        
function alternatecolor(id){ 
try {
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);   
   var rows = table.getElementsByTagName("tr");   
   for(i = 0; i < rows.length; i++){           
     if(i % 2 == 0){ 
       rows[i].className = "color_one"; 
     }else{ 
       rows[i].className = "color_two"; 
     }       
   } 
 } 
 } catch (err) {}
 }
 
 
 
 function showwindow() {
    sizewindow()
    top.document.getElementById("poptext").style.display = "block";
    top.document.getElementById("popwindow").style.display = "block";
    top.scrollTo(0,0);
    top.document.getElementById("popwindow").focus()
}




function sizewindow() {

    var pageWidth=0;
    var pageHeight=0;

    pageWidth = top.document.getElementById("checkpoint").offsetLeft;
    pageHeight = top.document.getElementById("checkpoint").offsetTop;
    var wide = top.window.screen.availWidth;
    var high = top.window.screen.availHeight;
    
    //make sure the div that holds the checkpoint is wide enough
    top.document.getElementById("checkpointcontainer").width = wide +"px";
    top.document.getElementById("poptext").style.left = (pageWidth-300)/2 + "px";
    top.document.getElementById("poptext").style.top = (high-500)/2  + "px";

    if (high > pageHeight) {
    pageHeight = high
    }

    top.document.getElementById("popwindow").style.width = pageWidth + "px";
    top.document.getElementById("popwindow").style.height = pageHeight + "px";
}

function hidepop() {
    
    
    top.document.getElementById("poptext").style.display = "none";
    top.document.getElementById("popwindow").style.display = "none";
    top.document.getElementById("popcontinue").Value = "Continue";
    top.document.getElementById("popcancel").style.display = "none";
    top.document.getElementById("popcontinue").onclick = function() {hidepop()};
    
   
}

var g_checkTimer;
var _w = null;



function launchorder()  {
	_w = window.open("transferorder.aspx", "_w","width=950,height=600,location=no,menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=yes" )
       document.getElementById('savetext').innerHTML = "Your order has been transferred for payment. Use the <a href='javascript:void(0)' onclick='try {_w.focus()} catch (err){};return false;'>Payment Window</a> to complete your order, or click cancel below to edit your order.";    
       document.getElementById("popcancel").onclick = function() {try {_w.close();} catch (err){} setTimeout("window.location = 'CartCheckOut2.aspx?try=1';",2000)};
        top.document.getElementById("popcancel").style.display = "inline";
        top.document.getElementById("popcontinue").style.display = "none";
        showwindow();
        
        _w.focus();
	
    g_checkTimer = setInterval("checkForClosed()",1000);
    
    window.onbeforeunload = function() {winexit()};
}

function winexit() {
    try{_w.close()} catch (err) {}
    
}


function checkForClosed() 
{

	try 
	{
		if( _w != null && _w.closed )
		{
			clearInterval(g_checkTimer);
			setTimeout("window.location = 'CartCheckOut2.aspx?try=1';",2000)
		top.document.getElementById("popcancel").style.display = "none";
        top.document.getElementById("popcontinue").style.display = "none";
        document.getElementById('savetext').innerHTML = "<strong id='blink2'>....Processing....</strong>"
        startBlink()
		}
	}
	catch(err)
	{
		clearInterval(g_checkTimer);
		setTimeout("window.location = 'CartCheckOut2.aspx?try=1';",2000)
		top.document.getElementById("popcancel").style.display = "none";
        top.document.getElementById("popcontinue").style.display = "none";
        document.getElementById('savetext').innerHTML = "<strong id='blink22'>....Processing....</strong>"
        startBlink()
        
		
	}
}


function doBlink() {
  var blink = top.document.getElementById('blink2')
    blink.style.visibility = blink.style.visibility == "visible" ? "hidden" : "visible" 
}

function startBlink() {
   setInterval("doBlink()",500)
}


