/* 
 This file was generated by Dashcode.  
 You may edit this file to customize your widget or web page 
 according to the license.txt file included in the project.
 */

//
// Function: load()
// Called by HTML body element's onload event when the web application is ready to start
//
function load()
{
    dashcode.setupParts();
    hideAddressBar();

}


function hideAddressBar()
{ 
    window.scrollTo(0, 1);
}

function swapToNews()
{
    document.getElementById('news_search').style.display = "block";
    document.getElementById('photo_search').style.display = "none";
    document.getElementById('category_search').style.display = "none";
}
function swapToPhoto()
{
    document.getElementById('news_search').style.display = "none";
    document.getElementById('photo_search').style.display = "block";
    document.getElementById('category_search').style.display = "none";
}
function swapToCategory()
{
    document.getElementById('news_search').style.display = "none";
    document.getElementById('photo_search').style.display = "none";
    document.getElementById('category_search').style.display = "block";
}

function search(){

//	var browser = document.getElementById('browser').object;
//    browser.goForward(document.getElementById('searchResult'), 'Search Result');
    
    
    searchHandler();
}

function keywordSearch(){
	var browser = document.getElementById('browser').object;
    browser.goForward(document.getElementById('newsSearchResult'), 'Search Result');
 //   document.getElementById('searchBy').innerText = 'by News';
    searchvalue = document.getElementById("search_i_news").value;
    
    if (searchvalue != "") {
    document.getElementById("searchTermText").style.display = "none";
    document.getElementById("list1").style.display = "block";
    url ="http://iphone.productionparadise.com/keyword_search_result_entries.php?q=";
    searchURL = url + searchvalue;

	keywordlistController.loadCategoryData(searchURL);
    } else {
    document.getElementById("list1").style.display = "none";
    document.getElementById("searchTermText").style.display = "block";
    }
    
}
function keywordDirectoryEntries(entries) {
    var browser = document.getElementById('browser').object;
    browser.goForward(document.getElementById('keywordSearchResult'), 'Search Result');
 
    document.getElementById('searchEntriesText1').innerText = entries;
   
    searchvalue = document.getElementById("search_i_news").value;
    url ="http://iphone.productionparadise.com/keyword_search_resultsByD.php?q=";
    searchURL = url + searchvalue;
    
	keywordentrieslistController.loadCategoryData(searchURL);

}
function keywordShowcaseEntries(entries) {
    var browser = document.getElementById('browser').object;
    browser.goForward(document.getElementById('showcaseSearchResult'), 'Search Result');
 
    document.getElementById('searchEntriesText2').innerText = entries;
   
    searchvalue = document.getElementById("search_i_news").value;
    url ="http://iphone.productionparadise.com/keyword_search_resultsByS.php?q=";
    searchURL = url + searchvalue;
    
	showcaseentrieslistController.loadCategoryData(searchURL);

}

var keywordlistController = {
        resorts: null,
 		
	loadCategoryData : function(feedURL) {
		
        var feedURL;
        
//        var feedURL = "http://iphone.productionparadise.com/keyword_search_result_entries.php?q=web";

		var xmlRequest = new XMLHttpRequest();
		xmlRequest.onreadystatechange= function() 
		{
			var result= null;
        
			switch(xmlRequest.readyState)
			{
				case 4:
					if(xmlRequest.status==200)
					{
                        keywordlistController.resorts = xmlRequest.responseXML.getElementsByTagName('ResultItem');
                        
						
						var list= document.getElementById('list1');						
						list.object.reloadData();
					
                    }
					break;
                
                case 3:
					break;
		
                default:
					break;
			}
		}

		xmlRequest.open("GET", feedURL);
		xmlRequest.setRequestHeader("Content-type", "text/xml; charset=utf-8");
		xmlRequest.setRequestHeader("Cache-Control", "no-cache");
        xmlRequest.send(null);
	
	},
       
        
    numberOfRows: function() {

        if(this.resorts==null)
		{
			return 0; // Loading text...
		} else {
			return this.resorts.length;
		}
    },
    
    prepareRow: function(rowElement, rowIndex, templateElements) {

        if(this.resorts != null)
		{
       // document.getElementById("activityIndicator").style.visibility = "hidden";
			if (templateElements.label1) {
				templateElements.label1.innerHTML = this.resorts[rowIndex].childNodes[0].childNodes[0].nodeValue;
                templateElements.text1.innerText = this.resorts[rowIndex].childNodes[1].childNodes[0].nodeValue;	
                		}

        var self = this;
        var handler = function() {
            var resort = self.resorts[rowIndex];
             if (resort.childNodes[2].childNodes[0].nodeValue == 1) {
            keywordDirectoryEntries(resort.childNodes[1].childNodes[0].nodeValue);
            } else {
            keywordShowcaseEntries(resort.childNodes[1].childNodes[0].nodeValue)
           // alert("item2");
            }
			//detailController.setRepresentedObject(resort);

//            var browser = document.getElementById('browser').object;
//            browser.goForward(document.getElementById('searchResultDetail'), "");

          //  browser.goForward(document.getElementById('searchResultDetail'), resort.childNodes[1].childNodes[0].nodeValue);

        
        };
       rowElement.onclick = handler;
		} else {
		/*	if (templateElements.rowTitle) {
				templateElements.rowTitle.innerText = "Loading...";
			}
        */
		}
    }

};



