function openSpaceRadio(url){newwindow=window.open(url,'spaceradio','menubar=no,toolbar=no,scrollbars=no,location=no,width=626,height=490');if(window.focus){newwindow.focus()}
return false;}
function openSpaceVideo(url){newwindow=window.open(url,'spacevideo','menubar=no,toolbar=no,scrollbars=no,location=no,width=762,height=500');if(window.focus){newwindow.focus()}
return false;}
function show(method,galleryid,albumid,level,image_file,image_id,album_name,album_date,image_count,image_path){var params='&image_id='+image_id+'&galleryid='+galleryid+'&albumid='+albumid+'&image_count='+image_count;switch(method){case'purchase':tb_show('','purchase_form.php?height=230&width=505'+params,'');break;default:tb_show('','login_form.php?height=230&width=505'+params,'');break;}
alert(url);alert(TB_WIDTH);alert(TB_HEIGHT);alert(method);return;}
function getElement(aID){return(document.getElementById)?document.getElementById(aID):document.all[aID];}
function getHTTPObject(){var xmlhttp=false;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}
else if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");if(!xmlhttp){xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}}
return xmlhttp;}
function AjaxGetValidate(phpscript,divtag,vars,show,mode,gooddiv){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results=="Login Failure, please try again"){getElement(divtag).innerHTML=results;}else{getElement(gooddiv).innerHTML=results;}}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);return;}
function AjaxGetAlert(phpscript,divtag,vars,show){var http=false;http=getHTTPObject();http.open("GET",phpscript,false);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;alert(results);}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);}
function AjaxGetValidateZoom(phpscript,divtag,vars,show,mode,gooddiv,galleryid,albumid,photonum){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results=="Login Failure, please try again"){getElement(divtag).innerHTML=results;}else{window.location="http://spaceentertainment.com/photogallery/index4.php?galleryid="+galleryid+"&albumid="+albumid+"&photonum="+photonum;}}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);return;}
function AjaxGet(phpscript,divtag,vars,show,mode){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){if(divtag!=""){var results="";results=http.responseText;getElement(divtag).innerHTML=results;}}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);return;}
function AjaxGetFollowup(phpscript,divtag,vars,show,mode,followupurl){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){if(divtag!=""){var results="";results=http.responseText;getElement(divtag).innerHTML=results;}
window.location=followupurl;}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);return;}
function refresh_last_rating(){var AJAXtotalurl="ajax/Ajax_Last_Rating.php";AjaxGet(AJAXtotalurl,"last_rating",1,true,true);}
function AjaxGetRating(phpscript,divtag,vars,show,mode){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){if(divtag!=""){var results="";results=http.responseText;getElement(divtag).innerHTML=results;refresh_last_rating();}}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);return;}
function AjaxGetCart(phpscript,divtag,vars,show,mode){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;getElement(divtag).innerHTML=results;var AJAXtotalurl="ajax/Ajax_show_cart_totals.php";AjaxGet(AJAXtotalurl,"total",1,true,true);}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);return;}
function AjaxGetLogout(phpscript,divtag,vars,show){var http=false;http=getHTTPObject();http.open("GET",phpscript,false);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){window.location="http://spaceentertainment.com/photogallery/";}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);}
function AjaxGetRefresh(phpscript,divtag,vars,show){var http=false;http=getHTTPObject();http.open("GET",phpscript,false);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){window.location.reload();}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);}
function AjaxGetPayment(phpscript,divtag,vars,show,mode,successurl){var http=false;http=getHTTPObject();http.open("GET",phpscript,mode);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results=="This transaction has been approved."){window.location=successurl;}else{getElement(divtag).innerHTML=results;}}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);}
function main_login(){var user=document.getElementById('main_email').value;var pass=document.getElementById('main_pass').value;if(user==''||pass==''){alert("Email and Password is required.");}else{var script="ajax/Ajax_validate.php?username="+user+"&password="+pass;AjaxGetRefresh(script,'',1,false,false);document.getElementById('main_email').value="";document.getElementById('main_pass').value="";}
return;}
function home_login(){var user=document.getElementById('main_email').value;var pass=document.getElementById('main_pass').value;if(user==''||pass==''){alert("Email and Password is required.");}else{var script="ajax/Ajax_validate.php?username="+user+"&password="+pass;AjaxGetRefresh(script,'',1,false,false);document.getElementById('main_email').value="";document.getElementById('main_pass').value="";}
return;}
function login(){var email=getElement("email").value;var pass=getElement("password").value;if(email==''||pass==''){alert("Email and Password is required.");}else{var AJAXurl="ajax/Ajax_validate.php?email="+email+"&pass="+pass;AjaxGetLogin(AJAXurl,"notice",1,false,"https://www.liquidplanetwaterpark.com/checkout_review.php");}
return;}
function popup(){var userid=document.getElementById('user_id').value;if(userid==""||userid=="0"){var user=parent.document.getElementById('pop_username').value;var pass=parent.document.getElementById('pop_password').value;if(user!=''&&pass!=''){var http=false;http=getHTTPObject();var script="ajax/Ajax_validate.php?username="+user+"&password="+pass;http.open("GET",script,false);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results!="fail"){tb_remove();document.getElementById('user_id').value=results;purchase_album();}else{document.getElementById('login_error').innerHTML="";}}else{var msg="Error: "+http.status;alert(msg);}}}
http.send(null);}}else{purchase_album();}
return;}
function popup_submit(){var email=document.getElementById('pop_username').value;var pass=document.getElementById('pop_password').value;if(email==''||pass==''){alert("Email and Password is required.");}else{popup();}
return;}
function zoom_submit(){var email=document.getElementById('pop_username2').value;var pass=document.getElementById('pop_password2').value;var albumid=document.getElementById('pop_albumid').value;var galleryid=document.getElementById('pop_galleryid').value;var photonum=document.getElementById('pop_photonum').value;if(email==''||pass==''){alert("Valid email and Password is required.");}else{var http=false;http=getHTTPObject();var script="ajax/Ajax_validate.php?username="+email+"&password="+pass;http.open("GET",script,false);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results!="fail"){document.getElementById('popup').className="zoom_off";document.getElementById('user_id').value=results;window.location="http://spaceentertainment.com/photogallery/index4.php?albumid="+albumid+"&galleryid="+galleryid+"&photonum="+photonum;}else{document.getElementById('login_error').innerHTML="";}}else{var msg="Error: "+http.status;alert(msg);}}}
http.send(null);zoom(albumid,galleryid,photonum);}
return;}
function zoom(albumid,galleryid,photonum){document.getElementById('pop_albumid').value=albumid;document.getElementById('pop_galleryid').value=galleryid;document.getElementById('pop_photonum').value=photonum;var userid=document.getElementById('user_id').value;if(userid==""||userid=="0"){}else{window.location="http://spaceentertainment.com/photogallery/index4.php?albumid="+albumid+"&galleryid="+galleryid+"&photonum="+photonum;}}
function old_zoom(albumid,galleryid,photonum){var userid=document.getElementById('user_id').value;if(userid==""||userid=="0"){var user=document.getElementById('pop_username').value;var pass=document.getElementById('pop_password').value;var http=false;http=getHTTPObject();var script="ajax/Ajax_validate.php?username="+user+"&password="+pass;http.open("GET",script,false);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results!="fail"){document.getElementById('popup').className="popup_off";document.getElementById('user_id').value=results;window.location="http://spaceentertainment.com/photogallery/index4.php?albumid="+albumid+"&galleryid="+galleryid+"&photonum="+photonum;}else{document.getElementById('login_error').innerHTML="";}}else{var msg="Error: "+http.status;alert(msg);}}}
http.send(null);}else{window.location="http://spaceentertainment.com/photogallery/index4.php?albumid="+albumid+"&galleryid="+galleryid+"&photonum="+photonum;}
return;}
function logout_home(){var AJAXurl="ajax/Ajax_logout.php";AjaxGetLogout(AJAXurl,'',1,true,true);}
function add_to_cart(productid,qtyfld){var ordqty=getElement(qtyfld).value;var stat="qty_info_"+productid;var AJAXurl="ajax/Ajax_add_to_order.php?productid="+productid+"&qty="+ordqty;AjaxGetCart(AJAXurl,stat,1,true,true);}
function sendpayment(){var ccnum=getElement("CCNumber").value;var ccverify=getElement("CCVerify").value;var ccexpmon=getElement("CCExpireMonth").value;var ccexpyear=getElement("CCExpireYear").value;var ccfname=getElement("CCFirstNameOnCard").value;var cclname=getElement("CCLastNameOnCard").value;var ccaddress=getElement("BillingAddress").value;var cccity=getElement("BillingCity").value;var ccstate=getElement("BillingState").value;var cczip=getElement("BillingZip").value;var AJAXurl="ajax/Ajax_payment.php?ccnum="+ccnum+"&ccverify="+ccverify+"&ccexpmon="+ccexpmon+"&ccexpyear="+ccexpyear+"&ccfname="+ccfname+"&cclname="+cclname+"&ccaddress="+ccaddress+"&cccity="+cccity+"&ccstate="+ccstate+"&cczip="+cczip;AjaxGetPayment(AJAXurl,"payment",1,true,true,"checkout_success.php");}
function checkout(){window.location="https://www.liquidplanetwaterpark.com/checkout.php";}
function checkout_payment(){window.location="https://www.liquidplanetwaterpark.com/checkout_payment.php";}
function AjaxGetLogin(phpscript,divtag,vars,show,successurl){var http=false;http=getHTTPObject();http.open("GET",phpscript,true);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var results="";results=http.responseText;if(results=="ok"){window.location=successurl;}else{getElement(divtag).innerHTML=results;}}else{var msg="Error: "+http.status+" Function/r/n script="+phpscript+" divtag=";msg+=divtag+" vars="+vars+" show="+show;alert(msg);}}}
http.send(null);}
function delete_item(orderdetailsid){var AJAXurl="ajax/Ajax_delete_from_order.php?orderdetailsid="+orderdetailsid;AjaxGetRefresh(AJAXurl,"deleted",1,true,true);}
function loginreqest(){document.getElementById('popupbox').style.visibility="visible";return false;}
function closefrm(){document.getElementById('popupbox').style.visibility="hidden";return false;}
function viewphoto(photoid){document.getElementById('popup').className="popup_off";}
function buyphoto(photoid){alert("Photo added to cart");}
function close_popup(){document.getElementById('popup').className="popup_off";document.getElementById('fade').style.display='none';}
function clickphoto(photoid){window.location='http://www.mydev2u.com/all_photos.php?aid='+photoid;}
function first(albumx,photonumx){var album=getElement("album_num").value;var pnum=(getElement("photo_num").value)*1;var pcnt=(getElement("photo_cnt").value)*1;var gallery=getElement("gallery_num").value;newnum=0;var AJAXurl="ajax/Ajax_block.php?albumid="+album+"&gallery="+gallery+"&photonum="+newnum+"&action=next";var followupurl="http://spaceentertainment.com/photogallery/index4.php?galleryid="+gallery+"&albumid="+album+"&photonum="+newnum;AjaxGetFollowup(AJAXurl,"image_container",1,true,true,followupurl);}
function last(){var album=getElement("album_num").value;var pnum=(getElement("photo_num").value)*1;var pcnt=(getElement("photo_cnt").value)*1;var gallery=getElement("gallery_num").value;newnum=pcnt-1;var AJAXurl="ajax/Ajax_block.php?albumid="+album+"&gallery="+gallery+"&photonum="+newnum+"&action=next";var followupurl="http://spaceentertainment.com/photogallery/index4.php?galleryid="+gallery+"&albumid="+album+"&photonum="+newnum;AjaxGetFollowup(AJAXurl,"image_container",1,true,true,followupurl);}
function previous(){var album=getElement("album_num").value;var pnum=(getElement("photo_num").value)*1;var pcnt=(getElement("photo_cnt").value)*1;var gallery=getElement("gallery_num").value;var newnum=(pnum-1)*1;if(newnum<=0){newnum=pcnt-1;}
var AJAXurl="ajax/Ajax_block.php?albumid="+album+"&gallery="+gallery+"&photonum="+newnum+"&action=next";var followupurl="http://spaceentertainment.com/photogallery/index4.php?galleryid="+gallery+"&albumid="+album+"&photonum="+newnum;AjaxGetFollowup(AJAXurl,"image_container",1,true,true,followupurl);}
function next(){var album=getElement("album_num").value;var pnum=(getElement("photo_num").value)*1;var pcnt=(getElement("photo_cnt").value)*1;var gallery=getElement("gallery_num").value;var newnum=(pnum+1)*1;if(newnum>=pcnt){newnum=0;}
var AJAXurl="ajax/Ajax_block.php?albumid="+album+"&gallery="+gallery+"&photonum="+newnum+"&action=next";var followupurl="http://spaceentertainment.com/photogallery/index4.php?galleryid="+gallery+"&albumid="+album+"&photonum="+newnum;AjaxGetFollowup(AJAXurl,"image_container",1,true,true,followupurl);}
function clear_cart(orderid){var AJAXurl="ajax/Ajax_clear_cart.php?orderid="+orderid;AjaxGetRefresh(AJAXurl,"results",1,true,true);}
function doSomething()
{next();}
function purchase_popup(gallery_id,album_id,level,image_file,image_id,album_title,album_date,image_count,image_path){document.getElementById('purchase_image_id').value=image_id;document.getElementById('purchase_image_file').value=image_file;document.getElementById('purchase_album_id').value=album_id;document.getElementById('purchase_gallery_id').value=gallery_id;document.getElementById('purchase_from_level').value=level;document.getElementById('purchase_album_name').value=album_title;document.getElementById('purchase_album_date').value=album_date;document.getElementById('purchase_image_count').value=image_count;document.getElementById('purchase_image_path').value=image_path;document.getElementById('p_album_name').innerHTML=album_title;document.getElementById('p_album_date').innerHTML=album_date;document.getElementById('p_album_count').innerHTML=image_count;var fn="http://www.pashaboston.net/photogallery/photos/thumb/"+image_file;document.getElementById('p_image').innerHTML='<img alt="Image Details" height="131" src="'+fn+'" width="189" />';popup();return;}
function getLogin(){}
function checkLogin(){var userid=document.getElementById('user_id').value;if(userid==""||userid=="0"){getLogin();}}
function purchase_close(){tb_remove();window.location.reload();}
function purchase_album(){}
function buy_single(image_id,gallery_id,album_id){var image_file=document.getElementById('purchase_image_file').value;var level=document.getElementById('purchase_from_level').value;var AJAXurl="ajax/Ajax_buyphoto.php?image_id="+image_id+"&album_id="+album_id+"&gallery_id="+gallery_id+"&level="+level;AjaxGet(AJAXurl,'wow',1,false,false);purchase_close();}
function buy_album(image_id,gallery_id,album_id){var image_file=document.getElementById('purchase_image_file').value;var level=document.getElementById('purchase_from_level').value;var AJAXurl="ajax/Ajax_buyalbum.php?image_id="+image_id+"&album_id="+album_id+"&gallery_id="+gallery_id+"&level="+level;AjaxGet(AJAXurl,'wow',1,false,false);purchase_close();}
function rate_this(imageid,albumid,galleryid,sessionid,userid,orderid,rating,location){var script="ajax/Ajax_rate_next_photo.php?imageid="+imageid+"&albumid="+albumid+"&galleryid="+galleryid+"&sessionid="+sessionid+"&userid="+userid+"&orderid="+orderid+"&rating="+rating+"&location="+location;var dest_div='rating_block';AjaxGet(script,dest_div,1,true,true);}
function rate_next(imageid,albumid,galleryid,sessionid,userid,orderid,rating,location){var script="ajax/Ajax_rate_next_photo.php?imageid="+imageid+"&albumid="+albumid+"&galleryid="+galleryid+"&sessionid="+sessionid+"&userid="+userid+"&orderid="+orderid+"&rating="+rating+"&location="+location;var dest_div='rating_block';AjaxGet(script,dest_div,1,true,true);}