// JavaScript Document

/*
var image1=new Image();
image1.src="shinhwa-small.jpg";
var image2=new Image();
image2.src="sechskeis-small.jpg";
var image3=new Image();
image3.src="god-small.jpg";
*/

//var numOfImages = 4;  // Represents the number of images in the slide show
//
//// Default value.
//var curImageNum = 1;
//
////  The default.
//function defaultCaption(curCaption, captionName)
//{
//	// Calls the showNewPic function to get the new picture.
//	showNewPic(curImageNum, curCaption, captionName);	
//}
////  Handles when the user clicks on the right or left arrow buttons on
////  the right side.
//function forwardArrowClick(curCaption, captionName)
//{
//	curImageNum++;
//	// Wraps around back to the 1st image.
//	if(curImageNum > numOfImages)
//		curImageNum = 1;
//	// Calls the showNewPic function to get the new picture.
//	showNewPic(curImageNum, curCaption, captionName);	
//}
//function backArrowClick(curCaption, captionName)
//{
//	curImageNum--;
//	// Wraps around back to the last image.
//	if(curImageNum < 1)
//		curImageNum = numOfImages;
//	// Calls the showNewPic function to get the new picture.
//	showNewPic(curImageNum, curCaption, captionName);
//}
//function showNewPic(curImageNum, curCaption, captionName)
//{
//	if(curImageNum == 1)
//	{
//		document[curCaption].src="Pictures/Right-Pictures/shinhwa-small.jpg";
//		document.getElementById(captionName).innerHTML='Shinhwa ('+curImageNum+' / '+numOfImages+')';
//	}
//	else if(curImageNum == 2)
//	{
//		document[curCaption].src="Pictures/Right-Pictures/sechskies-small.jpg";
//		document.getElementById(captionName).innerHTML='Sechs Kies ('+curImageNum+' / '+numOfImages+')';
//	}
//	else if(curImageNum == 3)
//	{
//		document[curCaption].src="Pictures/Right-Pictures/god-small.jpg";
//		document.getElementById(captionName).innerHTML='G.O.D ('+curImageNum+' / '+numOfImages+')';
//	}
//	else  
//	{
//		document[curCaption].src="Pictures/Right-Pictures/hot-small.jpg";
//		document.getElementById(captionName).innerHTML='H.O.T ('+curImageNum+' / '+numOfImages+')';
//	}
//}

// The two functions below are used for the tab accordion on the left side.
// They call functions within JQuery.js.
function setAccordion()
{
	$(function() 
		{
			$("#accordion").tabs("#accordion div.pane", 
			{
				tabs: 'h2', 
				effect: 'slide'
			});
		});
}

function setAccordion55()
{
    $(document).ready(function(){
		$('#accordion').accordion();						   
								   
		$('#accordion').click(function() {
			$(this).next().toggle('fast');
			return false;
		}).next().hide();
    });	
}

function slideAccordion()
{
	// add new effect to the tabs 
	$.tools.addTabEffect("slide", function(i) { 
		 
		// 1. upon hiding, the active pane has a black background 
		this.getCurrentPane().slideUp("fast").css({backgroundColor: "#123"}); 
		 
		// 2. after a pane is revealed, its background is set to its original color (transparent)
		this.getPanes().eq(i).slideDown(function()  { 
			$(this).css({backgroundColor: 'transparent'}); 
		}); 
	});		
}

// From the jquery-corner.js file.	
/*function roundedAccordion()
{
    $(this).corner(); 
}*/

/* Gets the number of songs currently inserted into the playlist */
function calcNoOfSongs(tableID)
{	
	var rowSkip = 2;  /* Subtracts the table caption and header rows */
	var table =  document.getElementById(tableID).getElementsByTagName('tr');
	var rowCount = table.length;
	rowCount = rowCount - 2;
	
	/* Sets the number of songs found (subtracts two as well) */
	document.getElementById("noOfSongs").innerHTML= rowCount + " songs";
}

// Global variables
var xmlDoc;
var curArticles;
/*var file;*/
var file = "XML-data/Top-Articles.xml";

var curTitle;
var curAuthor;
var curCategory;
var curCountry;
var curDate;

/*var musicImage;
var movieImage;
var animeImage;*/

var musicImage = "Pictures/Left-Pictures/Music-Icon-Resize.png";
var movieImage = "Pictures/Left-Pictures/Movie-Icon-Resize.png";
var animeImage = "Pictures/Left-Pictures/Anime-Icon-Resize.png";
var gamesImage = "Pictures/Left-Pictures/Video-Game-Icon-Resize.png"; 
var cultureImage = "Pictures/Left-Pictures/Culture-Icon-Resize.png"; 

var addToArticles = 0;  // For each article, add it to the array.
var noOfArticles_1 = 0;		// This counts how many articles are in the past three days.
var noOfArticles_2 = 0;
var noOfArticles_3 = 0;

var noOfMusic = 0;

var curType;
var curSubType;
var curLevel;

var addToFlag = 0;
var dirRoot = "";

var lettersPerLine = 35; // This is the number of letters before making a new line.
var newLineString = "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";


// Calculates the daily/weekly/monthly on the left side.
// The type is whether it will calculate just articles or if the user goes to Japanese, Korean music, etc.
// The subtype is an extension of type.  If type is articles, then subtype is set to "none."
// Level is how many levels after the root (greenteagraffiti) is the file located.
//   0 = file is in the root
//   1 = file is one level deep
//   2 = file is two levels deep
//   etc...
function topList(type, subType, level)
{
	curType = type;
	curSubType = subType; // Country
	curLevel = level;
	
	/* Checks where the current path is. */
	checkCurPath();
	
	importXML(file);
	return curArticles;
}

function checkCurPath()
{
	/* Adds a "../" for every depth level */
	var stringAdder = "../";
	
	for (var i = 0; i < curLevel; i++)
	{		
		musicImage = stringAdder + musicImage;
        movieImage = stringAdder + movieImage;
        animeImage = stringAdder + animeImage;
		gamesImage = stringAdder + gamesImage;
		cultureImage = stringAdder + cultureImage;
		file = stringAdder + file;
		
		dirRoot += "../";
	}
	
	/*alert("The music image is:   " + musicImage + "\n" +
		  "The file is:   " + file + "\n" + 
		  "The level is:   " + curLevel);*/
}

//  The validDate function/class.
function arrayOfArticles()
{
	this.arrayOfTitles = new Array();
	this.arrayOfURLs = new Array();
	
}


function importXML(file) 
{  

	 var nonIE = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined');  
	 var IE = (typeof window.ActiveXObject != 'undefined');  
	 
	 if (nonIE) // Applies to Mozilla, Opera, Safari, and Chrome
	 {
		
	   // Use XMLHttpRequest for Safari
	   /*xmlDoc = document.implementation.createDocument("", "", null);	   
	   xmlDoc.onload = function()
	                   { 
					       extractData(file); 
					   }
	   
	   xmlDoc.load(file); */	   	   
	   
	   /*xmlhttp=new XMLHttpRequest();*/

	   xmlhttp = new XMLHttpRequest();
	   xmlhttp.onreadystatechange = ReadyStateChange_nonIE;
       xmlhttp.open("GET",file,true);
       xmlhttp.send(null);
	   
	 } 
	 else if (IE) // Applies to Internet Explorer
	 { 
	   /*xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");*/
	 
	   xmlDoc = new ActiveXObject("Microsoft.XMLDOM");  
	   xmlDoc.async = false;
	   xmlDoc.ondataavailable = extractData;
	   xmlDoc.onreadystatechange = ReadyStateChange_IE;
	   xmlDoc.load(file);
	 } 
	 /*else
     {
  		alert("Your browser does not support XMLHTTP.");
	 }*/
	 
/*	 if (xmlhttp != null)
	 {
		 xmlhttp.onreadystatechange = ReadyStateChange;
  		 xmlhttp.open("GET",file,true);
  		 xmlhttp.send(null);
	 }*/
	
	 
}

function ReadyStateChange_nonIE()
{
	if (xmlhttp.readyState == 4) 
	{
		xmlDoc = xmlhttp.responseXML;
		extractData(file);
		xmlDoc.async = false;
	}
}

function ReadyStateChange_IE()
{
	if (xmlDoc.readyState == 4) 
	{
		extractData(file);
		xmlDoc.async = false;
	}
}

/* Global variables */
var maxInterval = -90; // Max interval (2 weeks so far -- 14 days).
var firstInterval = -60;
var secondInterval = -30;

var tempDate;
var todayDate;

var maxRange;  // Total range.
var articleRange;
var listRange; // Sub range for sections that have two or more lists.

function startSettings()
{
	
	tempDate = new Date(); // Pacific standard time (PST)
	todayDate = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate());
	articleRange = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate()-0+maxInterval); // 2 weeks
	maxRange = articleRange;
	
	if (curType.toLowerCase() == "music" ||
		curType.toLowerCase() == "movies" || 
		curType.toLowerCase() == "video games")
	{
		
		/*if (curSubType.toLowerCase() == "japanese") // Japanese music
		{
			listRange = new Date(2000, 1, 1);
		}*/
		
		listRange = new Date(2000, 1, 1);
		
		// Sets the range to the music range instead.
		maxRange = listRange;
	}
	
	
}