var keywordentrieslistController = {
        resorts: null,
 		
	loadCategoryData : function(feedURL) {
		
        var feedURL;
    
        
//        var feedURL = "http://iphone.productionparadise.com/keyword_search_result_entries.php?q=web";

		var xmlRequest = new XMLHttpRequest();
		xmlRequest.onreadystatechange= function() 
		{
			var result= null;
        
			switch(xmlRequest.readyState)
			{
				case 4:
					if(xmlRequest.status==200)
					{
                        keywordentrieslistController.resorts = xmlRequest.responseXML.getElementsByTagName('ResultItem');
                        
						
						var list= document.getElementById('list2');						
						list.object.reloadData();
					
                    }
					break;
                
                case 3:
					break;
		
                default:
					break;
			}
		}

		xmlRequest.open("GET", feedURL);
		xmlRequest.setRequestHeader("Content-type", "text/xml; charset=utf-8");
		xmlRequest.setRequestHeader("Cache-Control", "no-cache");
        xmlRequest.send(null);
	
	},
       
        
    numberOfRows: function() {

        if(this.resorts==null)
		{
			return 0; // Loading text...
		} else {
			return this.resorts.length;
		}
    },
    
    prepareRow: function(rowElement, rowIndex, templateElements) {

        if(this.resorts != null)
		{
       // document.getElementById("activityIndicator").style.visibility = "hidden";
			if (templateElements.label3) {
                templateElements.starbox.innerHTML = "<div class='" + this.resorts[rowIndex].childNodes[0].childNodes[0].nodeValue + "'></div>";
                templateElements.label3.innerHTML = this.resorts[rowIndex].childNodes[1].childNodes[0].nodeValue;
                templateElements.countryCity1.innerHTML = this.resorts[rowIndex].childNodes[2].childNodes[0].nodeValue + ' / ' + this.resorts[rowIndex].childNodes[3].childNodes[0].nodeValue;
	                		}
//alert(this.resorts[rowIndex].childNodes[9].childNodes[0].nodeValue);
        var self = this;
        var handler = function() {
            var resort = self.resorts[rowIndex];
            detailController.setRepresentedObject(resort);

            var browser = document.getElementById('browser').object;
            browser.goForward(document.getElementById('searchResultDetail'), "");

          //  browser.goForward(document.getElementById('searchResultDetail'), resort.childNodes[1].childNodes[0].nodeValue);

        
        };
       rowElement.onclick = handler;
		} else {
		/*	if (templateElements.rowTitle) {
				templateElements.rowTitle.innerText = "Loading...";
			}
        */
		}
    }

};
var showcaseentrieslistController = {
        resorts: null,
 		
	loadCategoryData : function(feedURL) {
		
        var feedURL;
    
        
//        var feedURL = "http://iphone.productionparadise.com/keyword_search_result_entries.php?q=web";

		var xmlRequest = new XMLHttpRequest();
		xmlRequest.onreadystatechange= function() 
		{
			var result= null;
        
			switch(xmlRequest.readyState)
			{
				case 4:
					if(xmlRequest.status==200)
					{
                        showcaseentrieslistController.resorts = xmlRequest.responseXML.getElementsByTagName('ResultItem');
                        
						
						var list= document.getElementById('list3');						
						list.object.reloadData();
					
                    }
					break;
                
                case 3:
					break;
		
                default:
					break;
			}
		}

		xmlRequest.open("GET", feedURL);
		xmlRequest.setRequestHeader("Content-type", "text/xml; charset=utf-8");
		xmlRequest.setRequestHeader("Cache-Control", "no-cache");
        xmlRequest.send(null);
	
	},
       
        
    numberOfRows: function() {

        if(this.resorts==null)
		{
			return 0; // Loading text...
		} else {
			return this.resorts.length;
		}
    },
    
    prepareRow: function(rowElement, rowIndex, templateElements) {

        if(this.resorts != null)
		{
       // document.getElementById("activityIndicator").style.visibility = "hidden";
			if (templateElements.label2) {
                templateElements.label2.innerHTML = this.resorts[rowIndex].childNodes[1].childNodes[0].nodeValue;
                templateElements.text6.innerHTML = this.resorts[rowIndex].childNodes[0].childNodes[0].nodeValue;
	                		}

        var self = this;
        var handler = function() {
            var resort = self.resorts[rowIndex];
            showcaseDetailController.setRepresentedObject(resort);

            var browser = document.getElementById('browser').object;
            browser.goForward(document.getElementById('showcaseSearchResultDetails'), "");

          //  browser.goForward(document.getElementById('searchResultDetail'), resort.childNodes[1].childNodes[0].nodeValue);

        
        };
       rowElement.onclick = handler;
		} else {
		/*	if (templateElements.rowTitle) {
				templateElements.rowTitle.innerText = "Loading...";
			}
        */
		}
    }

};

