function toggleDisplay(id){
	togID = document.getElementById(id)
	if(togID.style.display == "block"){
		togID.style.display = "none"
	} else {
	togID.style.display = "block";
	}
}
function jointJumpVT(){
	jj = document.jointj.jump.value;
	window.location.href = "http://www.vegastripping.com/lasvegas/"+jj+"/";
}
function hotPop(){
	h = document.getElementById('whatshot')
	h.style.display="block";
}
function sendPage(){
	sendername = document.sendtofriendform.sendername.value;
	senderemail = document.sendtofriendform.senderemail.value;
	recipientname = document.sendtofriendform.recipientname.value;
	recipientemail = document.sendtofriendform.recipientemail.value;
	sendurl = document.sendtofriendform.sendurl.value;	
	var url = "/sendtofriend/stf_thankyou.php?sendername=" + sendername + "&senderemail=" + senderemail + "&recipientname=" + recipientname + "&recipientemail=" + recipientemail + "&sendurl=" + sendurl + "&domain=fj";
	ajaxRequest(url,'stftarget');
}
function ajaxRequest(url,trgt) {
	aRequest = false;
	// FF, Safari
	if(window.XMLHttpRequest) {
		try {
			aRequest = new XMLHttpRequest();
		} catch(e) {
			aRequest = false;
		}
	// IE
	} else if(window.ActiveXObject) {
		try {
			aRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				aRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				aRequest = false;
			}
		}
	}
	
	aRequest.open("GET", url,true);
		aRequest.onreadystatechange = function() 
		{
			if (aRequest.readyState<=3) {
				oLoad = document.getElementById(trgt);
				oLoad.innerHTML = '<div class=loading>Loading</div>';
			}
			if (aRequest.readyState==4) {
				oDoc = document.getElementById(trgt);
				oDoc.innerHTML = aRequest.responseText;
			}
		}
		aRequest.send(null);
	}
function addFavorite(url){
	ajaxRequest(url,'addfavorite');	
}
function favoriteDoneIt(fid,target,done){
	var url = "/myvegas/ajax/_doneit.php?fid=" + fid + "&done=" + done + "&target=" + target + "&doneit=true";
	ajaxRequest(url,target);
	new Effect.Highlight(target, {startcolor:'#ffffff', endcolor:'#19181b' , restorecolor:'#19181b'})	
}
function rateFavorite(rating,fid,target){
	var url = "/myvegas/ajax/_rateit.php?fid=" + fid + "&rating=" + rating + "&target=" + target + "&rateit=true";
	ajaxRequest(url,target);
	new Effect.Highlight(target, {startcolor:'#ffffff', endcolor:'#19181b' , restorecolor:'#19181b'})	
}
function faveaddFavorite(jid,target,implodetarget){
	var url = "/myvegas/ajax/_favorites_add.php?jid=" + jid + "&target=" + target + "&implodetarget=" + implodetarget + "&rateit=true";
	ajaxRequest(url,target);
	new Effect.Highlight(target, {startcolor:'#ffffff', endcolor:'#19181b' , restorecolor:'#19181b'})	
	new Effect.Highlight(implodetarget, {startcolor:'#ffffff', endcolor:'#19181b' , restorecolor:'#19181b'})	
	new Effect.Fade(implodetarget, {duration:2});
}
function removeFavorite(fid,target){
	var url = "/myvegas/ajax/_favorites_remove.php?fid=" + fid + "&target=" + target + "&dumpit=true";
	ajaxRequest(url,target);
	new Effect.Highlight(target, {startcolor:'#ffffff', endcolor:'#19181b' , restorecolor:'#19181b'})	
	new Effect.Shake(target,30);
	new Effect.Fade(target, {duration:1});
}

function favoriteComment(fid,target,formname){
	comment = document.forms[formname].comment.value;
	var url = "/myvegas/ajax/_commentit.php?fid=" + fid + "&target=" + target + "&comment=" + comment + "&commentit=true";
	ajaxRequest(url,target);
	new Effect.Highlight('h4_'+fid, {startcolor:'#ffffff', endcolor:'#291F2D' , restorecolor:'#291F2D'})	
	notify = document.getElementById('h4_'+fid);
	notify.innerHTML = "<div align=\"center\">Review Updated</div>";
}
function favoriteDice(status,dicevalue,id){
	diceover = document.getElementById(id)
	diceover.style.backgroundImage = 'url(../images/sys/diceratings/d'+dicevalue+'_'+status+'.gif)';
}
function implodeFavorite(fid){
	var url = "/myvegas/ajax/_implode.php?fid=" + fid + "&target=r_" + fid + "&implodeit=true";
	ajaxRequest(url,'r_'+fid);
	new Effect.Highlight('faveslot_'+fid, {startcolor:'#D29F5C', endcolor:'#19181b' , restorecolor:'#19181b'})
	new Effect.Shake('faveslot_'+fid,30);
	new Effect.Shrink('faveslot_'+fid, {duration:2});
}
function implodeShoutout(cid){
	var url = "/myvegas/ajax/_implode_shoutout.php?cid=" + cid + "&target=shout_" + cid + "&implodeit=true";
	ajaxRequest(url,'shout_'+cid);
	new Effect.Highlight('shout_'+cid, {startcolor:'#D29F5C', endcolor:'#19181b' , restorecolor:'#19181b'})
	new Effect.Shake('shout_'+cid,30);
	new Effect.Shrink('shout_'+cid, {duration:2});
}
function approveShoutout(cid){
	var url = "/myvegas/ajax/_approve_shoutout.php?cid=" + cid + "&target=approveshout_" + cid + "&action=a";
	ajaxRequest(url,'approveshout_'+cid);
	new Effect.Highlight('approveshout_'+cid, {startcolor:'#D29F5C', endcolor:'#19181b' , restorecolor:'#19181b'})
}
function updateAvatar(avatar,username){
	var url = "/myvegas/ajax/_update_avatar.php?avatar=" + avatar + "&username=" + username + "&update=true";
	ajaxRequest(url,'current-avatar');
	new Effect.Highlight('current-avatar', {startcolor:'#D29F5C', endcolor:'#19181b' , restorecolor:'#19181b'})	
}
function updateStyle(style,username){
	var url = "/myvegas/ajax/_update_style.php?style=" + style + "&username=" + username + "&update=true";
	ajaxRequest(url,'current-style');
	new Effect.Highlight('current-style', {startcolor:'#D29F5C', endcolor:'#19181b' , restorecolor:'#19181b'})	
}
function makePublic(target){
	var url = "/myvegas/ajax/_makepublic.php?target=" + target +"&public=1";
	ajaxRequest(url,target);
	new Effect.Highlight(target, {startcolor:'#D29F5C', endcolor:'#19181b' , restorecolor:'#19181b'})		
}
function popupWindow(url,wName,wPrefs){
	var newWindow = window.open(url, wName, wPrefs); 
}
function showSB(){
	togID = document.getElementById('gss');
	togID.style.display = "block";	
}
function hideSB(){
//	alert('hello!');				
	document.getElementById('gss').style.display = "none";	
}

