function changeContent (content,sub) {
	
				$("#dheadline").fadeOut(10,function(){
				$("#dheadline").html("<h2>"+content+"</h2><h3>"+sub+"</h3>").fadeIn(10);
				});
	
		} 
		 
function resetContent () {
		
				$("#dheadline").html("<h2>LATEST ISSUES</h2><h3><a href='?article_id=32'>View All</a></h3>").fadeIn(10);
		
		}
		
		
function resetContentInIssue (name) {
		
				$("#dheadline").html("<h2>"+name+"</h2><h3>Published in Destructed Magazine</h3>").fadeIn(10);
		
		}
		
		
function fadeBackgroundColor () {

          
		  $("#justRequested").fadeOut(1,function(){
				$("#justRequested").fadeIn(1500);
				});

                       
					
                    
}

function fadeContentBox () {
	
	 $(".com-tab-cntnt").fadeIn(1000);
	
}

function fadeOldMessages() {
	
	 $(".listboxall_read").hide();
	 
	 
								
	
	
}



function expandOldMessage (message) {
	

    $(message).slideToggle(600);

	

}



function fadeUserPic() {
	
	 $(".com-tab-cntnt-3").animate({opacity: "0.0"}, 1);
	 $(".com-tab-cntnt-3").animate({opacity: "1.0"}, 1000);
	

	
}



function fadeUsernav () {

       
  $("#one_column_artisthome_1").toggle();
   $("#one_column_artisthome_2").toggle();
    $("#one_column_artisthome_3").toggle();
	 $("#one_column_artisthome_4").toggle();
 
				$("#one_column_artisthome_1").fadeIn(1500);
			

				$("#one_column_artisthome_2").fadeIn(2000);
		
	  
				$("#one_column_artisthome_3").fadeIn(2500);
			
	     
				$("#one_column_artisthome_4").fadeIn(3000, function () {
																	 
												 var blinkCount = 2*2;// two blinks, 4*2 for four blinks
do {
   $('#usernav')['fade'+(blinkCount%2==0?'Out':'In')](130);
} while (--blinkCount);
					 
																	 
																
				});
                       
					
                    
}


function fadeBackgroundColorOut (source) {

          
		  $("#justRequested").fadeOut(3000, function () {
					
					if (source == 0) {
					
					top.location="index.php?article_id=5";	}		
					
					if (source == 1) {
					
					top.location="index.php?article_id=5&tab=1";	}
					
					if (source == 2) {
					
					top.location="index.php?article_id=5&tab=2";	}
					
					
					
					
					});

                       
					
                    
}


		
		 function resetContentArtists () {
		
				$("#dheadline").html("<h2>Artistlist</h2><h3>These are Destructed.</h3>").fadeIn(10);
		
		}
	
		function loadContent(id,goal) {
		 
				$("#"+goal).load("index.php?article_id="+id+"");
		
		}
	
		function slideShow() {
	
					$('#current_image').cycle({ 
					fx:    'fade', 
					speed:  2500 
					});
	}
	
function changeContentIssues (content,sub,id) {
	
				$("#dheadline_"+id).fadeOut(10,function(){
				$("#dheadline_"+id).html("<h2>"+content+"</h2><h3>"+sub+"</h3>").fadeIn(10);
				});
	
		} 
		 
		 function resetContentIssues (id,name) {
		
				$("#dheadline_"+id).html("<h2>Issue 0"+id+"</h2><h3>&raquo;"+name+"&laquo;</h3>").fadeIn(10);
		
		}
		
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