function photoSearch(){
	var browser = document.getElementById('browser').object;
    browser.goForward(document.getElementById('photoSearchResult'), 'Search Result');
    
    searchvalue = document.getElementById("search_i_photo").value;
    url = "http://iphone.productionparadise.com/media_search_result_entries.php?q=";
    searchurl = url + searchvalue;
    
    if (searchvalue != "") {
    var req = new XMLHttpRequest (); 
	req.open ('GET', searchurl, false); 
	req.setRequestHeader("Cache-Control", "no-cache"); 
	req.send(null);
	response = req.responseText;
    
	document.getElementById('photoSearchEntriesText').innerHTML = response;
    getphotoSearch();
    } else {
    document.getElementById('photoSearchEntriesText').innerHTML = "Please, insert a term to search";
    document.getElementById('photoVideoBox').innerHTML = "";
    }
    
}

function getphotoSearch(){
    searchvalue = document.getElementById("search_i_photo").value;
    url = "http://iphone.productionparadise.com/media_search_results.php?q=";
    searchurl = url + searchvalue;
    
    var req = new XMLHttpRequest (); 
	req.open ('GET', searchurl, false); 
	req.setRequestHeader("Cache-Control", "no-cache"); 
	req.send(null);
	response = req.responseText;

	document.getElementById('photoVideoBox').innerHTML = response;
    
}


function searchHandler()
{
	var browser = document.getElementById('browser').object;
    browser.goForward(document.getElementById('searchResult'), 'Search Result');

//  search_result_entries();
//	listController.loadCategoryData();
	var searchCategory = document.Search.category_id.options[document.Search.category_id.selectedIndex].value;
	var searchCountry = document.Search.country_id.options[document.Search.country_id.selectedIndex].value;
	var searchCity = document.Search.city_id.options[document.Search.city_id.selectedIndex].value;
	var searchWord;
	if (document.getElementById("search_word").value == "Search company") {
		searchWord = "";
	} else {
		searchWord = document.getElementById("search_word").value;
	}


//alert(searchCategory+", "+searchCountry+", "+searchCity+", "+searchWord);

	if (document.getElementById("search_country").disabled == true)
	{   
	searchEntrieURL = "search_result_entries.php?search_category=" + searchCategory + "&search_word=" + searchWord;
	searchResultURL = "search_result_new.php?search_category=" + searchCategory + "&search_word=" + searchWord;
	}
	else {
    searchEntrieURL = "search_result_entries.php?search_category=" + searchCategory + "&search_country=" + searchCountry + "&search_city=" + searchCity + "&search_word=" + searchWord;
    searchResultURL = "search_result.php?search_category=" + searchCategory + "&search_country=" + searchCountry + "&search_city=" + searchCity + "&search_word=" + searchWord;

	}
		
	search_result_entries(searchEntrieURL);
	listController.loadCategoryData(searchResultURL);
	
//    var stackLayout = document.getElementById('stackLayout').object; 
//    stackLayout.setCurrentView('searchResult');
	

  

    
}

