 


function GetParam(name)
{
 var start=location.search.indexOf("?"+name+"=" );
 if (start<0) start=location.search.indexOf("&"+name+"=" );
 if (start<0) return '';
 start += name.length+2;
 var end=location.search.indexOf("&",start)-1;
 if (end<0) end=location.search.length;
 var result='';
 for(var i=start;i<=end;i++) {
  var c=location.search.charAt(i);
  result=result+(c=='+'?' ':c);
 }
 return unescape(result);
} 
				
function rollOver(img,elem)
{	
	
	celem = 'content' + img;
	img = ROOTURL + '/rollover/' + elem + img + '.png';	
	$(elem).src = img;	
	

	
	$(celem).style.display = 'block';
				
}		

function rollBack(img)
{

	celem = 'content' + img;
	$(celem).style.display = 'none';	
}	


function MenuRoll()
{
	$('menu0').src = 'design/over/left_top1.png';	
}	

function MenuRollBack()
{

	$('menu0').src = 'design/left_top1.png';	
}	







window.addEvent('domready', function(){
	
	accordionindex=parseInt(GetParam("accordion"));
	
	if(accordionindex == 666)
	{
		HideOrNot = 'true';
	}
	else
	{
		HideOrNot = 'false';
	}
	
	var accordion = new Accordion('h3.atStart', 'div.atStart', {
	show: accordionindex,
	alwaysHide : HideOrNot,
	opacity: false,
	onActive: function(toggler, element){
		toggler.setStyle('color', '#fff');
		toggler.setStyle('border-bottom', '1px solid #98C4DF');
	},
	onBackground: function(toggler, element){
		toggler.setStyle('color', '#fff');
		toggler.setStyle('border-bottom', 'none');					
	}
}, $('accordion'));

		
	
	accordionindex2=parseInt(GetParam("accordion2"));
	
	

	
	
	if(isNaN(accordionindex2))
	{
		HideOrNot2 = 'true';		
	}
	else
	{
		HideOrNot2 = 'false';
	}
		
		
	var accordion2 = new Accordion('h3.atStart2', 'div.atStart2', {
	alwaysHide : true,
	show: accordionindex2,
	opacity: false,
	onActive: function(toggler, element){
		toggler.setStyle('color', '#fff');
	},
	onBackground: function(toggler, element){
		toggler.setStyle('color', '#fff');					
	}
}, $('accordion2'));


		});	
		
		
		
		
		
		
		
		
		
		
var newWin = null;
function closeWin(){
if (newWin != null){
if(!newWin.closed)
newWin.close();
}
}
function popup(strURL,strType,strHeight,strWidth) {
 closeWin();
 strType = "fixed";
 strHeight = "550";
 strWidth = "600"; 
 var strOptions="";
 if (strType == "console") {

	strOptions = "resizable,height=" + strHeight + ",width=" + strWidth;
 }
 if (strType == "fixed") {

	strOptions = "status,height=" + strHeight + ",width=" + strWidth;
 }
 if (strType=="elastic"){
 strOptions="toolbar,menubar,scrollbars,resizable,location, height="+strHeight+",width="+strWidth;
 }
 newWin = window.open(ROOTURL+'/jobs/'+strURL, 'newWin', strOptions);
 newWin.focus();
} 