/*
© 2008 Designit Media Corp. All Rights Reserved.
Written By: Daniel J. Dahan
*/
__52(function(){
	__68({target:'GUI_HS',style:'000_8_S',crn:['L','TL','T','TR','R']});
	//__46('HS_BTN','click',env_op_hs);
	__46('featured-airports','click',env_op_hs);
	__46('quote','click',env_op_hs);
	//$btn({target:'hs_tabs',type:'group',onclick:env_op_hs,item:[{id:'featured-products',value:'FEATURED PRODUCTS'},{id:'shopping-cart',value:'MY SHOPPING CART'},{id:'my-account',value:'MY ACCOUNT'}]});
});

function env_op_hs(e){
	
	e=__48().target;
	e.className='on';
	e=e.id;
	if(e==__42('hs_current')||!__42('ENV_HS')){
		__42('ENV_HS')?__20('ENV_HS').height='25px':__20('ENV_HS').height='350px';
		__41('ENV_HS',!__42('ENV_HS'));	
	}
	if(__42('hs_current')){
		__17(__42('hs_current')).className='';
	}
	__41('hs_current',e);
	hs_op_section(e);
	
}

function hs_op_section(e){
	if(!__42('cache')[e]){
		__17('hs_content_display').innerHTML='<table class="abs w h"><tr><td align="center" valign="middle"><img src="../lib/img/loader.gif" /></td></tr></table>';
		__56({
			data:'request='+encodeURIComponent(e),
			url:'/dispatcher/index.php',
			success:function(o){
				__42('cache')[e]=eval('('+o.data+')');
				__37(__42('cache')[e].css);
				hs_content_display(__42('cache')[e]);
			},
			cache:e
		});	
	}else{
		hs_content_display(__42('cache')[e]);	
	}
}

function hs_content_display(o){
	__17('hs_content_display').innerHTML=o.html;
	o.js.call(window);
}