function extractData(file)
{	
	/* Sets the ranges. */
	startSettings();

	var articles = xmlDoc.getElementsByTagName("articles");
			
	// Checks if there are any date tags
	var noOfDates = articles[0].getElementsByTagName("date").length;

	if (noOfDates == 0)
	{
	    return; // Exits the function	
	}
	
	// Gets the very first element
    var treeDate = articles[0].getElementsByTagName("date")[0];  // Moves down to the date element tag
	curDate = treeDate.getAttribute("day");
					
	// Format when parsing is year/month/day -- [2],[0],[1] arrays
	var parseDate = new Date(curDate.split('/')[2], curDate.split('/')[0], curDate.split('/')[1]);
	curDate = parseDate;
	
	var dateLimit = 0;
	curArticles = new arrayOfArticles();
	
	// Looks for each date elements.
	outer_For_Loop:
	do
	{
		var noOfTitles = treeDate.getElementsByTagName("title").length;
		var titleCount = 0;
		
		for (titleCount = 0; titleCount < noOfTitles; titleCount++)
		{		
			// Stores the current category, country, and author within the title parent	(curTitle)
			var treeTitle = treeDate.getElementsByTagName("title");  // Moves down to the title element tag
			curTitle = treeTitle[titleCount].getAttribute("name");  
			curCategory = treeTitle[titleCount].getElementsByTagName("category")[0].childNodes[0].nodeValue;
			curCountry = treeTitle[titleCount].getElementsByTagName("country")[0].childNodes[0].nodeValue;
			curAuthor = treeTitle[titleCount].getElementsByTagName("author")[0].childNodes[0].nodeValue;
		
			/* If there this isn't an article call... */
			/*if (curType.toLowerCase() != "articles")
			{
				if ((curCategory.toLowerCase() != curType) || (curSubType.toLowerCase() != curSubType))
				{
					break; // Breaks out of the for-loop
				}	
			}*/
		
			// Adds the current title to the list queue from the XML file.
			curArticles.arrayOfTitles[addToArticles] = curTitle;
			
			// For the category - Parses out any non-whitespace letters from the URL title.
			curCategory = curCategory.replace(/[,'!?:]/gi,"");
			// Copies the curCategory without dashes (with the space still in).
			var tempCategory = curCategory;
			// Replaces any whitespace letters with dashes.
			curCategory = curCategory.replace(/ /gi, "-");
			
			// For the coutnry - Parses out any non-whitespace letters from the URL title.
			curCountry = curCountry.replace(/[,'!?:]/gi,"");
			// Copies the curCountry without dashes (with the space still in).
			var tempCountry = curCountry;
			// Replaces any whitespace letters with dashes.
			curCountry = curCountry.replace(/ /gi, "-");
			
			// For the title - Parses out any non-whitespace letters from the URL title.
			curTitle = curTitle.replace(/[,'!?:]/gi,"");
			// Replaces any whitespace letters with dashes.
			curTitle = curTitle.replace(/ /gi, "-");
						
						
			/* Gets the length of the curTitle */
			/*alert(curTitle.length);*/
						
						
			// If there's no country (if it equals 'none' because of anime or video games, for instance), take out 'country' from the URL.
			/*if (curCountry == "none")
			{
				curArticles.arrayOfURLs[addToArticles] = "http://www.greenteagraffiti.com/" + curCategory + "/" + 
				curTitle + ".html";
			}
			else
			{
				curArticles.arrayOfURLs[addToArticles] = "http://www.greenteagraffiti.com/" + curCategory + "/" + 
				curCountry + "/" + curTitle + ".html";
			}*/
			
			// From the root directory, gets the webpage   "./"	
		    curArticles.arrayOfURLs[addToArticles] = dirRoot + curCategory + "/" + curCountry + "/" + curTitle + ".html";
			
			if (curDate.getTime() > articleRange.getTime()) /* For the article to the left */
			{
				setupArticle(curDate, tempDate);
			}
						
			// tempCategory and tempCountry are used to compare against curType and curSubType with their spaces still in.
			if ((curType.toLowerCase() == tempCategory.toLowerCase()) && (curSubType.toLowerCase() == tempCountry.toLowerCase()))
			{	
				createTopicList(curDate);
			}
			
			
			/* If an article (e.g. left accordion article or music, movie, gaming one) has been added, increment addToArticles*/
			if (addToFlag == 1)
			{
				addToArticles++;
				addToFlag = 0; // Resets the flag
			}
	
			/*arrayOfTitles[dateLimit] = curTitle;
			arrayOfURLs[dateLimit] = "http://www.greenteagraffiti.com/articles/" + curCategory + "/" + curCountry + "/" + curTitle + ".html";*/
			
			/*alert("The array title is:   " + arrayOfTitles[dateLimit] + "\n" +
				  "The URL title is:   " + arrayOfURLs[dateLimit]);*/
		
			/*alert("Loop count is:   " + titleCount + "\n" +
				  "No of titles is:   " + noOfTitles + "\n" +
				  "The date is:   " + curDate + "\n" +
				  "The title is:   " + curTitle + "\n" +
				  "The category is:   " + curCategory + "\n" +
				  "The country is:   " + curCountry + "\n" +
				  "The author is:   " + curAuthor);*/
			
			//alert("The number of title elements are:  " + noOfTitles);	
		} // End of title-loop.
						
		dateLimit++;
		
		// Checks if it's at the end of file before incrementing the dateLimit
		// noOfDates must be -1 because the dateLimit starts at 0.
		if (dateLimit > noOfDates-1)
		{
			break;	
		}
		else // The dateLimit is still less than the total noOfDate tags in the XML file.
		{
		  // The dateLimit determines which date tag to look at.
		  var treeDate = articles[0].getElementsByTagName("date")[dateLimit];  // Moves down to the date element tag
		  var curDate = treeDate.getAttribute("day");
		  
		  // Format when parsing is year/month/day -- [2],[0],[1] arrays
		  var parseDate = new Date(curDate.split('/')[2], curDate.split('/')[0], curDate.split('/')[1]);
		  curDate = parseDate;  // Sets the curDate for comparison
		}
			
	} while(curDate.getTime() > maxRange.getTime())

	tallyArticleTotals(); 

	if (noOfMusic > 0)
	{
		tallyArticleMusic();
	}

}

function setupArticle(curDate, tempDate)
{
	// This if-statement will check if the 1st accordion tab date (currently 3 days) will output the current article link.
	// If this is setting up the articles in the accordion.
	var checkRange = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate()-0+secondInterval);
		
	if(curDate.getTime() > checkRange.getTime())  // Within the 3 day range.
	{	
		createArticle("add-Content-1st");
		noOfArticles_1++;
	}
	checkRange = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate()-0+firstInterval);
	if(curDate.getTime() > checkRange.getTime())  // Within the 1 week range.
	{
		createArticle("add-Content-2nd");
		noOfArticles_2++;
	}
	checkRange = articleRange;
	if(curDate.getTime() > checkRange.getTime())  // Within the 2 week range.
	{
		createArticle("add-Content-3rd");
		noOfArticles_3++;
	}
	
	addToFlag = 1;
}

/* Used for the differing sections - e.g. J-music, K-music, anime, etc.  */
function createTopicList(curDate)
{	
	var tr = document.createElement('tr');  // Sets the row
	var th = document.createElement('th');  // Header
	var myArticle = document.createElement('a'); // Article name
	var href = document.createAttribute('href'); // Creates a link attribute within the anchor tag
	var divTag = document.createElement('div'); // Creates a div id 'main-body'
	var img = document.createElement('img');  // Creates an image tag.
	/*var imgSrc = document.createAttribute('src');*/  // Creates an image source attribute.
	
	// Sets the  id tag for the proper CSS topic image.  E.g. id=music will have a music icon.
	tr.className = curCategory.toLowerCase();
	
	// Currently, the music icon is tied to the background in CSS.  Need to replace that with the topic image.
	myArticle.setAttribute('href', curArticles.arrayOfURLs[addToArticles]);
	myArticle.innerHTML = curArticles.arrayOfTitles[addToArticles];
	
	var td1 = document.createElement('td'); // Author
	td1.innerHTML = curAuthor;
		
	/* Date in format of month, day, year */
	var tempYear = curDate.getYear()
	if (tempYear < 1000)
        tempYear += 1900
	
	var tempDay = curDate.getDate();
    var tempMonth = curDate.getMonth()+1;	
	
	var td2 = document.createElement('td'); // Date
	td2.innerHTML = tempMonth + "/" + tempDay + "/" + tempYear;
	
	var td3 = document.createElement('td'); // Awards
	td3.innerHTML = 0;
	
	divTag.id = "main-body";
	divTag.className = "main-body";
	
	<!--img.setAttribute('src', "Section-Music-Japanese-Pictures/Japanese-mid-table.png");-->
	
	var spanAppend = document.getElementById("insert-list");
	
	spanAppend.appendChild(tr);  // Create a list first.
	tr.appendChild(th);         // Then tie the image tag to the list.
	th.appendChild(myArticle);   // Also tie the a href tag to the list as well, so both are children to the list.
	tr.appendChild(td1);
	tr.appendChild(td2);
	tr.appendChild(td3);
	
	spanAppend.appendChild(divTag);
	/*divTag.appendChild(img);*/
	
	noOfMusic++;
	addToFlag = 1;
}

function createArticle(addContent)
{	
	// Creates the article links dynamically.
	var li = document.createElement('li');  // Creates a list tag.
	var img = document.createElement('img');  // Creates an image tag.
	var imgSrc = document.createAttribute('src');  // Creates an image source attribute.

	var typeOfImage = setTypeOfImage();  // Gets the type based on the tag's category.
	img.setAttribute('src', typeOfImage);
	
	var myArticle = document.createElement('a');  // Creates an anchor tag.
	var href = document.createAttribute('href'); // Creates a link attribute within the anchor tag.
	
	myArticle.setAttribute('href', curArticles.arrayOfURLs[addToArticles]);
	
	/* Checks to see if the title is too long for one title. */
	var newArticle = checkLength(curArticles.arrayOfTitles[addToArticles].length, curArticles.arrayOfTitles[addToArticles]);
	
	/*myArticle.innerHTML = curArticles.arrayOfTitles[addToArticles];*/
	myArticle.innerHTML = newArticle;
	
	var spanAppend = document.getElementById(addContent);
	spanAppend.appendChild(li);  // Create a list first.
	li.appendChild(img);         // Then tie the image tag to the list.
	li.appendChild(myArticle);   // Also tie the a href tag to the list as well, so both are children to the list.
}

function checkLength(curArticleLength, curArticle)
{
	/* Checks if more than one line is needed. */
	/* Rounds down - floor */
	var lines = Math.floor(curArticleLength / lettersPerLine);

	/*alert (lines);*/

	var beginCount = 0; // Counter to see which line the while-loop is at.
	var beginPos = 0;
	var curPos = lettersPerLine;
	var newArticle = curArticle; // This will be the new curArticle.
    

	while(beginCount < lines)
	{		
		/* Grabs the first 35 letters and finds the last space */
		var curLine = curArticle.substr(beginPos, lettersPerLine);   // if this is -1, there is only one word.
		var lastSpacePos = curLine.lastIndexOf(' ');
		
		newArticle = curArticle.substr(beginPos, lastSpacePos) + newLineString + curArticle.substr(lastSpacePos, curArticleLength);
				
		beginPos += curArticleLength; // Starts at the next word after the line break.
		curPos += lettersPerLine; // Moves to the next line's maximum number of words.
		beginCount++;	
	}
	
	return newArticle;
	
}


function setTypeOfImage()
{
	var typeOfImage;
	
	var lowerCaseCategory = curCategory.toLowerCase();

	if (lowerCaseCategory == "music")
	{
		typeOfImage = musicImage;	
	}
	else if(lowerCaseCategory == "movies")
	{
		typeOfImage = movieImage;	
	}
	else if(lowerCaseCategory == "anime")
	{
		typeOfImage = animeImage;	
	}
	else if(lowerCaseCategory == "video-games") // no dash in video games.
	{
		typeOfImage = gamesImage;	
	}
	else if(lowerCaseCategory == "culture")
	{
		typeOfImage = cultureImage;	
	}
	else  // Default
	{
		typeOfImage = musicImage;
	}

	return typeOfImage;
}

function tallyArticleMusic()
{
	var musicTotal = document.getElementById("noOfMusic");
	musicTotal.innerHTML = noOfMusic + " articles";
}

function tallyArticleTotals()
{
	for (loopCount = 0; loopCount < 3; loopCount++)
	{
		if (loopCount == 0)
		{
			outArticles = noOfArticles_1;
			idHeader = "article-total-1";
		}
		else if (loopCount == 1)
		{
			outArticles = noOfArticles_2;
			idHeader = "article-total-2";
		}
		else // 2
		{
			outArticles = noOfArticles_3;
			idHeader = "article-total-3";
		}
		
		var para = document.createElement('p');  // Creates a paragraph tag.
		para.innerHTML = "No. of Articles: " + "&nbsp;&nbsp;&nbsp;" + outArticles;
		var spanAppend = document.getElementById(idHeader);
		spanAppend.appendChild(para);  // Create a list first.
	}
	
}

/* For pages that have the Article-Bar on top -- represents the hover-msg */
function changeHoverMsg(msg) 
{
   /* Changes the message to the current hovered number link */
   document.getElementById("hover-msg").innerHTML="Skip to:" + "&nbsp;&nbsp;&nbsp;" + msg;
}

function emailHoverMsg(msg)
{
	 /* Changes the message to the current hovered number link */
   document.getElementById("hover-msg").innerHTML="Email at:" + "&nbsp;&nbsp;&nbsp;" + msg;
}

/* Jumps to a subpage */
function SubpageHoverMsg(msg) 
{
   /* Changes the message to the current hovered number link */
   document.getElementById("hover-msg").innerHTML="Go to subpage:" + "&nbsp;&nbsp;&nbsp;" + msg;
}

function resetHoverMsg()
{
   /* Resets the message */
   document.getElementById("hover-msg").innerHTML="";	
}

/* For About-Us */
function hoverType(type, staffName)
{
	if (type.toLowerCase() == "intro")
	{
		displayCurrent("block", "none", "none", "About Us - Intro");
	}
	else if (type.toLowerCase() == "purpose")
	{
		displayCurrent("none", "block", "none", "About Us - Purpose");
	}
	/* If the user hovers on a staff member, get their info. */
	else if (type.toLowerCase() == "staffbio")
	{
		displayCurrent("none", "none", "block", "About Us - Staff Bios");
		/* Toggles the staff desc back on. */		
		staffBio(staffName);
	}
	
}

/* For Contact-Us */
function hoverTypeContactUs(type)
{
	if (type.toLowerCase() == "contactus")
	{
		displayCurrentContactUs("block", "Contact Us - contact us");
	}
}

/* For Advertise */
function hoverTypeAdvertise(type)
{	
	if (type.toLowerCase() == "services")
	{
		displayCurrentAdvertise("block", "none", "none", "Advertise - Services");
	}
	else if (type.toLowerCase() == "gtgart")
	{
		displayCurrentAdvertise("none", "block", "none", "Advertise - GTG ads");
	}
	/* If the user hovers on a staff member, get their info. */
	else if (type.toLowerCase() == "contactus")
	{
		displayCurrentAdvertise("none", "none", "block", "Advertise - Contact us");
	}	
}

/* For Join-GTG */
function hoverTypeJoinGTG(type)
{	
	/* intro, lookingFor, positions, howToApply, benefits, faq */
	if (type.toLowerCase() == "intro")
	{
		displayCurrentJoinGTG("block", "none", "none", "none", "none", "none", "Join GTG - Intro");
	}
	else if (type.toLowerCase() == "requisites")
	{
		displayCurrentJoinGTG("none", "block", "none", "none", "none", "none", "Join GTG - Requisites");
	}
    else if (type.toLowerCase() == "positions")
	{
		displayCurrentJoinGTG("none", "none", "block", "none", "none", "none", "Join GTG - Open Positions");
	}
    else if (type.toLowerCase() == "benefits")
	{
		displayCurrentJoinGTG("none", "none", "none", "block", "none", "none", "Join GTG - Benefits");
	}
	else if (type.toLowerCase() == "faqs")
	{
		displayCurrentJoinGTG("none", "none", "none", "none", "block", "none", "Join GTG - Frequently Asked Questions");
	}
    else if (type.toLowerCase() == "apply")
	{
		displayCurrentJoinGTG("none", "none", "none", "none", "none", "block", "Join GTG - How to Apply");
	}
    
	
}

function testing()
{
	alert("hello!");	
}




function hoverEffects()
{
	
}

// Global - do not use var for globals.
var curPicNum = 1;
var curPicMax;

// Passes the curPicMax.
function forwardArrowClick(curPicMax, picID)
{
	curPicNum++;
	
	// Wraps around back to the 1st image.
	if(curPicNum > curPicMax)
		curPicNum = 1;
 
	// Decides which pic ID this is and calls the correct show function.
	whichPic(picID);	
		
    // Calls the showNewPic function to get the new picture.
	// showNewPic();	
}

function backArrowClick(curPicMax, picID)
{
	curPicNum--;
	// Wraps around back to the last image.
	if(curPicNum < 1)
		curPicNum = curPicMax;
				
    // Decides which pic ID this is and calls the correct show function.
	whichPic(picID);
}

function whichPic(picID)
{
	
	if (picID == "news")
	{
		showNewPic(curPicNum);
	}
	else if (picID == "ad")
	{
		showNewAd(curPicNum);
	}
	
	
}


function showNewPic(curPicNum)
{
	
	if(curPicNum == 1)
	{
		document.getElementById("comic").src="../News-Holder-Pictures/comic-1.jpg";
		document.getElementById("comicPage").innerHTML='1 / 3';
	}
	else if(curPicNum == 2)
	{
		document.getElementById("comic").src="../News-Holder-Pictures/comic-2.jpg";
		document.getElementById("comicPage").innerHTML='2 / 3';
	}
	else  
	{
		document.getElementById("comic").src="../News-Holder-Pictures/comic-3.jpg";
		document.getElementById("comicPage").innerHTML='3 / 3';
	}
	
}

function showNewAd(curPicNum)
{	
    if(curPicNum == 1)
	{		
		<!--document.getElementById("ad").src= adImages[curPicNum-1];-->
		document.getElementById("ad").src= adImages[curPicNum-1].src;
		document.getElementById("picName").innerHTML="GTG Idol";
		document.getElementById("artistName").innerHTML="Drawn by <a href='http://kl-chan.deviantart.com/' target='_blank'>KL-Chan</a>";
		document.getElementById("adPage").innerHTML='1 / 5';
		//document.getElementById("adPage").innerHTML=curPicNum + ' / ' + curPicMax;
	}
	else if(curPicNum == 2)
	{
		document.getElementById("ad").src= adImages[curPicNum-1].src;
		document.getElementById("picName").innerHTML="Japanese music background";
		document.getElementById("artistName").innerHTML="Drawn by <a href='http://pureazn.deviantart.com/' target='_blank'>PureAZN</a>";
		document.getElementById("adPage").innerHTML='2 / 5';
		//document.getElementById("adPage").innerHTML=curPicNum + ' / ' + curPicMax;
	}
	else if(curPicNum == 3)
	{
		document.getElementById("ad").src= adImages[curPicNum-1].src;
		document.getElementById("picName").innerHTML="Korean music background";
		document.getElementById("artistName").innerHTML="Drawn by <a href='http://pureazn.deviantart.com/' target='_blank'>PureAZN</a>";
		document.getElementById("adPage").innerHTML='3 / 5';
		//document.getElementById("adPage").innerHTML=curPicNum + ' / ' + curPicMax;
	}
	else if(curPicNum == 4)
	{
		document.getElementById("ad").src= adImages[curPicNum-1].src;
		document.getElementById("picName").innerHTML="GTG Anime Expo 2010 promotions";
		document.getElementById("artistName").innerHTML="Drawn by <a href='http://lucchan.deviantart.com/' target='_blank'>Lucchan</a>, <a href='http://nikkiecole.deviantart.com/' target='_blank'>NikkieCole</a>, and <a href='http://pureazn.deviantart.com/' target='_blank'>PureAZN</a>";
		document.getElementById("adPage").innerHTML='4 / 5';
		//document.getElementById("adPage").innerHTML=curPicNum + ' / ' + curPicMax;
	}
	else if(curPicNum == 5)
	{
		document.getElementById("ad").src= adImages[curPicNum-1].src;
		document.getElementById("picName").innerHTML="GTG's version of Wedding Dress";
		document.getElementById("artistName").innerHTML="Drawn <a href='http://blue-lied.deviantart.com/'target='_blank'>Blue-Lied</a>, designed by Coopa";
		document.getElementById("adPage").innerHTML='5 / 5';
		//document.getElementById("adPage").innerHTML=curPicNum + ' / ' + curPicMax;
	}
	else  
	{
		document.getElementById("ad").src=adImages[0].src;
		document.getElementById("adPage").innerHTML='1 / 5';
		//document.getElementById("adPage").innerHTML=curPicNum + ' / ' + curPicMax;
	}
	
}



/* The first three are toggle switches to display each block.  The last one is what the header will display. */
/* For About Us */
function displayCurrent(intro, purpose, staffdesc, title)
{
	/* Only loads the toggle change if the block is different. */
	if (document.getElementById("about-us-title").style.display != title)
	{
		document.getElementById("intro").style.display=intro;
		document.getElementById("purpose").style.display=purpose;
		document.getElementById("staffdesc").style.display=staffdesc;
		document.getElementById("about-us-title").innerHTML=title;
	}
}

displayCurrentContactUs(contactus, title)
{
	document.getElementById("Contact-Us-Contact-Us").style.display=contactus;
	
	/* The title name that appears on the green bar. */
	document.getElementById("contact-us").innerHTML=title;
}

function displayCurrentJoinGTG(intro, requisites, positions, benefits, FAQs, apply, title)
{
	document.getElementById("Join-GTG-intro").style.display=intro;
	document.getElementById("Join-GTG-requisites").style.display=requisites;
	document.getElementById("Join-GTG-positions").style.display=positions;
	document.getElementById("Join-GTG-benefits").style.display=benefits;
	document.getElementById("Join-GTG-FAQS").style.display=FAQs;
	document.getElementById("Join-GTG-apply").style.display=apply;
	
	/* The title name that appears on the green bar. */
	document.getElementById("join-gtg").innerHTML=title;
}

function displayCurrentAdvertise(services, GTGArt, contactUs, title)
{
	document.getElementById("Advertise-services").style.display=services;
	document.getElementById("Advertise-GTGArt").style.display=GTGArt;
	document.getElementById("Advertise-contactUs").style.display=contactUs;
	
	/* The title name that appears on the green bar. */
	document.getElementById("advertise").innerHTML=title;
}

function staffBio(staffName)
{	
	var picHeader;
	var role;
	var favMusic;
	var favAnime;
	var favMovies;
	var favTVDrama;
	var favGames;
	var favHobbies;
	var howAsian;
	
	/* Jonas */
	if(staffName.toLowerCase() == "jonas")
	{
		picHeader = "About-Us-Pictures/Jonas-Header.png";
		role = "Manages all people within the video games section, writer, events correspondant";
		favMusic = "Epik High, DJ Doc, Clon";
		favAnime = "Elfen Lied, Gurren Lagann, Azumanga Daioh!, Pani Poni Dash!, Minami-Ke (1st Season)";
		favMovies = "Ong Bak, Ong Bak 2, Ju On, Crouching Tiger Hidden Dragon";
		favTVDrama = "Super Rookie, My Name is Kim Samsoon";
		favGames = "Lumines, Advance Wars (Series), Pump It Up, DJ Max Technika, Seiken Densetsu, Final Fantasy IV, Mega Man (Series).";
		favHobbies = "";
		howAsian = "Besides being Asian, I wanted to broaden my knowledge of my heritage and not be ashamed of it. I took an interest in studying the subject when Network Cable television and the Internet became widespread in the mid-late 1990's. It did not cost money to simply view the material, so I was able to peruse all of the information I desired. As an independent thinker, immune to the majority of public opinion, I thought that learning the culture was a way to differentiate myself from being someone who just likes everything domestic. Not that there's anything wrong with the alternative, but I prefer to have a variety of interests.";		
	}
	else if(staffName.toLowerCase() == "nikkiecole")
	{
		picHeader = "About-Us-Pictures/Nicole-Header.png";
		role = "Leader of the art department for GTG.  Heads all the GTG artists and their assignments.  Also notifies GTGers of events, draws pretty pictures as an artist, and organizes preparations for events";
		favMusic = "Anything that sounds good? x3";
		favAnime = "Fate/Stay Night, Chrno Crusade, Canaan, Elfen Lied, This Ugly Yet Beautiful World (Kono Minikuku mo Utsukushii Sekai), Bleach, Ga-Rei Zero.  <br<br>Favorite manga: Red River/Anatolia Story (Sora wa Akai Kawa no Hotori (Heaven Is on the Banks of the Red River)), Pita-Ten, Moon Boy, 1/2 Prince, Letter Bee (Tegami Bachi), Hanatsuki Hime, Burst Angel (Bakuretsu Tenshi)";
		favMovies = "Gundam Wing: Endless Waltz, Nausicaa of the Valley of the Wind (Kaze no Tani no Naushika), Princess Mononoke (Mononoke-Hime), One Stormy Night (Arashi no Yoru Ni)";
		favTVDrama = "Robot Chicken, Family Guy, Smallville, Gilmore Girls, The Nanny";
		favGames = "I don't play many games, but I like Pokemon!";
		favHobbies = "Reading, drawing, talking to artist friends.";
		howAsian = "Some friends got me interested in it, and then I become fascinated by the artwork and it spread from there x3. I tend to follow the anime/manga more than anything, but that also spreads into Asian music through openings and ending Anime themes (and sometimes background music.) I have a few non-anime CD releases from Utada Hikaru (Exodus CD, Eng,) and Shimatani Hitomi (Crossover CD, Jpn.) I am also a big fan of good background or instrumental music (relaxation CDs, and Theatrical release CDs.) I'm not a fan of Sushi but I will eat Inari and a few non-raw fish ones (I don't like Squid, Octopus or Eel either XP.) Asian culture is one of those that you just kind of stare in awe at. It's so pretty. <3 I'm happy to have gotten into it and to see some of the different sides of it, even if I'm still learning.";
	}
	else if(staffName.toLowerCase() == "kami-ko")
	{
		picHeader = "About-Us-Pictures/Kami-ko-Header.png";
		role = "Researching and writing topics on Japanese music, 'Double Dragon'-ing with NikkieCole on comic/art.";
		favMusic = "Wonder Girls (KR), Girls Generations/SNSD (KR), Kuang Liang (CHN), S.H.E (CHN), Vocaloid (JPN), Super Junior (KR).";
		favAnime = "Code Geass, ToraDora!, Tengen Toppa Gurren Lagann, Axis Powers Hetalia, The Melancholy of Haruhi Suzumiya, Sayonara Zetsubou Sensei, Higurashi No Naku Koro Ni, FLCL.  <br><br>  Favorite manga: Ranma 1/2 Yotsuba&!, Sakura Ganbaru!, Et Cetera, Geijutsuka Art Design Class.";
		favMovies = "Gundam Wing: Endless Walts, The Girl Who Traveled Through Time (JPN), Shaolin Soccer (CHN), Lethal Ninja (CHN), Drunken Fist (CHN).";
		favTVDrama = "Dae Jang Geum (KR), Coffee Prince (KR).";
		favGames = "Phoenix Wright, Professor Layton, Metal Gear Solid, Legend of Zelda, Harvest Moon, Touhou Project, Kirby, Pokemon, Advance War, Bomberman.";
		favHobbies = "Other than above, animating with Macromedia Flash, photography, playing videogames and drawing (well, not obvious enough?), sleeping, eating, writing stories, and saving the world.";
		howAsian = "Beside being born Chinese, I was first interested in the culture of China and Japan. Since middle school never spoke much about World History, I took the time to go to libraries and search my bookshelves on any Asian culture there was. I later got interested in Japanese Culture when I found the old Sailor Moon manga and first Cowboy Bebop video cassettes I watched before I started school. Of course, if I didn't say the main influence towards the pop culture was anime, that would be a joke. Since I knew no one who had the same interests as I did, I independently researched anything I can and soon hitting off from old history and comic books to music and the present culture of Asian countries. I don't remember how I got really into Korean culture, but I think it's from after watching the great TV drama, Dae Jang Geum and by far will always be on my top fave. <br><br>I get more and more influenced whenever I go overseas back to China, where the pace of the culture is ten times faster than it is in America. Having cousins close to my age who loves what I like, I learn more from them and it grabs me in more. But since we live in totally different areas, they are part of the reason why I do my best to keep up with the latest on pop culture of China, Taiwan, Japan, and Korea. <br><br> The hugest influence I ever had would be my older brother. He's the one who brought me up (well my parents also, but he's like... super close y'know) and inspired me to go forward to be who I am now. Since he's a great artist, he has practically taught my how to hold a pencil to draw as simple as Goku (Dragon Ball) stick figures to mechas. He also showed me the world of video games and it caught my interest how such a small cartridge could hold such an intense game (I knew 																																																																																																																																																																																																																							nothing of a computer then). Once technology was booming in the late 90s, I have already played around with Photoshop and Macromedia Flash and taught myself how to use the programs (still learning since I seem to be unable to learn about these programs from teachers anymore) which were all, again, thanks to my brother. Now since he's working hard in college and first wanted to become a video game designer or anything that specifically has to do with art, I'm still pushing myself to reject everyone's opinion (sadly, even my parents) about my goal. <br><br> That kind of went off topic? Sorry, but as of now, I am now part of the staff to expand my knowledge of Asian Pop Culture and my art, and have fun with the GTG crew (as in work hard, party hard).";
	}
	else if(staffName.toLowerCase() == "patsu")
	{
		picHeader = "About-Us-Pictures/patsu-Header.png";
		role = "Creating images for the K-music section and merchandising.";
		favMusic = "K-pop, symphonic orchestra, bossa nova.";
		favAnime = "Jigoku Shoujo, Higurashi 1&2.";
		favMovies = "Anything Miyazaki, Harry Potters.";
		favTVDrama = "History Channel, Modern Marvels, Fox News, CNN, Food Network.";
		favGames = "n/a";
		favHobbies = "n/a";
		howAsian = "I first became a slave to Anime art, and wanted to be really good at it. TO do so, I had to expose myself to many things such as Asian fashion, food, character, and culture, in order to depict the style of anime in an Asian culture as it is. My friends, who are also artists, listened to Japanese songs, as they tell me that it helps them to fully be in sync with what they're drawing. Eventually, I would find a good song and be curious as to who sung it, so by that time, YouTube was my friend, and then I 'exploded' into the pop culture of not just Japanese, but also Korean, Taiwanese, Chinese and etc.";
	}
	else if(staffName.toLowerCase() == "kizxm")
	{
		picHeader = "About-Us-Pictures/kizxm-Header.png";
		role = "Following Japanese music trends, Producing articles about J-pop, and Listening to all the classics.";
		favMusic = "Vocaloid (JP,) Perfume (JP,) Gackt (JP,) Classical Piano.";
		favAnime = "Code Geass, Bounen no Xamdou, Gundam 00.";
		favMovies = "How to Train Your Dragon, Ghost Writer.";
		favTVDrama = "As The World Turns, America's Next Top Model.";
		favGames = "Fragile, Pokemon, Team Fortress 2.";
		favHobbies = "Drawing, Writing, Mumbling to Lyrics to.";
		howAsian = "I basically tumbled into Asian Pop Culture, my dad used to read to me stories in Cantonese (a dialect of Chinese.) Which I suppose was my first 'exposure' to Asian culture, although not very world changing. After this I attended a private school where they put a ban on things like chocolate chips (seriously!) and Pokemon cards. Because of their 'illegal' quality, Pokemon cards were everybody's favorite thing, which in turn lead to the TV show and merchandise.<br><br>  As I got older and when we finally got cable, anime became a routine. With it and a growing love for the internet, Japan and basically all Asia. Asia just seemed like a home away from home (I am half-Asian) stuff just made more sense and things just all sort of lead to one and another. I feel by around 8th grade I was basically surrounded by Asian culture. I'm not that exciting of a person, just have a passion for what seems good. <br><br>  Currently, I am learning Japanese to further my knowledge (and for personal pleasure!) I also plan to be attending many anime conventions, as well as going to local get to-gethers.<br><br>  I am now very excited to now be a part of the Green Tea Graffti crew, learn new things and hopefully have a blast.";	
	}
	else if(staffName.toLowerCase() == "tsubaki")
	{
		picHeader = "About-Us-Pictures/tsubaki-Header.png";
		role = "Listening and enjoying Japanese music, observing its history and trends, and writing about it.";
		favMusic = "Ikimonogakari (JP,) m-flo (JP,) YUI (JP,) EXILE (JP,) Aoyama Thelma (JP.)";
		favAnime = "Hayate no Gotoku!, K-ON!, Angel Beats, Ouran High School Host Club, WORKING!!, and like several dozen more in every genre :P.";
		favMovies = "Castle in the Sky (watched it at least a dozen times.)";
		favTVDrama = "Nodame Cantabile, Hi My Sweetheart, Great Teacher Onizuka.";
		favGames = "Starcraft, Touhou, Diablo, Modern Warfare, Final Fantasy.";
		favHobbies = "Besides the obvious, I learn Japanese and Korean, compose music, play violin, draw, and play go (weiqi/igo/baduk), Chinese chess (xiangqi), and Japanese chess (shougi).";
		howAsian = "I was born in Taipei, Taiwan and lived there for seven years. In short, East Asian pop culture was all that I knew (Card Captor Sakura and Yu Yu Hakusho, both shown in Taiwan, were my childhood heroes); I did not know that much about American rappers or American hip-hop until I moved to America around when I was eight years old, at the end of my first year in elementary school. I've always enjoyed Taiwanese singers and Japanese animation and manga.<br><br> The first few years in America isolated me, and I found it difficult to keep up with what went on in East Asia. But through the advent of the internet boom and the information age, access to it all became instantaneous. Around when I turned ten years old, I began listening to an abundance of Japanese and Korean music instead of just Chinese music. The internet also drew me back into anime, and I saw that subculture grow through the years, too. I started learning Japanese in 2008, and in 2010 I started learning Korean. <br><br> I'm obsessed with East Asian pop culture; I listen to the music (which includes VOCALOID), watch drama, watch TONS of anime, learn the language, and play go/xiangqi/shougi.";		
	}
	else if(staffName.toLowerCase() == "frank")
	{
		picHeader = "About-Us-Pictures/Frank-Header.png";
		role = "Responsible for the tone and quality of the site.  So yes, if you want to call any of our writers a newb, I'll be the one responding to your message.  That said, if you LIKE an article on the site, you can let me know too.  I wouldn't mind reading some good news.";
		favMusic = "Epik High's \"Map the Human Soul,\" Eternal Morning's (Pe2ny and Tablo) \"Soundtrack to a Lost Film,\" Yoshida Brothers\" \"Prism,\" Shonen Knife's \"Rock Animals,\" Radiohead's \"In Rainbows,\" anything I can find of the faster rapper (who actually raps) Korea's Outsider.  And also Kara's \"Honey\" and SNSD's \"Gee.\"  I know.  I know.  Don't send me hate mail about it.";
		favAnime = "Cowboy Bebop, Keno's Journey, Miyazaki films (particularly \"Princess Mononoke,\") FLCL, Vampire Hunter D, and hey, the original Dragonball is money!  Go Oolong!  NOTE: This selection may tell the enlightened anime fan that I need to watch more Anime.  This is fact.";
		favMovies = "Tale of Two Sisters, My Sassy Girl, Always Sunset on 3rd Street (and the sequel,) Slimido, The Protector, Five Deadly Venoms, Chinese Kung Fu films by the big three (Lee, Li and Chan)";
		favTVDrama = "I stopped watching TV except for NFL Football on Sunday.  That said, my friends have DVR, and they assure me that Dexter is a really good show.  I would also suggest watching any HBO series since the mid-90s, particularly Oz.  Given, I grew up watching the jail special while an adolescent...but yeah! Don't judge me and my Adebisi worship!";
		favGames = "Final Fantasy VI, Tecmo Super Bowl, Smash Bros., Myth: The Fallen lords, Starcraft, Tetrinet.";
		favHobbies = "Writing, Basketball, Reading, Freestyling parody lyrics about other GTG members over bad hip-hop songs, Dividing by Zero, Talking.";
		howAsian = "So how does a Cuban/Mexican/mixed European blooded, full American bred boy get into Asian pop culture?  Admittingly, it didn't begin with Seo Taiji and Boys, or Crazy Ken Band, a Kurosawa film, or even an unarticulated obsession with samurai culture. <br><br> It started with an appearance by Jushin Thunder Liger on WCW television.  Liger was a renowned light-heavyweight wrestler, knwon for his flashy style and crazy off the top rope spinny splashes.  Liger hit the first \"450\" I ever saw on TV, an appropriately named wrestling move, for it involves front-flipping 450 degrees onto an opponent. <br><br> Basically, he skull-rammed my world view.  Pretty soon, all of my Teenage Mutant Ninja Turtle action figures were contorting themselves at light speeds in my flolloping fingertips, to crash with centrifugal finality into plastic Hulk Hogans. <br><br> And Liger's theme music was just as eye opening as his acrobatics.  The J-rock/pop that always led to his pyrotechnic entrance made me wonder why all I listened to was country music and the occassional Bone Thugz \"n\" Harmony track when my parents weren't around. <br><br> Not as much as the Tao te Ching would tell me on my first read of it at age 15, when I started listening to Jimi Hendrix and The Doors, or the short stories of Jorge Luis Borges' labyrinths at 17, accompanying the 90's grunge scene and electronic-rock, which would lead to a renewed interest in underground hip-hop and The Mars Volta a year later- <br><br> ...which all has served as a nice fat palate of Americana from which to understand the burgeoning, at times genre-defying Asian music scene, having been re-introduced to the topic with my discovery of Shonen Knife's \"Brand New Knife\" album. <br><br> Since then, I've leapt into Korean and Japanese movies, hip-hop, and the casual romp trhough a Murakami novel. And, for old time's sake, I replay the greatest wrestling match of all time, Toshiaki Kawada versus the late, great Mitsuhara Misawa in the Tokyo Egg Dome. Because you gotta go back to your roots, y'know?";	
	}
	else if(staffName.toLowerCase() == "pineapplepocky")
	{
		picHeader = "About-Us-Pictures/PineapplePocky-Header.png";
		role = "Drawing illustrations, merchandising such as creating buttons and stickers, bookmarks, or tshirts.";
		favMusic = "Bonnie Pink (JP), Naganuma Hideki (JP) , Cibo Matto, ellegarden.";
		favAnime = "Gintama, FLCL.";
		favMovies = "Dead Leaves.";
		favTVDrama = "Don't really watch much tv to know.";
		favGames = "I barely play video games, but I'd say Little Big Planet.";
		favHobbies = "Drawing, manga, anime.";
		howAsian = "Well, first off I'm Chinese. So I sometimes hear about daily news of asia from my parents during dinner about what they read in the Chinese news that day. My sister got me listening to japanese music when I was in highschool, and that lead to anime, and then I learned about manga and dived into that stuff. I am shunned from reality mostly because of this, so the 'culture' I learn is all from reading manga all day. Occasionally a great movie from Asia comes and my brother and I watch it together. After listening to just japanese music, I began to expand my tastes by starting to listen to cantonese and mandarin music a while ago too.";	
	}
	/*else if(staffName.toLowerCase() == "hannah")
	{
		picHeader = "About-Us-Pictures/Hannah-Header.png";
		role = "To analyze and write about Japanese music, Korean music, and Korean movies.  Interviews artists within the Japanese and Korean music realms as well!";
		favMusic = "All Genres!";
		favAnime = "Evangelion, Lovely Complex";
		favMovies = "Attack the Gas Station, Kikujiro";
		favTVDrama = "So I'm Not Handsome (Yuan Lai Wo Bu Shuai), Rookies";
		favGames = "Final Fantasy IV, Suikoden III, Fallout, Starcraft, and Bioshock.";
		favHobbies = "Drawing, writing, piano, and playing Hockey.";
		howAsian = "When I was very young, I remember a Japanese anime movie would come on once a year. Though I was way too young for it, my brothers would sneak me under the coffee table and let me watch it anyway and it was there that I stumbled onto this awesome genre. <br><br> Anime would stay with me for a long time after they had stopped showing the yearly movies. I grew up watching it, so naturally the Asian culture it is a part of followed. Every weekend, my mother and I would rent and watch an Asian film such as Kikujiro, Beijing Bicycle, or Shall We Dance. Therefore, not only was I exposed to the anime culture, but even the cinema of the Eastern world, and it wouldn't be long before I grew just as fond of the music, too. <br><br> Unfortunately, with the hardships of entering college and my whole life changing before my eyes, I completely fell out of the scene. It wouldn't be until I just so happened to stumble across a friend's 'Learn Japanese with Anime' class (http://www.learnjapanesewithanime.com/) that I sprang back into it! Not only was my burning love for anime reignited, but I had also discovered a whole new appreciation for Asian culture. <br><br> Now, I am studying both Japanese and Korean language and taking in as much of these cultures as I can. From music to movies to comics and video games, I've learned these fascinating cultures have so much to offer, and I will strive to do them tribute and bring them to you, the reader!";
	}*/
	/*else if(staffName.toLowerCase() == "urchin")
	{
		picHeader = "About-Us-Pictures/Andrew-Header.png";
		role = "Writes and analyzes what makes a video game great and its underlying trends.  Reviews games from time to time as well.";
		favMusic = "The Pillows, Nine Inch Nails, Asian Kung-Fu Generation, Beck, Maximum The Hormone, Tool.";
		favAnime = "FLCL, Eureka Seven, Samurai Champloo.";
		favMovies = "The Boondock Saints, The Good The Bad and The Ugly, The Lord of The Rings Trilogy, Star Wars (original trilogy), Hero.";
		favTVDrama = "House, Fringe.";
		favGames = "Final Fantasy Tactics Advance, Super Smash Bros. Brawl, POKEMANZ, Golden Sun I & II, Portal, Legend of Zelda Wind Waker, Fallout (series), and Silent Hill 2.";
		favHobbies = "Drawing/painting/arting, playing videogames (of course), watching anime, reading manga, listening to music, trolling 4chan, biking, eating, and sleeping. ";
		howAsian = "I was exposed to shows like Rurouni Kenshin and Tenchi Muyo at a fairly early age (may you rest in peace, Toonami), and that acted as a gateway drug. I started watching anime in my free time, met some friends because of our shared obsession, and started getting into Japanese culture in general. I discovered the joy of Japanese RPGs and bands like The Pillows, pretty much all thanks to my geekiness.";
	}*/
	else if(staffName.toLowerCase() == "sukyan")
	{
		picHeader = "About-Us-Pictures/Sukyan-Header.png";
		role = "To design/draw templates and other artwork needed for Korean Movies/TV section for GTG.  On occasion, will help Jangta with translating Korean.";
		favMusic = "Lee Juck, Nell, Kim Yoon-Ah, Epik High, G-Dragon, Utada Hikaru, Lady Gaga.";
		favAnime = "Gintama, Lucky Star, Evangelion.";
		favMovies = "Nightmare Before Christmas, Corpse Bride, Sympathy for Lady Vengeance, Oldboy, Guns & Talks, Chicago.";
		favTVDrama = "Soulmate, Sex and the City, Galileo, Nobuta wo Produce.";
		favGames = "None";
		favHobbies = "Drawing, calligraphy, drooling over Kpop boybands.";
		howAsian = "I was very much exposed to Asian pop culture, being born and raised in Korea. As I moved into states when I was 12 years old and spent teenage years in California, I started developing a different perspective of looking at Asian pop culture. My point of view isn't exactly Korean or American; And I can express my opinions in a different and refreshing way as a person with unique view. All things aside, enjoying Asian pop culture is such a (guilty) pleasure. My question is, how can you not get into Asian pop culture?";
	}
	else if(staffName.toLowerCase() == "ellis")
	{
		picHeader = "About-Us-Pictures/Ellis-Header.png";
		role = "Drawing and designing for the Culture section of GTG.";
		favMusic = "Glee, Lily Allen, Black Eyed Peas, Lady Gaga, Brown Eyes, ABBA, Rumble Fish, and Frank Sinatra.";
		favAnime = "Ranma 1/2, Gundam 0, Avatar:AtLA (not an anime, I know).";
		favMovies = "Star Trek, Iron Man, Sympathy for Lady Vengeance, Zombieland, Up, and 200 Pound Beauty.";
		favTVDrama = "NCIS, Flashfoward, Painter of the Wind, God of Study, Daily Show, and Nodaime.";
		favGames = "None";
		favHobbies = "Gardening, Cooking, Cleaning, and bossing people around.";
		howAsian = "I was raised as a Korean before an American so I was a immersed in Korean pop culture before I even knew to differentiate between the western and eastern cultures.  I've been watching Korean dramas for as long as I can remember, dancing along to old Korean \"trot\" songs as a child and watching with immense fascination as show hosts teased audience members with snippets of Korean gossip.  As I got older I started to venture off into other popular medias, mostly in America and Japan.  I love music (though I wouldn't be able to answer all that much about any specific names or songs) and the artistic value that comes with popular culture.  I see the public's sway on the popular culture along with the media's attention to celebrities and stardom equally influencing the population.  I want to be a part of this and become a part of this influencing movement, either directly or indirectly.";
	}
	else if(staffName.toLowerCase() == "deshi")
	{
		picHeader = "About-Us-Pictures/Deshi-Header.png";
		role = " Drawing, designing and working with other artists to make pretty art for GTG ;D.";
		favMusic = "DBSK, U-kiss, After School, Ze:A, and Utada Hikaru.";
		favAnime = "One Piece.";
		favMovies = "Brave Story, Tekkonkinkreet, FFAC Complete, and Alice in Wonderland.";
		favTVDrama = "Gokusen.";
		favGames = "Ragnarok Online and Golden Sun";
		favHobbies = "Being Lazy =).";
		howAsian = "I think in elementary school I was into anime like Sailor Moon, Pokemon, Gundam Wing and Digimon. Then it grew further into less mainstream anime and their theme songs then when I started high school BANG! Hallyu wave! Now I'm just into everything.";
	}
	else if(staffName.toLowerCase() == "celest")
	{
		picHeader = "About-Us-Pictures/Celest-Header.png";
		role = " Drawing and designing pictures for GTG!";
		favMusic = "Anything that flows, I don't follow peoples names and titles sadly(except for the ones that is well known and not modern) PS. I am bad with celebrities and pop culture period XD.";
		favAnime = " One Piece~ I have many more...but One Piece is my Top Shonen<3 as for Shoujo...Lovely Complex(mostly reads instead.)";
		favMovies = "Dark Knight, Pixar Movies, Cheesy Chick Flicks/Drama, Tons of scary/suspense(preferred old school). Anime um...One Piece Movie 6<3, Tekkon Kinkreet, Spirited Away(anything my Miyazaki.)";
		favTVDrama = "Supernatural, CSI, CSI Miami, Missing, Judge Shows. Entertainment- Simpsons etc.";
		favGames = "TriAce Games(Radiata Stories, End of Eternity, Valkyrie Profile, Star Ocean etc) Breath Of Fire Series, Pokemon, Mario, Lumines etc.";
		favHobbies = "Drawing, running, sports(for fun, not real play XD), napping.";
		howAsian = "I'm not sure; I am not deeply looking into Asian pop culture. I only watched and played mostly Eastern games.  However, I rather not call it \"getting into\" Asian pop culture since I don't know what's going on (like politics, non-breakin news.) However, I use to be into their Fashion back in 9th to 11th grade.";
	}
	else if(staffName.toLowerCase() == "chacaya")
	{
		picHeader = "About-Us-Pictures/chacaya-Header.png";
		role = "Illustration, design, and collaboration of art pieces within GTG.";
		favMusic = "School Food Punishment, YUI, supercell, and Angela Aki.";
		favAnime = "Baccano, Dyurarara, and Ghost in the Shell.";
		favMovies = "Pan's Labyrinth, Evangelion series, No Country for Old Men, and Spirited Away.";
		favTVDrama = "Japanese variety shows.";
		favGames = "Tales series, Metal Gear Solid series, and Blaz Blue.";
		favHobbies = "Draw, piano, photography, game.";
		howAsian = "I'm Japanese, and I've been drawing, reading manga, watching anime, and playing video games since my childhood.";
	}
	else if(staffName.toLowerCase() == "riisu")
	{
		picHeader = "About-Us-Pictures/Riisu-Header.png";
		role = "Drawing backgrounds for the movies section.";
		favMusic = "Mostly Pop and Jazz. I'm also into Touhou arrangements and Shoji Meguro's lately.";
		favAnime = "Durarara!! BACCANO, Darker than Black, Eden of the East, Code Geass, Gurenn Lagann, and Gundam series.";
		favMovies = "Sherlock Holmes, Pirate of Carribean, Brave Story, and Hachiko.";
		favTVDrama = "Dragon Zakura (JP), Gokusen (JP), Lost (US), Heroes (US), House (US), Garo (JP), You're beautiful (KR), and many more.";
		favGames = "Mostly J-RPGs ; Persona series, Suikoden, Namco Tales series, Star Ocean, NIS games, Ace Attorneys, Pokemon, Prof. Layton, and many MMOs (RO,Dragonica,Cabal,etc.)";
		favHobbies = "Other than playing games and drawing, i think read some books, watch movies, and browse internet for many other things.";
		howAsian = "Mostly because of my brother. He introduced me with classic shounen manga like Dragon Ball, Kung Fu Boy or Astro Boy when i was little and Dad bought me Doraemon. There was also a japanese anime and manga booming in my country. So every cartoon changed into anime, there was a huge pile of japanese manga in bookstores and that's how i attracted to old anime with sparkling eyes or overly fighting scenes in shounen stories. <br><br> Then years later Dad bought consoles and PC games, and that's how i went from anime/manga to video games. The first RPG i played was Star Ocean 2 in PSX, my brother bought it and we played it together. I was suprised there is a game with a beautiful story and good character-design (before, i only play sonic, donald duck, or some fighting/strategy games).. so i started to play more games like SO2. I'm kinda grew up with RPGs.. so it's basically part of my life. <br><br> From video games to asian pop culture it's kinda.. off, i know.But the more i dig about these games, the more i find myself in the middle of asian culture, then suddenly i started liking the culture itself.";
	}
	else if(staffName.toLowerCase() == "matthias")
	{
		picHeader = "About-Us-Pictures/Matthias-Header.png";
		role = "Analyzing and writing topics of culture, to understand and promote the whats, wheres, and hopefully whys of Asian culture.  Basically, I'm going to dive in and explore this wonderful world of Asian culture, and share my findings in a hopefully largely coherent fashion, with a minimum of sidetracking and tangents. (Read: Tangents and sidetracking may happen often.)";
		favMusic = "Classic/alternative/pretty much any kind of rock, soul, jazz, classical, Film and game soundtracks (pretty much anything by John Williams, Ennio Morricone and Yoko Kanno).";
		favAnime = "Cowboy Bebop, The Girl Who Leapt Through Time, Toradora!, Full Metal Alchemist, Outlaw Star.";
		favMovies = "The Shawshank Redemption, The Seven Samurai, The Good The Bad and the Ugly, The Magnificent Seven, Kiss Kiss Bang Bang.";
		favTVDrama = "NCIS, The Big Bang Theory, M*A*S*H, The Avengers (the Emma Peel portion, anyway), a whole bunch of cartoons that are far too numerous to list here.";
		favGames = "Suikoden, Megaman Legends/Rockman DASH, Final Fantasy IX, Persona 4, Resident Evil 3, Wild Arms 3.";
		favHobbies = "I'm a big time media junkie, so I'd have to say a primary part of my free time is spent reading books, graphic novels, comics, and manga, playing video games, watching movies, listening to music, etc. etc.  When not occupied with this, I like to cook, attempt to draw except not on a level comparable to anything professional, write fiction and create far more characters than I will ever use, find ways to incorporate dialogue from movies into everyday conversations, and bash my head into door frames for the amusement of others.";
		howAsian = "I suppose a small interest in Asian culture in general has always been part of my life - my father had an appreciation, a huge respect, for the Japanese and Chinese culture.  I could use chopsticks before I could tie my shoes, it seemed.  So it could be said my first foray into the world of asian culture was via my stomach, I quickly acquired taste for various kinds of asian cuisines - even the sushi my dad wouldn't eat (there is nothing wrong with octopus, you know!) <br><br>Like a lot of American kids, my first exposure to truly Asian pop culture were video games and the ported Japanese shows that I didn't realize WERE ported Japanese shows until a bit later in life - Mario, Zelda, Speed Racer, Power Rangers/Sentai,l and Sailor Moon.  (It's great that I can finally admit to watching Sailor Moon without having to pretend it just \"accidentally came on.\")  Around the time of my transition into middle school, is when I began to actively watch and understand, this was material from a different place entirely - I'd recognized a distinct visual difference between say, Sailor Moon and a western cartoon, and that intrigued me.  Of course around middle school was the time when one word dominated the field of both japan and the world: POKEMON. <br><br>I played the games, watched the show, read the comic, etc. etc.  Pokemon opened to door to me being completely obsessed with anime culture.  That fandom would be sealed by my watching of one particular series at the beginning of my high school life - Cowboy Bebop.  I was forever hooked from that point on - this fantastic, ambrosic blend of sci-fi, western, jazz and blues convinced me anime was awesome. <br><br> But I found something as I went along - I became more and more interested in the stories behind the stories, what exactly made this media distinctly Asian.  I'm the guy who went out and read a copy of Romance of the Three Kindgoms after playing Dynasty Warriors 3 - all 3,000+ pages of it.  I learned what I could about the subject in high school and in college, taking asian/pacific american studies classes, capping with me writing my final paper for my film and media studies minor on the implications anime made about masculinity.  It's a journey that all started from my dad giving mee a piece of tekka maki when I was 5.";
	}
	else if(staffName.toLowerCase() == "goldenboy")
	{
		picHeader = "About-Us-Pictures/goldenboy-Header.png";
		role = "Manages all of GTG forums and is the Manager over all Forum Administrators(Admins) and Moderators (Mods).";
		favMusic = "BoA (JP/KR), Hikaru Utada (JP), Jay Chou (TWN), Jacky Cheung (CHN), Eason Chan (CHN), and David Tao (TWN).";
		favAnime = "FLCL, Eureka Seven, Samurai Champloo.";
		favMovies = "Avatar, Shanghai Kiss, Hero, The Forbidden Kingdom, Crouching Tiger, Hidden Dragon, and God of Gamblers.";
		favTVDrama = "FoodNetwork-Iron Chef (US/JP), Ninja Warrior Game show (JP), Human Tetris Game show(JP)";
		favGames = "Modern Warfare 2, Starcraft.";
		favHobbies = "Socializing with friends, playing board games, basketball, and traveling.";
		howAsian = "Though I am Asian, I did not really get into the Asian pop culture until attending college and meeting friends who introduced me to a broad horizon of interests, where I began absorbing myself into the Asian pop culture. Thanks to the increase development, awareness and promotion of Asian pop culture in America, like many fans I am once again reunited with my roots.";
	}
	/*else if(staffName.toLowerCase() == "vee")
	{
		picHeader = "About-Us-Pictures/Vee-Header.png";
		role = "Writes and analyzes what makes a video game great and its underlying trends.  Reviews games from time to time as well.";
		favMusic = "Although I normally listen to American music, I also enjoy listening to Asian bands like SNSD, Wonder Girls, Yui Horie, Supercell, and Vocaloid.";
		favAnime = "Rozen Maiden, Higurashi No Naku Koro Ni, Rosario + Vampire.";
		favMovies = "Memoirs of a Geisha, Uzumaki.";
		favTVDrama = "Coffee Prince";
		favGames = "Disgaea, Golden Sun, Half Life 2, Pokemon, Touhou Project, Phoenix Wright";
		favHobbies = "The internet, being lazy, sleeping, dancing, voice acting";
		howAsian = "When I was 11, I was first introduced to manga. I had never seen such a unique style of a comic book, and I began reading more and more of them. I eventually ended up reading every single manga that I could find in our library. After reading so much manga, I slowly started watching some different animes. I loved all the unique and different art styles in anime, as well as the plots and storylines. <br><br> When I was 13, I started developing a stronger interest of Asian culture. There was a lot that appealed to me, but I found anime and music to be the most appealing. Many of my friends also had an interest in these topics, and it was fun discussing about it with them. Right now, I still have a pretty strong interest for Asian culture, but I sometimes find it hard to keep up with all the new anime and rising pop stars.";
	}*/
	else if(staffName.toLowerCase() == "raymaru")
	{
		picHeader = "About-Us-Pictures/Raymaru-Header.png";
		role = "Leading the Japanese music section, managing the staff within this area, directing the theme of the Japanese section, contributing writing to the area.";
		favMusic = "B'z (JP), Bonnie Pink (JP), EXILE (JP), YUI (JP), Joe Hisaishi (JP), Jake Shimabukuro (US), Nujabes (JP).";
		favAnime = "GTO (JP), Azumanga Daioh (JP), Tengen Toppa Gurren Lagann (JP), Gunbuster (JP), Ranma 1/2 (JP), Samurai Champloo (JP).";
		favMovies = "Tada Kimi wo Aishiteru (JP), Swing Girls (JP), My Sassy Girl (KR), Hard Boiled (CH), Shichinin no Samurai (JP), Pirates of the Caribbean (US), Red Cliff (CH).";
		favTVDrama = "Kamen Rider Series (JP), Super Sentai Series (JP), Garo (JP), Super Rookie (KR), Battlestar Galactica (US), Lost (US).";
		favGames = "Gyakuten Saiban series, Metal Gear series, Final Fantasy series, Street Fighter series, Advance Wars series, Shin Megami Tensei series, Pokemon series.";
		favHobbies = "Other than the aforementioned 'favorites' topics, I enjoy photography (both digital and analog), karaoke, Japanese language, dance, analyzing film and all other works of art, having fun with the words 'henshin' and 'gattai', and saving the world from super powered villains.";
		howAsian = "My interest in East Asian pop culture has been around since I was a kid. I was a fan of Godzilla and Ranma 1/2, and even my father was a fan of Bruce Lee and Akira Kurosawa. What started off as hobbies and interests evolved into a college career, where I was further exposed to many layers of East Asian culture, from film and music to history and literature. Where has it taken me at this point? I currently live in Nagasaki Prefecture, Japan, teaching English in public schools as part of the JET Program.";
	}
	else if(staffName.toLowerCase() == "jangta")
	{
		picHeader = "About-Us-Pictures/jangta-Header.png";
		role = "Overall designer of the GTG website, coding and fixing bugs and errors, handling the business aspects of the site, delegating team leaders to focus on GTG's vision, leading the Korean music and Korean movie sections, doing HR, and translating. Originally, I wanted to just be the GTG jester, but the team quickly shot that idea down.  But I still love my job, and I wear the multi-pointed jingle bell hat whenever I want: I'm in charge! (Yeah! Yeah!  But seriously, it's a lot of responsibility!)";
		favMusic = "M-Flo(JP), EXILE(JP), Brown Eyes(KR), SES(KR), Epik High(KR), 3rd Coast(KR), and David Tao(TWN).";
		favAnime = "Ranma 1/2, GTO, and Cowboy Bebop.";
		favMovies = "Letters from Iwo Jima(USA/JP), A Tale of Two Sisters(KR), Oldboy(KR), Always Sunset On Third Street and its sequel (JP), Welcome to Dongmakgol (KR), Fearless(CHN), Taegukgi(KR). ";
		favTVDrama = "Super Rookie (KR - drama), My Name is Kim Samsoon (KR - drama), Full House (KR - drama) Pops In Seoul (KR - TV), J-Melo (JP - TV), Star Golden Bell (KR - TV).";
		favGames = "Starcraft, Persona 4, Final Fantasy IV, Final Fantasy VI, Civilization II, XCOM: UFO Defense, Chrono Trigger.";
		favHobbies = "Besides the above activies above, I like working out, learning Asian languages, dating, programming, talking, Hip-Hop dance/choreography, watching pro Korean Starcraft games.";
		howAsian = "I remember exposing myself to Asian pop culture as a teen living in Japan.  Having lived in Japan for seven years because of my dad's job, I slowly got into the music of Asia through game shows and MTV Asia.  Instead of \"Downtown\" Julie Brown in American MTV in the mid 1990s, I was exposed to MTV Asia's attempt of \"Learning English slang with VJ David.\"  Although learning \"yo dawg\" from Taiwanese-American VJ David was an interesting experience, I first learned of a huge Asian music market.  Japanese game shows featuring artists, such as newcomer Utada Hikaru, popular Okinawian Namie Amuro, and Shiina Ringo in her nurse outfit in \"Honnou\" exposed me to some awesome pop sounds outside the US.  The turning point came when I discovered a then-underground multigenre group called M-flo. <br><br> After hearing \"How you like me now\" and buying their first M-flo CD in a local Japanese store, I was truly sold.  I decided to do research in the Asian music scene.  The learning and exposure of new boy bands, girl groups, solo singers, and underground artists flooded my thoughts.  From overseas in Korea came popular girl group, SES, and their new dance-poppy beats from \"Dreams Come True\" and \"Love\".  Shinhwa, HOT, Sech Keis, and GOD represented the new Korean boy bands that had slick cheoreography, great dance tunes, and a lifelong of memories.  Korean-American duo, Jinusean, did the unthinkable - namely, recreate the Bee Gee's \"How Deep is your Love\" with rap - and made me enjoy the song.  Edgy and new Hip-Hop group, Drunken Tiger, made me appreciate the new emerging Hip-Hop movement in Asia.  And David Tao and Faye Wong represented the ever-growing Chinese music market and what they had to offer, as I had many of their tunes on repeat. <br><br> It's pretty funny actually; at first, I really didn't want to take Japanese when I attended various International and American high schools in Japan; I chose Spanish instead.  However, when the Spanish class filled up, I was forced to learn Japanese.  That was one of my best non-decisions of my life.  Now learning Asian languages has been a passion ever since taking beginning Japanese.  From learning the craziness that is Japanese and Chinese kanji, mastering Korean Hangul, not getting tripped up on Japanese grammar, and pronouncing Chinese accents correctly, the Asian pop culture learning has been a great ride. <br><br> Now you, the reader, know my story into the Asian pop scene.  However, this story is nothing special; there are millions of testimonies like this.  I'm sure many GTGers and vistors of the site have their own interesting and exciting stories on how they got into this niche.  I welcome anyone to come and talk to me about their passion of Asian pop culture in the forums, as I would be honored to hear how you first got into the fun called Asian pop culture.";	
	}

    /* Changes the text value */
	document.getElementById("staff-header").src=picHeader;
	document.getElementById("role").innerHTML=role;
	document.getElementById("fav-music").innerHTML=favMusic;
	document.getElementById("fav-anime").innerHTML=favAnime;
	document.getElementById("fav-movies").innerHTML=favMovies;
	document.getElementById("fav-TV-drama").innerHTML=favTVDrama;
	document.getElementById("fav-games").innerHTML=favGames;
	document.getElementById("fav-hobbies").innerHTML=favHobbies;
	document.getElementById("how-asian").innerHTML=howAsian;
}