function search_result_entries(searchURL)
{
	var req = new XMLHttpRequest (); 
//	req.open ('GET', "http://iphone.productionparadise.com/search_result_entries.php?search_category=&search_word=GOETZELMANN", false); 
    req.open ('GET', searchURL, false); 
	req.setRequestHeader("Cache-Control", "no-cache"); 
	req.send(null);
	response = req.responseText;

	document.getElementById('searchEntriesText').innerText = response;
	
//	searchController.setObject("Search");
/*	var stackLayout = document.getElementById('stackLayout').object;
	var browser = document.getElementById('browser').object;
    browser.goForward(document.getElementById('searchResult'), "Search Result", stackLayout.setCurrentView('searchView'));
*/}


var listController = {
        resorts: null,
 		
	loadCategoryData : function(feedURL) {
		
//		var feedURL = "http://iphone.productionparadise.com/search_result_new.php?search_category=&search_word=GOETZELMANN";

        var feedURL;

		var xmlRequest = new XMLHttpRequest();
		xmlRequest.onreadystatechange= function() 
		{
			var result= null;
        
			switch(xmlRequest.readyState)
			{
				case 4:
					if(xmlRequest.status==200)
					{
                        listController.resorts = xmlRequest.responseXML.getElementsByTagName('ResultItem');
                        
						
						var list= document.getElementById('list');						
						list.object.reloadData();
					
                    }
					break;
                
                case 3:
					break;
		
                default:
					break;
			}
		}

		xmlRequest.open("GET", feedURL);
		xmlRequest.setRequestHeader("Content-type", "text/xml; charset=utf-8");
		xmlRequest.setRequestHeader("Cache-Control", "no-cache");
        xmlRequest.send(null);
	
	},
       
        
    numberOfRows: function() {

        if(this.resorts==null)
		{
			return 0; // Loading text...
		} else {
			return this.resorts.length;
		}
    },
    
    prepareRow: function(rowElement, rowIndex, templateElements) {

        if(this.resorts != null)
		{
        document.getElementById("activityIndicator").style.visibility = "hidden";
			if (templateElements.label) {
                templateElements.starbox1.innerHTML = "<div class='" + this.resorts[rowIndex].childNodes[0].childNodes[0].nodeValue + "'></div>";
				templateElements.label.innerText = this.resorts[rowIndex].childNodes[1].childNodes[0].nodeValue;
				templateElements.countryCity.innerText = this.resorts[rowIndex].childNodes[2].childNodes[0].nodeValue + ' / ' + this.resorts[rowIndex].childNodes[3].childNodes[0].nodeValue;
			}

        var self = this;
        var handler = function() {
            var resort = self.resorts[rowIndex];
           
			detailController.setRepresentedObject(resort);

            var browser = document.getElementById('browser').object;
            browser.goForward(document.getElementById('searchResultDetail'), "");
          
          //  browser.goForward(document.getElementById('searchResultDetail'), resort.childNodes[1].childNodes[0].nodeValue);

        
        };
       rowElement.onclick = handler;
		} else {
        document.getElementById("activityIndicator").style.visibility = "visible";
		/*	if (templateElements.rowTitle) {
				templateElements.rowTitle.innerText = "Loading...";
			}
        */
		}
    }

};


