	function show_loading(){
		
		$('second_area').innerHTML = '<div id="second_left_area"><div id="main_listing_content"><table width="620px" height="620px"><tr><td valign="middle" align="center"><img src="/images/loading_main.gif"></td></tr></table></div></div>';
	}
	/*function main_menu_profile_click(id){
		var cssAlreadyLoaded=false;
			for(var i=0;i<$$('link').length;i++){
				if($$('link')[i].hasAttribute('href')){
					if($$('link')[i].getAttribute('href')=='/css/profile2.css'){
						cssAlreadyLoaded=true;
					}
				}
			}
			if(cssAlreadyLoaded==false){
			    var fileref=document.createElement("link");
                fileref.setAttribute("rel", "stylesheet");
                fileref.setAttribute("type", "text/css");
                fileref.setAttribute("media", "screen,print");
                fileref.setAttribute("href", '/css/profile2.css');
                $$('head')[0].appendChild(fileref);	
			}
		new Ajax.Updater('second_area','/profile/index/escort_id/'+id+'/refresh/1',{method:'get', onLoading:show_loading, asynchronous:true, evalScripts:true});
	}*/
	function main_menu_escort_click(city){
		//adtimer.stop();
		stopTopPanelTimer();
		new Ajax.Updater('second_area','/escorts/city/'+city+'/private/1/refresh/1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		
	}
	function main_menu_services_click(service){
		//adtimer.stop();
		stopTopPanelTimer();
		if(service==0){
		    new Ajax.Updater('second_area','/strippers?refresh=1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
		else{
			new Ajax.Updater('second_area','/escorts/service/'+service+'?refresh=1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
	}
	function main_menu_fantasies_click(fantasy){
		//adtimer.stop();
		stopTopPanelTimer();
		if(fantasy==0){
		    new Ajax.Updater('second_area','/dominatrix?refresh=1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
		else{
			new Ajax.Updater('second_area','/escorts/service/'+service+'?refresh=1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
	}
	function main_menu_parlours_click(isEstablishment){
		//adtimer.stop();
		stopTopPanelTimer();
		if(isEstablishment==1){
			var cssAlreadyLoaded=false;
			for(var i=0;i<$$('link').length;i++){
				if($$('link')[i].hasAttribute('href')){
					if($$('link')[i].getAttribute('href')=='/css/club_banner/club_banner.css'){
						cssAlreadyLoaded=true;
					}
				}
			}
			if(cssAlreadyLoaded==false){
			    var fileref=document.createElement("link");
                fileref.setAttribute("rel", "stylesheet");
                fileref.setAttribute("type", "text/css");
                fileref.setAttribute("media", "screen,print");
                fileref.setAttribute("href", '/css/club_banner/club_banner.css');
                $$('head')[0].appendChild(fileref);	
			}
		    new Ajax.Updater('second_area','/clubs_parlours?refresh=1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
		else{
			new Ajax.Updater('second_area','/escorts_search/clubs_parlours?refresh=1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
	}
	function main_menu_home_click(){
		stopTopPanelTimer();
		new Ajax.Updater('second_area','/index/ajaxUpdate3dcube?sequencenumber=3',{onLoading:show_loading, asynchronous:true, evalScripts:true});
	}
	function main_menu_sextoys_click(){
		stopTopPanelTimer();
		//adtimer.stop();
		new Ajax.Updater('second_area','/index/ajaxUpdate3dcube?sequencenumber=8',{onLoading:show_loading, asynchronous:true, evalScripts:true});
	}
	function main_menu_porn_click(){
		//adtimer.stop();
		stopTopPanelTimer();
		new Ajax.Updater('second_area','/index/ajaxUpdate3dcube?sequencenumber=9',{onLoading:show_loading, asynchronous:true, evalScripts:true});
	}
	function main_menu_male_escorts_click(){
		stopTopPanelTimer();
		new Ajax.Updater('second_area','/escorts/sex/Male+Escort/private/1/refresh/1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
	}
	function main_menu_transsexual_escorts_click(){
		stopTopPanelTimer();
		new Ajax.Updater('second_area','/escorts/sex/Transsexual/private/1/refresh/1',{onLoading:show_loading, asynchronous:true, evalScripts:true});
	}
	function main_menu_get_involved_click(involve){
		stopTopPanelTimer();
		if(involve=='0' || involve=='updates'){
			var cssAlreadyLoaded=false;
			for(var i=0;i<$$('link').length;i++){
				if($$('link')[i].hasAttribute('href')){
					if($$('link')[i].getAttribute('href')=='/css/signup2.css'){
						cssAlreadyLoaded=true;
					}
				}
			}
			if(cssAlreadyLoaded==false){
			    var fileref=document.createElement("link");
                fileref.setAttribute("rel", "stylesheet");
                fileref.setAttribute("type", "text/css");
                fileref.setAttribute("media", "screen,print");
                fileref.setAttribute("href", '/css/signup2.css');
                $$('head')[0].appendChild(fileref);
			}
			new Ajax.Updater('second_area','/subscriber/signup?refresh=1',{method:'get', onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
		else if(involve=='contact_us'){
			var cssAlreadyLoaded=false;
			for(var i=0;i<$$('link').length;i++){
				if($$('link')[i].hasAttribute('href')){
					if($$('link')[i].getAttribute('href')=='/css/contact2.css'){
						cssAlreadyLoaded=true;
					}
				}
			}
			if(cssAlreadyLoaded==false){
			    var fileref=document.createElement("link");
                fileref.setAttribute("rel", "stylesheet");
                fileref.setAttribute("type", "text/css");
                fileref.setAttribute("media", "screen,print");
                fileref.setAttribute("href", '/css/contact2.css');
                $$('head')[0].appendChild(fileref);
			}
			new Ajax.Updater('second_area','/contact?refresh=1',{method:'get', onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
		else if(involve=='message_board'){
			var cssAlreadyLoaded=false;
			for(var i=0;i<$$('link').length;i++){
				if($$('link')[i].hasAttribute('href')){
					if($$('link')[i].getAttribute('href')=='/css/message2.css'){
						cssAlreadyLoaded=true;
					}
				}
			}
			if(cssAlreadyLoaded==false){
			    var fileref=document.createElement("link");
                fileref.setAttribute("rel", "stylesheet");
                fileref.setAttribute("type", "text/css");
                fileref.setAttribute("media", "screen,print");
                fileref.setAttribute("href", '/css/message2.css');
                $$('head')[0].appendChild(fileref);
			}
			new Ajax.Updater('second_area','/message?refresh=1',{method:'get', onLoading:show_loading, asynchronous:true, evalScripts:true});
		}
	}
	function stopTopPanelTimer(){
		if(typeof(toppaneltimer)!='undefined'){
		    toppaneltimer.stop();
		}
    }
    function toGalleryView(){
		$('gallery_view').style.display='block';
		$('standard_view').style.display='none';
		new Ajax.Updater('','/set_gallery_view',{asynchronous:true, evalScripts:true});
		//resetHeight();
	}
	function toStandardView(){
		$('gallery_view').style.display='none';
		$('standard_view').style.display='block';
		new Ajax.Updater('','/set_standard_view',{asynchronous:true, evalScripts:true});
		//resetHeight();
	}
