   function goto()
		{
      		location.href = '<?= $backdom ?>';
    	}



	function openContent(page, redirect, width)
		{					
			Dialog.alert({url: page+".php?page="+redirect, options: {method: 'get'}}, 
            {className: "alphacube", width: width, okLabel: "Close"});		
		}
	//WindowCloseKey.init();
	
	
	
	function openMobile(id, credits, myxer1, myxer2, type)
		{
			//alert (id + " " + credits + " " + myxer1 + " " + myxer2 + " " + type);
			var win = new Window({className: "alphacube",  width:300, height:210, zIndex: 100, resizable: true, title: "MOBILE CONTENT", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true})			
			win.getContent().innerHTML = "<?= $moby ?>"; 
													  
			document.theForm.content_id.value = id;
			if(credits == -1)
				{															
					alert("Your phone is compatible if you successfully download and install this ringtone or wallpaper.\nFill out the following form to continue with testing your phone's compatibility. There is no charge for this.");
				}
			document.theForm.howmanycr.value = credits;
			document.theForm.myxer1.value = myxer1;
			document.theForm.myxer2.value = myxer2;
			document.theForm.type.value = type;
			
			win.setDestroyOnClose(); 
			win.showCenter();
		}
	
	
	
	
	function sendDownload(pid,cost)
		{					
			var win = new Window({className: "alphacube", title: "DOWNLOADING", zIndex:102, top:50, left:100, width:360, height:535, url: "sendDownload.php?pid="+ pid +"&cost="+ cost +"", showEffectOptions: {duration:1.5}})
			win.showCenter();			
		}
		
		
		
		
	function openSecureCredits(page,pid)
		{					
			/*var win = new Window({className: "alphacube", title: "SSL SECURED :: BUY CREDITS", zIndex:102, top:50, left:100, width:650, height:535, url: "https://secure.adamari.net/credits.php?pid="+ pid +"", showEffectOptions: {duration:1.5}})
			win.showCenter();*/			
			Dialog.alert({url: "credits.php?pid="+ pid +"&pageDirect=" + page + "", options: {method: 'get'}}, 
            {className: "alphacube", width:360, okLabel: "Close"});	
		}
		
		
		
		
	function openUrlp()
		{
			var win = new Window({className: "alphacube", title: "PASSWORD REMINDER", zIndex:101, top:80, left:100, width:290, height:110, url: "pass.php", showEffectOptions: {duration:1.5}})
			win.showCenter();			
		}
	
	
	
	function openUrlr()
		{
			var win = new Window({className: "alphacube", title: "", zIndex:101, top:500, left:50, width:650, height:525, url: "register.php", showEffectOptions: {duration:1.5}})
			win.showCenter();			
		}
	
	
		
	function openUrly(id, section, page, title)
		{
			//alert(section); //SECTION:: 1 for news, 2 for events
			var win = new Window({className: "alphacube", title: title, top:70, left:100, width:330, height:255, url: "" + page + ".php?id="+id+"&section="+section+"", showEffectOptions: {duration:1.5}})
			win.showCenter();			
		}
	
	
		
	function openUrly2(page, title)
		{
			var win = new Window({className: "alphacube", title: title, top:70, left:100, width:625, height:550, url: ""+ page +"", showEffectOptions: {duration:1.5}})
			win.showCenter();			
		}	
		
		
		
	function openLargeBitch(id, wid, hei, title, page)
		{
			Dialog.alert("<img onClick=Dialog.closeInfo() src=images/events/bg/"+id+".jpg border=1>", 
             {width:wid, height:hei, okLabel: "CLOSE", 
              ok:function(win) {debug("validate alert panel"); return true;}});		
		}
	
	function openLargeBitchProducts(id, wid, hei, title, page)
		{
			Dialog.alert("<img onclick=Dialog.closeInfo() src=\"images/shop/products/"+page+"/"+id+".jpg\" border=\"1\">", 
             {width:wid, height:hei, okLabel: "CLOSE", 
              ok:function(win) {debug("validate alert panel"); return true;}});		
		}
	
	function openLargeBitchEvents(id, wid, hei, title, page)
		{
			Dialog.alert("<img onclick=Dialog.closeInfo() src=\"images/events/"+page+"/"+id+".jpg\" border=\"1\">", 
             {width:wid, height:hei, okLabel: "CLOSE", 
              ok:function(win) {debug("validate alert panel"); return true;}});		
		}
		
		
	function userCarrierChange()
		{
			document.getElementById("none").style.display="none";
			document.getElementById("cingular").style.display="none";
			document.getElementById("alltel").style.display="none";
			document.getElementById("boost").style.display="none";
			document.getElementById("midwest").style.display="none";
			document.getElementById("nextel").style.display="none";
			document.getElementById("sprint").style.display="none";
			document.getElementById("tmobile").style.display="none";
			document.getElementById("virgin").style.display="none";														
													
			var sel = document.getElementById("carrier").options[document.getElementById("carrier").selectedIndex].value;
			document.getElementById(sel).style.display="block";
		}
	
	
	