var detailController = {
    // This object acts as a controller for the detail UI.
    
    setRepresentedObject: function(resort) {
        this._resort = resort;
        this._representedObject = this._resort.childNodes[1].childNodes[0].nodeValue;
   //    this._representedObject = "";
        
        //Image
        var imageBox = document.getElementById('imageBox');
        imageBox.innerHTML = this._resort.childNodes[4].childNodes[0].nodeValue;
  /*    
  		  var imageBox = document.getElementById('imageBox');
       // imageBox.innerHTML = this._resort.childNodes[4].childNodes[0].nodeValue;
       if (this._resort.childNodes[13].childNodes[0].nodeValue == " ") {
       imageBox.innerHTML = '<img src="' + this._resort.childNodes[4].childNodes[0].nodeValue + '" border="0">';
       } else {
               imageBox.innerHTML = '<a href="' + this._resort.childNodes[13].childNodes[0].nodeValue + '" ><img src="' + this._resort.childNodes[4].childNodes[0].nodeValue + '" border="0"></a>';
       }
        */
        //Country and City
        var countryAndCity = document.getElementById('countryAndCity');
        countryAndCity.innerText = this._resort.childNodes[2].childNodes[0].nodeValue + ' / ' + this._resort.childNodes[3].childNodes[0].nodeValue;
        
        //Name
        var nameBox = document.getElementById('nameBox');
        if (this._resort.childNodes[5].childNodes[0].nodeValue == ' '){
        	nameBox.innerHTML = this._resort.childNodes[1].childNodes[0].nodeValue;
        } else {
        	nameBox.innerHTML = this._resort.childNodes[1].childNodes[0].nodeValue + '<br><span class="addname">' + this._resort.childNodes[5].childNodes[0].nodeValue + '</span>';	
        }
        
        //Street Number
        var streetnumberBox = document.getElementById('streetnumberBox');
        if (this._resort.childNodes[7].childNodes[0].nodeValue == ' '){
        	streetnumberBox.innerHTML = '';
        	document.getElementById('addressBox').style.display = "none";
        } else {
        	document.getElementById('addressBox').style.display = "block";
        	streetnumberBox.innerHTML = this._resort.childNodes[6].childNodes[0].nodeValue + '<br>' + this._resort.childNodes[7].childNodes[0].nodeValue;
//        	document.getElementById('addressBox').onClick = "window.open('http://maps.google.com/maps?q=" + this._resort.childNodes[10].childNodes[0].nodeValue + this._resort.childNodes[12].childNodes[0].nodeValue + " (" + this._resort.childNodes[1].childNodes[0].nodeValue + ")')";
			streetnumberBox.innerHTML ="<a href='http://maps.google.com/maps?q=" + this._resort.childNodes[6].childNodes[0].nodeValue + this._resort.childNodes[7].childNodes[0].nodeValue + " (" + this._resort.childNodes[1].childNodes[0].nodeValue + ")'>" +  this._resort.childNodes[6].childNodes[0].nodeValue + '<br>' + this._resort.childNodes[7].childNodes[0].nodeValue + "</a>";
        }        
        
        //Phone
        var phoneBox = document.getElementById('phoneBox');
        if (this._resort.childNodes[8].childNodes[0].nodeValue ==' ') {
        	if (this._resort.childNodes[9].childNodes[0].nodeValue ==' ') {
        		if (this._resort.childNodes[10].childNodes[0].nodeValue ==' ') {
        			if (this._resort.childNodes[11].childNodes[0].nodeValue ==' ') {
        				phoneBox.innerHTML = '';
        				document.getElementById('callBox').style.display = "none";
        			} else {
        				document.getElementById('callBox').style.display = "block";
        		phoneBox.innerHTML = this._resort.childNodes[11].childNodes[0].nodeValue;
        			}
        		} else {
        			document.getElementById('callBox').style.display = "block";
        		phoneBox.innerHTML = this._resort.childNodes[10].childNodes[0].nodeValue + this._resort.childNodes[11].childNodes[0].nodeValue;
        		}
        	} else {
        		document.getElementById('callBox').style.display = "block";
        		phoneBox.innerHTML = this._resort.childNodes[9].childNodes[0].nodeValue + this._resort.childNodes[10].childNodes[0].nodeValue + this._resort.childNodes[11].childNodes[0].nodeValue;
        	}
        } else {
        	document.getElementById('callBox').style.display = "block";
        	phoneBox.innerHTML = this._resort.childNodes[8].childNodes[0].nodeValue + this._resort.childNodes[9].childNodes[0].nodeValue + this._resort.childNodes[10].childNodes[0].nodeValue + this._resort.childNodes[11].childNodes[0].nodeValue;
        } 
        
        //Mail - Web	
        var mailBox = document.getElementById('mailBox');
        if (this._resort.childNodes[12].childNodes[0].nodeValue ==' ') {
        	if (this._resort.childNodes[13].childNodes[0].nodeValue ==' ') {
        		if (this._resort.childNodes[14].childNodes[0].nodeValue ==' ') {
        			if (this._resort.childNodes[15].childNodes[0].nodeValue ==' ') {
        				mailBox.innerHTML = '';
        				document.getElementById('internetBox').style.display = "none";
        			} else {
	        			document.getElementById('internetBox').style.display = "block";
        				mailBox.innerHTML = this._resort.childNodes[15].childNodes[0].nodeValue;
        			}
        		} else {
        			document.getElementById('internetBox').style.display = "block";
        			mailBox.innerHTML = this._resort.childNodes[14].childNodes[0].nodeValue + this._resort.childNodes[14].childNodes[0].nodeValue + this._resort.childNodes[15].childNodes[0].nodeValue;
        		}
        	} else {
        		document.getElementById('internetBox').style.display = "block";
        		mailBox.innerHTML = this._resort.childNodes[13].childNodes[0].nodeValue + this._resort.childNodes[14].childNodes[0].nodeValue + this._resort.childNodes[15].childNodes[0].nodeValue;
        	}
        } else {
        	document.getElementById('internetBox').style.display = "block";
        	mailBox.innerHTML = this._resort.childNodes[12].childNodes[0].nodeValue + this._resort.childNodes[13].childNodes[0].nodeValue + this._resort.childNodes[14].childNodes[0].nodeValue + this._resort.childNodes[15].childNodes[0].nodeValue;
        } 
        
       // alert('<a href="http://' + this._resort.childNodes[14].childNodes[0].nodeValue + '" >' + this._resort.childNodes[14].childNodes[0].nodeValue + '</a>');
        
        //AddInfo
        var addinfoBox = document.getElementById('addinfoBox');
        if (this._resort.childNodes[16].childNodes[0].nodeValue ==' ') {
        	addinfoBox.innerHTML = '';
        	document.getElementById('infoBox').style.display = "none";
        } else {
        	document.getElementById('infoBox').style.display = "block";
        	addinfoBox.innerHTML = this._resort.childNodes[16].childNodes[0].nodeValue;
        } 
    }
    
};
/*
this.resorts[rowIndex].childNodes[1].childNodes[0].nodeValue = name
this.resorts[rowIndex].childNodes[3].childNodes[0].nodeValue = country
this.resorts[rowIndex].childNodes[5].childNodes[0].nodeValue = city
this.resorts[rowIndex].childNodes[7].childNodes[0].nodeValue = image
this.resorts[rowIndex].childNodes[8].childNodes[0].nodeValue = addname
this.resorts[rowIndex].childNodes[10].childNodes[0].nodeValue = streetnumber
this.resorts[rowIndex].childNodes[12].childNodes[0].nodeValue = cityzip
this.resorts[rowIndex].childNodes[14].childNodes[0].nodeValue = phone
this.resorts[rowIndex].childNodes[16].childNodes[0].nodeValue = fax
this.resorts[rowIndex].childNodes[18].childNodes[0].nodeValue = mobile
this.resorts[rowIndex].childNodes[20].childNodes[0].nodeValue = addphone
this.resorts[rowIndex].childNodes[22].childNodes[0].nodeValue = mail
this.resorts[rowIndex].childNodes[24].childNodes[0].nodeValue = addmail
this.resorts[rowIndex].childNodes[26].childNodes[0].nodeValue = website
this.resorts[rowIndex].childNodes[28].childNodes[0].nodeValue = addwebsite
this.resorts[rowIndex].childNodes[30].childNodes[0].nodeValue = addinfo
*/
var showcaseDetailController = {
    // This object acts as a controller for the detail UI.
    
    setRepresentedObject: function(resort) {
        this._resort = resort;
    //    this._representedObject = this._resort.childNodes[3].childNodes[0].nodeValue;
   //    this._representedObject = "";
        
        //Image
        var showcaseImgBox = document.getElementById('showcaseImgBox');
        showcaseImgBox.innerHTML = this._resort.childNodes[2].childNodes[0].nodeValue;
        
        //Titel
        var showcaseTitelBox = document.getElementById('showcaseTitelBox');
        showcaseTitelBox.innerText = this._resort.childNodes[0].childNodes[0].nodeValue + ' | ' + this._resort.childNodes[1].childNodes[0].nodeValue;
        
        //Text
        var showcaseTextBox = document.getElementById('showcaseTextBox');
        showcaseTextBox.innerHTML = this._resort.childNodes[4].childNodes[0].nodeValue;
        
        
        //Credits
             
        
        //Visit
        var visitTextBox = document.getElementById('visitTextBox');
        visitTextBox.innerHTML = this._resort.childNodes[6].childNodes[0].nodeValue;        
            }
    
};
