
function random_img(){
  var splash_img=new Array()
  splash_img[1]="MainBGFull1-10-08.jpg"
  splash_img[2]="MainBGFull2-10-08.jpg"
  splash_img[3]="MainBGFull3-10-08.jpg"


  var rdmimg=Math.floor(Math.random()*splash_img.length)

  if (rdmimg==0)
     rdmimg=1
     document.write('<div id="splash-img" style="background: url(/images/home/'+splash_img[rdmimg]+') center top no-repeat;">')
}

var path = $.query.get('popupURL');
if(path){
$(document).ready(function(){
	var t = '';
 switch(path.toUpperCase()){
 case '/MEDIA/VIDEO/BLOOMBERG.HTML':
 GB_show(t,'/partials/bloomberg_video.html',500,758,1);
 break;
 case '/MEDIA/SWF/LEARNMORE2.HTML':
  GB_show(t,'/partials/travel_expense_video_jQ.html',500,758,1);
 break;
 case '/MEDIA/SWF/TRAVEL.HTML':
   GB_show(t,'/partials/travel_expense_video_jQ.html',500,758,1);
 break;
 case '/MEDIA/SWF/PAYMENT.HTML':
   GB_show(t,'/partials/invoice_video_jQ.html',500,758,1);
 break;
 default:
 return;
 }
 });

}


$(document).ready(function(){
										
		$("#action-top-tabs a").click(function(){ 
		var TabID = '#' + $(this).attr("id") + '-tab' ;
		var TopID = '#' + $(this).attr("id") + '-top' ;
		$("#I-Need-to-tab, #my-company-is-tab, #I-am-a-tab, #smb-tab, #leb-tab").hide();
		$("#I-Need-to-top, #my-company-is-top, #I-am-a-top, #smb-top, #leb-top").removeClass('active');
		$(TabID).show();
		$(TopID).addClass('active');
		return false;
											   });
	
	$("#I-Need-to-menu a").mouseover(function(){ 
		var ListID = '#' + $(this).attr("id") + '-details';
		$("#I-Need-to-menu a").removeClass('active');
		$(".product-details").hide();
		$(this).addClass('active');
		$(ListID).show();
		});
		
		$("#navigation li").mouseover(function(){ 
		$("#navigation li").removeClass('active');
		$(this).addClass('active');
		});
		$("#navigation li").mouseout(function(){ 
		$("#navigation li").removeClass('active');
		});
	
		$("#edit-submit").hover(function(){
		$(this).addClass('active');},
		function(){
		$(this).removeClass('active');
		
										 });
		$("#my-company-is-tab a").hover(function(){
		var CompanyBlurb = '#' + $(this).attr('id') + '-footer';
		$(CompanyBlurb).show();},
		function(){
		var CompanyBlurbHide = '#' + $(this).attr('id') + '-footer';
		$(CompanyBlurbHide).hide();
		});
	
	
	});
	
$(document).ready(function(){ $("#search #edit-submit").attr("value", "_");});