function bookmark(url, title)
	{
		url = "http://www.adamari.net";
	  // if we're internet explorer 4 or greater
	  if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4))
	  {
		window.external.AddFavorite(url,title);
	  }
	  // otherwise, if this is a Netscape variant
	  else if (navigator.appName == 'Netscape' && window.sidebar && window.sidebar.addPanel)
	  {
		window.sidebar.addPanel(title, url, '');
	  }
	  // if this is Opera
	  else if (window.opera && window.print)
	  {
		alert('Press Ctrl+Shift+D to bookmark this page.');
	  }
	  // if this is safari
	  else if (navigator.userAgent.toLowerCase().indexOf('safari') != -1 && navigator.userAgent.toLowerCase().indexOf('mac') != -1)
	  {
		alert('Press Command+D to bookmark this page');
	  }
	  else
	  {
		alert('Press Ctrl+D (Netscape) or Ctrl+Shift+D (Opera) to bookmark this page.');
	  }
	}		













<!--AJAX-->
function createRequestObject() 
	{
    	var ro;
    	var browser = navigator.appName;
    	if(browser == "Microsoft Internet Explorer") ro = new ActiveXObject("Microsoft.XMLHTTP");
    	else  ro = new XMLHttpRequest();    
    	return ro;
	}

var http = createRequestObject();

function like(by, whatid, what)
	{
    	var url = 'like.php?action=like&by='+by+'&whatid='+whatid+'&what='+what;
    	http.open('get', url);
    	http.onreadystatechange = handleLikeResponse;
    	http.send(null);
	}

function unlike(by)
	{
    	var url = 'like.php?action=unlike&by='+by;
    	http.open('get', url);
    	http.onreadystatechange = handleLikeResponse;
    	http.send(null);
	}

function onNotify(by, whatid, what)
	{
    	var url = 'autoNotify.php?action=turnon&user_id='+by+'&product_id='+whatid+'&field_type='+what;
    	http.open('get', url);
    	http.onreadystatechange = handleLikeResponse2;
    	http.send(null);
	}

function offNotify(by)
	{
    	var url = 'autoNotify.php?action=turnoff&user_id='+by;
    	http.open('get', url);
    	http.onreadystatechange = handleLikeResponse2;
    	http.send(null);
	}

