// Function to jump to a page selected from a drop down menu

function jumpTo(toJump)
{
	if ("" != toJump)
	{
		var loc = toJump.split("|");
		window.open('/index.php?doc='+loc[0]+'&'+loc[1]+'='+loc[2], '_self');
	}
}

function openDoc(doc)
{
	if ("" != doc)
	{
		window.open(doc, '_self');
	}
}

$(document).ready(function(){
  $('.fancybox').fancybox({
   'autoScale' : true,
   'transitionIn' : 'elastic',
   'transitionOut' : 'elastic',
   'easingIn' : 'easeOutBack',
   'easingOut' : 'easeInBack',
   'scrolling' : 'no',
   'titleShow' : true,
   'type' : 'image'
  });
  $('select.tirelist').attr('onChange', 'MM_jumpMenu("parent",this,0)'); 
});

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