function handleLikeResponse() 
	{
    	if(http.readyState == 4)
			{
        		var response = http.responseText;
				//alert(response);
				var UPDATE = new Array();
				//response.indexOf('|' != -1)
				UPDATE = response.split('|');
				
				if(UPDATE[0] == "like")
					{
						if(UPDATE[3] == "ds_products")
							{
								document.getElementById('LikeStatus').innerHTML = "<a href=\"javascript:;\" onclick=\"unlike("+UPDATE[1]+")\"><font color=\"#979797\">Unlike</font></a>";
								
								document.getElementById('LikeStatusIcon').innerHTML = "<a title=\"Unlike This\" ><img src=\"/images/like.gif\" width=\"13\" height=\"12\" alt=\"Unlike This\" border=\"0\" onclick=\"unlike("+UPDATE[1]+")\" /></a>";
								
								
								if(UPDATE[2] > 1)
									{
										document.getElementById('LikeStatusNumber').innerHTML = "<font color=\"#979797\">| You and <b>"+UPDATE[2]+"</b> People Like This</font>";
									}
								else
									{
										document.getElementById('LikeStatusNumber').innerHTML = "<font color=\"#979797\">| You Like This</font>";	
									}
							}
						else
							{								
								var l1 = "b"+UPDATE[4];
								var l2 = "a"+UPDATE[4];
								var l3 = "c"+UPDATE[4];
								
								document.getElementById(l1).innerHTML = "<a href=\"javascript:;\" onclick=\"unlike("+UPDATE[1]+")\"><font color=\"#979797\">Unlike</font></a>";
								
								document.getElementById(l2).innerHTML = "<a title=\"Unlike This\" ><img src=\"/images/like.gif\" width=\"13\" height=\"12\" alt=\"Unlike This\" border=\"0\" onclick=\"unlike("+UPDATE[1]+")\" /></a>";
								
								if(UPDATE[2] > 1)
									{
										document.getElementById(l3).innerHTML = "<font color=\"#979797\">| You and <b>"+UPDATE[2]+"</b> People Like This</font>";
									}
								else
									{
										document.getElementById(l3).innerHTML = "<font color=\"#979797\">| You Like This</font>";
									}
								
								
							}
					}
				else if(UPDATE[0] == "unlike")	
					{
						if(UPDATE[3] == "ds_products")
							{
								document.getElementById('LikeStatus').innerHTML = "<a href=\"javascript:;\" onclick=\"like("+UPDATE[1]+", "+UPDATE[2]+", '"+UPDATE[3]+"')\"><font color=\"#979797\">Like</font></a>";
								
								document.getElementById('LikeStatusIcon').innerHTML = "<a title=\"I Like This\" ><img src=\"/images/like.gif\" width=\"13\" height=\"12\" alt=\"I Like This\" border=\"0\" onclick=\"like("+UPDATE[1]+", "+UPDATE[2]+", '"+UPDATE[3]+"')\" /></a>";
								if(UPDATE[4] > 1)
									{
										document.getElementById('LikeStatusNumber').innerHTML = "<font color=\"#979797\">| <b>"+UPDATE[4]+"</b> People Like This</font>";
									}
								else
									{
										document.getElementById('LikeStatusNumber').innerHTML = "";
									}
								
							}
						else
							{
								var l1 = "b"+UPDATE[2];
								var l2 = "a"+UPDATE[2];
								var l3 = "c"+UPDATE[2];
								
								document.getElementById(l1).innerHTML = "<a href=\"javascript:;\" onclick=\"like("+UPDATE[1]+", "+UPDATE[2]+", '"+UPDATE[3]+"')\"><font color=\"#979797\">Like</font></a>";
								
								document.getElementById(l2).innerHTML = "<a title=\"I Like This\" ><img src=\"/images/like.gif\" width=\"13\" height=\"12\" alt=\"I Like This\" border=\"0\" onclick=\"like("+UPDATE[1]+", "+UPDATE[2]+", '"+UPDATE[3]+"')\" /></a>";
								
								
								if(UPDATE[4] > 1)
									{
										document.getElementById(l3).innerHTML = "<font color=\"#979797\">| <b>"+UPDATE[4]+"</b> People Like This</font>";
									}
								else
									{
										document.getElementById(l3).innerHTML = "";
									}
							}							
					}
				else 
					{
						document.getElementById('LikeStatus').innerHTML = "Error";
					}
    		}
	}


function handleLikeResponse2() 
	{
    	if(http.readyState == 4)
			{
        		var response = http.responseText;
				//alert(response);
				var UPDATE = new Array();
				UPDATE = response.split('|');
				
				if(UPDATE[0] > 0)
					{
						document.getElementById('NotifyBox').innerHTML = "<input type=\"checkbox\" name=\"Notify\" onclick=\"offNotify("+ response +")\" checked />";
						
						alert("Artist Notification Turned On!");
					}
				else	
					{
						document.getElementById('NotifyBox').innerHTML = "<input type=\"checkbox\" name=\"Notify\" onclick=\"onNotify('"+UPDATE[1]+"', '"+UPDATE[2]+"', '"+UPDATE[3]+"')\" />";
						
						alert("Artist Notification Turned Off!");
					}
    		}
	}
<!--END AJAX-->
