<!-- hide this stuff from other browsers  
var BrowserDetect = 
{
    init: function()
    {
        this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
        this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version";
        this.OS = this.searchString(this.dataOS) || "an unknown OS";
    },

    searchString: function(data)
    {
        for (var c = 0; c < data.length; c++)
        {
            var dataString = data[c].string;
            var dataProp = data[c].prop;
            this.versionSearchString = data[c].versionSearch || data[c].identity;
            if (dataString)
            {
                if (dataString.indexOf(data[c].subString) != -1)
                    return data[c].identity;
            }
            else if (dataProp)
            {
                return data[c].identity;
            }
        }
    },

    searchVersion: function(dataString)
    {
        var index = dataString.indexOf(this.versionSearchString);
        if (index == -1) return;
        return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
    },

    dataBrowser: 
    [
        {
            string: navigator.userAgent,
            subString: "Chrome",
            identity: "Chrome"
        },
        { string: navigator.userAgent,
            subString: "OmniWeb",
            versionSearch: "OmniWeb/",
            identity: "OmniWeb"
        },
        {
            string: navigator.vendor,
            subString: "Apple",
            identity: "Safari",
            versionSearch: "Version"
        },
        {
            prop: window.opera,
            identity: "Opera"
        },
        {
            string: navigator.vendor,
            subString: "iCab",
            identity: "iCab"
        },
        {
            string: navigator.vendor,
            subString: "KDE",
            identity: "Konqueror"
        },
        {
            string: navigator.userAgent,
            subString: "Firefox",
            identity: "Firefox"
        },
        {
            string: navigator.vendor,
            subString: "Camino",
            identity: "Camino"
        },
        {		// for newer Netscapes (6+)
            string: navigator.userAgent,
            subString: "Netscape",
            identity: "Netscape"
        },
        {
            string: navigator.userAgent,
            subString: "MSIE",
            identity: "Explorer",
            versionSearch: "MSIE"
        },
        {
            string: navigator.userAgent,
            subString: "Gecko",
            identity: "Mozilla",
            versionSearch: "rv"
        },
        { 		// for older Netscapes (4-)
            string: navigator.userAgent,
            subString: "Mozilla",
            identity: "Netscape",
            versionSearch: "Mozilla"
        }
    ],
    dataOS: 
    [
        {
            string: navigator.platform,
            subString: "Win",
            identity: "Windows"
        },
        {
            string: navigator.platform,
            subString: "Mac",
            identity: "Mac"
        },
        {
            string: navigator.platform,
            subString: "Linux",
            identity: "Linux"
        }
    ]
};

BrowserDetect.init();


var browser = "IE";
if(document.getElementById)
{
    browser = "IE";
	window.onload = onLoadFunction;
	window.onresize = onResize;
}
else if(document.getElementById && !document.all)
{
    browser = "FireFox";
	window.attachEvent("onload", onLoadFunction);
	window.attachEvent("onresize", onResize);
}
else if(window.opera && window.print)
{
    browser = "Opera";
	window.addEventListener("load", onLoadFunction, false);
	window.addEventListener("onresize", onResize, false);
}

var dum = 0;
var currentPage = "";
var ShowSideFrame = true;
function UnionStation(Source, addToArray, pageName)
{
//alert(20);
	if(addToArray)
		PushPageVisit(Source);

	//lblLoading.innerText = "Loading, please wait...";

	if(Source.indexOf("?") == -1)
	{
		dum++;
		Source += "?dum=" + dum;
	}
	else
	{
		dum++;
		Source += "&dum=" + dum;
	}

//alert(22);
	LoadPage(Source, Source);

//alert(23);
	//lblLoading.innerText = "";
	window.scrollTo(0, 0);
	currentPage = pageName;

	//window.location.href = window.location.href + "#test";
}

function onResize()
{
	var height = window.document.body.clientHeight;
	var width = window.document.body.clientWidth;
	//alert(width);

	//WriteCookie("Width", (width-206-30), 1);
	WriteCookie("Width", 1000, 1);
	WriteCookie("Height", (height-30-16), 1);

	var OrderCDs1 = document.getElementById("tblOrderCDs1");
	var OrderCDs0 = document.getElementById("tblOrderCDs0");

    if(width > 1000)
    {
	    //alert(OrderCDs1.style.left);
	    OrderCDs1.style.left = (width-1000)/2 + 'px';
	    OrderCDs0.style.left = (width-1000)/2 + 'px';
	    //alert(OrderCDs1.style.left);
	}
}

function onLoadFunction()
{
    //alert(browser);
	onResize();
}

var objXMLHTTP;

function LoadXMLDoc(url, source)
{
	if(window.ActiveXObject)// code for IE
	{
		objXMLHTTP = new ActiveXObject("Msxml2.XMLHTTP");
		if(objXMLHTTP)
		{
			objXMLHTTP.onreadystatechange = XMLHTTPChange;
			objXMLHTTP.open("GET", url);//, true);
			objXMLHTTP.send(source);
		}
	}
	else if(window.objXMLHTTPRequest)// code for Mozilla, etc.
	{
		objXMLHTTP = new objXMLHTTPRequest();
		objXMLHTTP.onreadystatechange = XMLHTTPChange;
		objXMLHTTP.open("GET", url);//, true);
		objXMLHTTP.send(source);
	}
}

function LoadPage(url, source)
{
//alert(30);
	if(window.ActiveXObject)// code for IE
	{
//alert(31);
		objXMLHTTP = new ActiveXObject("Msxml2.XMLHTTP");
	}
	else if(window.XMLHttpRequest)// code for Mozilla, etc.
	{
//alert(32);
        browser = "FireFox";
		objXMLHTTP = new XMLHttpRequest();
	}
	else
	{
//alert(33);
		alert("Your browser does not support XMLHTTP.")
	}

//alert(34);
	if(objXMLHTTP)
	{
//alert(35);
		objXMLHTTP.onreadystatechange = XMLHttpChangePage;
//alert(36);
		objXMLHTTP.open("GET", url, false);
//alert(37);
		objXMLHTTP.send(source);
//alert(source);
        if(browser == "FireFox") XMLHttpChangePage();
//alert(38);
	}
	else
	{
	//alert(3600);
	}
}

function XMLHttpChangePage()
{
//alert(40);
//alert(objXMLHTTP.readyState);
	if(objXMLHTTP.readyState == 4)
	{
		//lblError.innerText = "";
        var strResponse = objXMLHTTP.responseText;

//alert(41);
        switch(objXMLHTTP.status) 
        {
            // Page-not-found error
            case 404:
//alert(42);
                alert('Error: Not Found. The requested URL ' + " <site goes here> " + ' could not be found.');
                break;

            // Display results in a full window for server-side errors
            case 500:
//alert(43);
                HandleErrFullPage(strResponse);
                break;

            case 200:
//alert(44);
                // Call JS alert for custom error or debug messages
                if (strResponse.indexOf('Error:') == -1 || 
                    strResponse.indexOf('Debug:') == -1)
                {
					var xmlDoc = objXMLHTTP.responseText;
					DecodeHTML(xmlDoc);
                }
                else // Call the desired result function
                {
					alert("Error loading page.\n" + strResponse);
                }
                break;
                
            default:
//alert(45);
                // Call JS ////alert for custom error or debug messages
                if (strResponse.indexOf('Error:') == -1 || 
                    strResponse.indexOf('Debug:') == -1)
                {
//alert(46);
					var xmlDoc = objXMLHTTP.responseText;
					DecodeHTML(xmlDoc);
                }
                else // Call the desired result function
                {
					alert("Error loading page.\n" + strResponse);
                }
                break;
        }
   }
}

function XMLHTTPChange()
{
//alert(50);
	if(objXMLHTTP.readyState == 4)
	{
//alert(51);
        var strResponse = objXMLHTTP.responseText;
        switch(objXMLHTTP.status) 
        {
            // Page-not-found error
            case 404:
//alert(52);
                alert('Error: Not Found. The requested URL ' + strURL + ' could not be found.');
                break;

            // Display results in a full window for server-side errors
            case 500:
//alert(53);
                HandleErrFullPage(strResponse);
                break;

            default:
//alert(54);
                // Call JS //alert for custom error or debug messages
                if (strResponse.indexOf('Error:') == -1 || 
                    strResponse.indexOf('Debug:') == -1)
                {
					alert(strResponse);
                }
                else // Call the desired result function
                {
//alert(55);
					var xmlDoc = objXMLHTTP.responseText;
					PanelBody.innerHTML = xmlDoc;
                }
                break;
        }
   }
}

function HandleErrFullPage(strIn) 
{
	var errorWin;

	try 
	{
		errorWin = window.open('', 'errorWin');
		errorWin.document.body.innerHTML = strIn;
	}
	catch(e) 
	{
		alert('An error occurred, but the error message cannot be' +
		' displayed because of your browser\'s pop-up blocker.\n' +
		'Please allow pop-ups from this Web site.');
	}
}

//var SentByDefEmail = false;
function DecodeHTML(htmlString)
{
	htmlString = OnlyBetweenDivHeres(htmlString);
	document.getElementById("divDisplay").innerHTML = htmlString;
}

function OnlyBetweenDivHeres(htmlString)
{
	var index1 = -1;
	var index2 = -1;

	index1 = htmlString.indexOf("<div id=\"StartHere\">");
	index2 = htmlString.indexOf("<div id=\"EndHere\">");

	if(index1 != -1)
		index1 = index1+26;

	if(index1 != -1 && index2 != -1)
	{
		htmlString = htmlString.substring(index1, index2);
	}

	return htmlString;
}

function RemoveHeader(htmlString)
{
	var index = -1;
	index = htmlString.indexOf("<input");
	if(index != -1)
		htmlString = htmlString.substring(index);

	return htmlString;
}

function RemoveFooter(htmlString)
{
	var index = -1;
	index = htmlString.indexOf("</form>");
	if(index != -1)
		htmlString = htmlString.substring(0, index);

	return htmlString;
}

var pagesArray = new Array(255);
var pagesIndex = -1;
function PushPageVisit(page)
{
	pagesIndex = pagesIndex + 1;

	if(pagesIndex >= 255)
	{
		pagesIndex = 255;
		for(var c=0;c<=254;c++)
		{
			pagesArray[c] = pagesArray[c+1];
		}
	}

	for(var c=255;c>pagesIndex;c--)
		pagesArray[c] = "";

	pagesArray[pagesIndex] = page;
}

function PrevPageVisit()
{
	if(pagesIndex != 0)
		pagesIndex = pagesIndex - 1;

	return pagesArray[pagesIndex];
}

function NextPageVisit()
{
	if(pagesIndex == 255)
		return "";

	pagesIndex = pagesIndex + 1;

	if(pagesArray[pagesIndex] == null)
	{
		pagesIndex = pagesIndex - 1;
		return "";
	}

	if(pagesArray[pagesIndex] == "")
	{
		pagesIndex = pagesIndex - 1;
		return "";
	}

	return pagesArray[pagesIndex];
}

function btnBack_Click()
{
	var gotoPage = "";
	gotoPage = PrevPageVisit();
	
	if(gotoPage != null && gotoPage != "" && gotoPage != "null")
	{
		var addme = "";
		if(gotoPage.indexOf("?") == -1) 
			addme = "?isB=1";
		else 
			addme = "&isB=1";

		UnionStation(gotoPage+addme, false, gotoPage);
	}
}

function btnForward_Click()
{
	var gotoPage = "";
	gotoPage = NextPageVisit();
	
	if(gotoPage != null && gotoPage != "" && gotoPage != "null")
		UnionStation(gotoPage, false, gotoPage);
}

function GetCookieVal2(offset)
{
	var endstr = document.cookie.indexOf(";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;

	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie2(name) 
{
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var x = 0;
	while (x < clen) 
	{
		var y = x + alen;
		if (document.cookie.substring(x, y) == arg)
			return GetCookieVal(y);
		x = document.cookie.indexOf(" ", x) + 1;
		if (x == 0) break;
	}

	return "";
}

function WriteCookie2(cookieName, cookieValue, days) 
{
	var expire = 1000 * 60 * 60 * 24 * days
	var expDate = new Date();

	if(expire)
	{
		expDate.setTime (expDate.getTime() + expire);
		document.cookie = cookieName + "=" + escape (cookieValue) + ";expires=" + expDate.toGMTString();
	}
	else
	{
		document.cookie = cookieName + "=" + escape (cookieValue);
	}
}

function ReplaceOddities(val)
{
	var val2 = val;
	val2 = replaceAll(val2, " ", "___", 20);
	val2 = replaceAll(val2, "&", "_A_", 20);
	val2 = replaceAll(val2, ")", "_C_", 20);
	val2 = replaceAll(val2, "#", "_D_", 20);
	val2 = replaceAll(val2, "!", "_E_", 20);
	val2 = replaceAll(val2, "$", "_M_", 20);
	val2 = replaceAll(val2, "/n","_N_", 20);
	val2 = replaceAll(val2, "(", "_O_", 20);
	val2 = replaceAll(val2, "+", "_P_", 20);
	val2 = replaceAll(val2, "=", "_Q_", 20);
	val2 = replaceAll(val2, "/t","_T_", 20);
	val2 = replaceAll(val2, "^", "_U_", 20);
	return val2;
}

function replaceAll(orig, fnd, rep, max)
{
	var v2 = orig;
	var c=0;
	while(v2.indexOf(fnd) != -1 && c<max)
	{
		v2 = v2.replace(fnd, rep);
		c++;
	}
	return v2;
}

function PicClick(picName)
{
	document.getElementById("divHideCB").style.visibility = "hidden";
	var w = GetCookie2("Width");
	var h = GetCookie2("Height");
	
	document.getElementById("divHideCB").style.width = "1px";
	document.getElementById("divHideCB").style.height = "1px";

	UnionStation("./Pages/PicturePopUp.aspx?pic=" + picName + "&h=" + h + "&w=" + w, true, "PicturePopUp");
}

function GoBackPhotos()
{
	var evID = GetCookie2("ev");
	var mmID = GetCookie2("mm");
	var w = GetCookie2("Width");
	var h = GetCookie2("Height");
	
	document.getElementById("divHideCB").style.width = "500px";
	document.getElementById("divHideCB").style.height = "120px";

	document.getElementById("divHideCB").style.visibility = "visible";

	UnionStation("./Pages/Photos.aspx?e=" + evID + "&m=" + mmID + "&w=" + w + "&h=" + h, true, "PicturePopUp");
}

function ReportCookies()
{
    alert(GetCookie("Width"));
    alert(GetCookie("Height"));
}

function btnJavaLogin_Click()
{
    var u = window.document.form1.txtUser.value;
    var p = window.document.form1.txtPass.value;
    
	UnionStation("./UserInput/Main.aspx?u="+u+"&p="+p, true, "Main");
}

function btnLogin2_Click()
{
	UnionStation("Login.aspx", true, "Main");
}

var map;
var mapMini;
var mapCount = 1;
function LoadMaps()
{
    var mapGIcons = [];
    var mapGeoCoder = new GClientGeocoder();

    mapCount = 1;
    if(GBrowserIsCompatible()) 
    {
        mapGIcons[0] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_red.png");
        mapGIcons[1] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_blue.png");
        mapGIcons[2] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_green.png");
        mapGIcons[3] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_yellow.png");
        mapGIcons[4] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_purple.png");
        mapGIcons[5] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_orange.png");
        mapGIcons[6] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_white.png");
        mapGIcons[7] = new GIcon(G_DEFAULT_ICON, "http://labs.google.com/ridefinder/images/mm_20_black.png");

        for(var c=0;c<=7;c++)
        {
            //mapGIcons[c].iconSize = new GSize(12, 20);
            //mapGIcons[c].iconAnchor = new GPoint(7, 28);
            mapGIcons[c].shadowSize = new GSize(0,0);
        }

        map = new GMap2(document.getElementById("divMap"));
        map.addControl(new GLargeMapControl());
        map.enableScrollWheelZoom();
        map.setCenter(new GLatLng(42.0, -91.0), 5);

        
        map.addControl(new GMapTypeControl());




        // Read the data from example.xml
        GDownloadUrl("../Code/googleloc.xml", 
                    function(doc)
                    {
                        var xmlDoc = GXml.parse(doc);
                        var markers = xmlDoc.documentElement.getElementsByTagName("marker");

                        for (var c = 0; c < markers.length; c++) 
                        {
                            // obtain the attribues of each marker
                            var lat = parseFloat(markers[c].getAttribute("lat"));
                            var lng = parseFloat(markers[c].getAttribute("lng"));
                            var point = new GLatLng(lat,lng);
                            var html = markers[c].getAttribute("html");
                            var label = markers[c].getAttribute("label");
                            // create the marker
                            var marker = createMarker(point,label,html);
                            map.addOverlay(marker);
                        }
                    });








        //mapGeoCoder.getLatLng("Madison, WI", DrawCenter);

        /*var list = document.getElementById("lstAddresses");
        var e = 0;
        var lng = 0.0;
        var lat = 0.0;
        var aler = "";
        for(var c=0;c<list.length;c++)
        {
            lat = parseFloat(list.options[c].text);
            lng = parseFloat(list.options[c].value);

            e=0;
            DrawMarker(new GLatLng(lat, lng));
            //mapGeoCoder.getLatLng(mapDisplay, DrawMarker);

            aler += lat + ", " + lng + "\n";
        }*/

       // alert(aler + "\n\n" + list.length);
    }
}

// arrays to hold copies of the markers used by the side_bar
// because the function closure trick doesnt work there
var gmarkers = [];

// A function to create the marker and set up the event window
function createMarker(point,name,html) 
{
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() 
    {
        marker.openInfoWindowHtml(html);
    });

    // save the info we need to use later for the side_bar
    gmarkers.push(marker);

    return marker;
}


// This function picks up the click and opens the corresponding info window
function clickMark(c) 
{
    GEvent.trigger(gmarkers[c], "click");
}



/*function DrawCenter(point)
{
    map.setCenter(point, 6);
}*/

function DrawMiniCenter(point)
{
    //mapMini.setCenter(point, 12);
}

function DrawMarker(point)
{
    if(point == null)
    {
        return false;
    }
    
    DrawMiniCenter(point);

    var useCount = mapCount;
    if(mapCount > 7)
        useCount = 0;

    //var marker = CreateMarker(point, "a", mapDisplay, useCount);
    var marker = CreateMarker(point, "a", "", useCount);
    //alert(point);
    mapCount++;

    //map.addOverlay(new GMarker(point, {title:"Test"})); 
    map.addOverlay(marker);
    
    return true;
}

function DrawMarker2(point)
{
    alert(point);
    
    /*if(point == something)
    {
        return false;
    }*/
    
    DrawMiniCenter(point);

    var useCount = mapCount;
    if(mapCount > 7)
        useCount = 0;

    var marker = CreateMarker(point, "a", mapDisplay, useCount);
    //alert(point);
    mapCount++;

    //map.addOverlay(new GMarker(point, {title:"Test"})); 
    map.addOverlay(marker);
}

function CreateMarker(point, name, html, counter) 
{
    var marker = new GMarker(point);//, mapGIcons[counter]);

    /*GEvent.addListener(marker, "click", function() 
                                        {
                                            //marker.openInfoWindow("123");
                                        });*/

    return marker;
}

function DoNothing()
{
}

function ToolTipLyrics(str, estWidth)
{
    //document.getElementById("divTip").style.visibility = "hidden";
    //document.getElementById("divLyrics").style.visibility = "visible";
    document.getElementById("divLyrics").innerHTML = str;
    document.getElementById("tblLyrics").style.width = estWidth;

    if(estWidth <= 0) estWidth = 1;
	popUpLyrics(event, 'ttLyric', estWidth);
}

function ToolTip(str)
{
    //document.getElementById("divTip").style.visibility = "visible";
    //document.getElementById("divLyrics").style.visibility = "hidden";

    document.getElementById("divTip").innerHTML = str;

    var L = Math.ceil(str.length / 57);
    
    var L2 = str.length * 5.5;
    if(L2 > 400) L2 = 400;
    document.getElementById("tblTTBase").style.width = L2;
    
    if(L <= 0) L = 1;
	popUp(event, 'ttBase', L);
}

function PrintEvents()
{
    window.open("./Pages/Events.aspx?b=0");
}

function SizeVideos()
{
	/*var w = GetCookie2("Width");
	
	h = w/1.25;
	
	if(h > 700)
	{
	    h = 700;
	    w = 875;
	}
	
	document.getElementById("objYouTube").width = w;
	document.getElementById("objYouTube").height = h;*/
}

function Toggle(order)
{
    if(order == false)
    {
	    document.getElementById("divDisplay").style.display = "inline";
	    document.getElementById("divDisplay2").style.display = "none";

	    /*var lbl= document.getElementById("lblCopywrite");
	    if(lbl != null)
	        lbl.style.display = "inline";*/
    }
    else
    {
	    document.getElementById("divDisplay").style.display = "none";
	    document.getElementById("divDisplay2").style.display = "inline";

	    /*var lbl= document.getElementById("lblCopywrite");
	    if(lbl != null)
	        lbl.style.display = "none";*/
    }
}

function TabClick(numb)
{
    document.getElementById("tblBioTabs").rows[0].cells[0].className='TabInActive';
    document.getElementById("tblBioTabs").rows[0].cells[2].className='TabInActive';
    document.getElementById("tblBioTabs").rows[0].cells[4].className='TabInActive';
    document.getElementById("tblBioTabs").rows[0].cells[6].className='TabInActive';
    //document.getElementById("tblBioTabs").rows[0].cells[8].className='TabInActive';
    
    document.getElementById("tblBioTabs").rows[0].cells[(numb-1)*2].className='TabActive';

	document.getElementById("divTabBio1").style.display = "none";
	document.getElementById("divTabBio2").style.display = "none";
	document.getElementById("divTabBio3").style.display = "none";
	document.getElementById("divTabBio4").style.display = "none";
	//document.getElementById("divTabBio5").style.display = "none";
	
	document.getElementById("divTabBio1").style.height = "0px";
	document.getElementById("divTabBio2").style.height = "0px";
	document.getElementById("divTabBio3").style.height = "0px";
	document.getElementById("divTabBio4").style.height = "0px";
	//document.getElementById("divTabBio5").style.height = "0px";
	
	document.getElementById("divTabBio"+numb).style.display = "inline";
	document.getElementById("divTabBio"+numb).style.height = "";
}

function CenterBusyGrif()
{
    var lbl = document.getElementById("divBusyGrif");

    var wdth = 0, hght = 0; 
    var scrOfX = 0, scrOfY = 0; 
    
    if( typeof( window.pageYOffset ) == 'number' ) 
    { 
        //Netscape compliant 
        scrOfY = window.pageYOffset; 
        scrOfX = window.pageXOffset; 
    }
    else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) 
    { 
        //DOM compliant 
        scrOfY = document.body.scrollTop; 
        scrOfX = document.body.scrollLeft; 
    } 
    else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) 
    { 
        //IE6 standards compliant mode 
        scrOfY = document.documentElement.scrollTop; 
        scrOfX = document.documentElement.scrollLeft; 
    } 

    if( typeof( window.innerWidth ) == 'number' ) 
    { 
        //Non-IE 
        wdth = window.innerWidth; 
        hght = window.innerHeight; 
    } 
    else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
    { 
        //IE 6+ in 'standards compliant mode' 
        wdth = document.documentElement.clientWidth; 
        hght = document.documentElement.clientHeight; 
    }
    else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
    { 
        //IE 4 compatible 
        wdth = document.body.clientWidth; 
        hght = document.body.clientHeight; 
    } 

	var objLeft = wdth / 2; 
    var objTop = hght / 2; 
    objLeft = objLeft + scrOfX; 
    objTop = objTop; // + scrOfY; 

    // Position object 
    lbl.style.position = "absolute";
    lbl.style.top = objTop + 'px';
    lbl.style.left = objLeft + 'px'; 
}

function LoadVisible(s, e)
{
    StopSound();

    if(e != null)
    {
        switch(e.item.name)
        {
            case "My Space":
            case "Facebook":
           //case "Contact Us":
                return;

            default:
                //var lbl = document.getElementById("divBusyGrif");
                //lbl.innerHTML = "&nbsp; <strong>Loading, please wait...</strong>";
                //lbl.style.display = "inline";

                //document.getElementById("imgBusyGrif").src = "Pictures/Menu/BusyGrif.gif";
                //document.getElementById("divBusyGrif").style.zIndex = 1;

                document.getElementById("divBusyGrif").innerHTML  = "<img alt=\"\" id=\"imgBusyGrif\" src=\"Pictures/Menu/GrifBusy1.jpg\" runat=\"server\" />";
                //alert(document.getElementById("divBusyGrif").innerHTML );
                break;
        }

        onResize();
        //CenterBusyGrif();

        Toggle(e.item.name == "Order CDs");
    }
}

function BlogClick(start)
{
    LoadVisible();
	var w = GetCookie2("Width");
	var h = GetCookie2("Height");
	UnionStation("./Pages/Blogs.aspx?start=" + start + "&h=" + h + "&w=" + w, true, "Blogs");

    //var lbl = document.getElementById("divBusyGrif");
    //lbl.innerHTML = "";
    //lbl.style.display = "none";
    //document.getElementById("imgBusyGrif").src = "";
    //document.getElementById("divBusyGrif").style.zIndex = -1;
    document.getElementById("divBusyGrif").innerHTML  = "";
}

var sound = new Sound();
var playing = false;
var songplaying = "";
function PlayClip(mp3)
{
    if(songplaying == mp3)
    {
        if(playing)
        {
            sound.stop();
            playing = false;
            document.getElementById('btn'+songplaying).value = '►';
            songplaying = "";
            return;
        }
        document.getElementById('btn'+mp3).value = '■';
    }
    else if(songplaying != "")
    {
        document.getElementById('btn'+songplaying).value = '►';
        sound.stop();
        playing = false;
    }
    
    document.getElementById('btn'+mp3).value = '■';
    
    songplaying = mp3;
    playing = true;
    var base = ".\\Discography\\Clips\\";
    
    switch(mp3)
    {
        case 'April':sound.loadSound(base+'AprilClip.mp3', true);break;
        case 'Belle':sound.loadSound(base+'BelleOfBelfastMedley.mp3', true); break;
        case 'Calls':sound.loadSound(base+'CallsOnHerAngels.mp3', true);break;
        case 'Donald':sound.loadSound(base+'DonaldMcGillavry.mp3', true);break;
        case 'Escape':sound.loadSound(base+'EscapeFromSterling.mp3', true);break;
        case 'Queen':sound.loadSound(base+'QueenOfArgyle.mp3', true);break;
        case 'Shes':sound.loadSound(base+'ShesGoneDown.mp3', true);break;
        case 'Star':sound.loadSound(base+'StarOfTheCountyDown.mp3', true);break;
        case 'Still':sound.loadSound(base+'StillHaventFound.mp3', true);break;
        case 'William':sound.loadSound(base+'WilliamsGhost.mp3', true);break;
        case 'BoldRiley':sound.loadSound(base+'BoldRiley.mp3', true);break;
        case 'Fierce':sound.loadSound(base+'Fierce.mp3', true);break;
        case 'NeverKnow':sound.loadSound(base+'NeverKnow.mp3', true);break;
        case 'NovaScotia':sound.loadSound(base+'NovaScotia.mp3', true);break;
        case 'OneMoreDay':sound.loadSound(base+'OneMoreDay.mp3', true);break;
        case 'Someday':sound.loadSound(base+'Someday.mp3', true);break;
        case 'StretchedOnYourGrave':sound.loadSound(base+'StretchedOnYourGrave.mp3', true);break;
    }
}

function LoadLyrics(ly, width)
{
    var t = document.getElementById('tdLyric');
    t.innerHTML = ly;
}

function GetLyricsNeverKnow()
{
    var ly = "";

    ly += "<u>Never Know</u><br />";
    ly += "Music and lyrics: Rising Gael<br />";
    ly += "<br />";
    ly += "City Lights are burning low.<br />";
    ly += "Nothing left but amber glow<br />";
    ly += "Shining like a lighthouse never know<br />";
    ly += "They’ll pass you by if you let them go,<br />";
    ly += "Fire dies but it burns so slow<br />";
    ly += "Shines like a lighthouse never know<br />";
    ly += "<br />";
    ly += "Holding a Feather won’t help you fly;<br />";
    ly += "To rise above yourself and touch the sky<br />";
    ly += "Standing like a lighthouse, oh how it shines<br />";
    ly += "The light is shadowing the darker side<br />";
    ly += "<br />";
    ly += "Rain it falls but it’s oh so cold,<br />";
    ly += "Seems so small but it makes rivers flow<br />";
    ly += "Falling like tear drops, but you’ll never know<br />";
    ly += "Ocean waves crashing so,<br />";
    ly += "The rocks crumble and go below<br />";
    ly += "Falling like tear drops, but you’ll never know<br />";
    ly += "<br />";
    ly += "Holding a feather won’t help you fly;<br />";
    ly += "To rise above yourself and touch the sky <br />";
    ly += "Tear drops falling from your eyes,<br />";
    ly += "Takes away the pain, that’s why we cry<br />";
    ly += "<br />";
    ly += "Never know it’s all the same, Fire and rain<br />";
    ly += "Don’t try to hide, won’t understand people can<br />";
    ly += "Be the same, on the inside<br />";
    ly += "<br />";
    ly += "Holding a feather won’t help you fly;<br />";
    ly += "To rise above yourself and touch the sky<br />";
    ly += "We’ll never know exactly why<br />";
    ly += "We are not the same in there eyes (2x)<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsNovaScotia()
{
    var ly = "";

    ly += "<u>Nova Scotia Farewell</u><br />";
    ly += "Trad and Orig. lyrics, music by Rising Gael<br />";
    ly += "<br />";
    ly += "Farewell to Nova Scotia,<br />";
    ly += "And to the coast bound sea,<br />";
    ly += "Will you ever heave a sigh,<br />";
    ly += "Or have a wish for me?<br />";
    ly += "<br />";
    ly += "The sun is setting in the west, <br />";
    ly += "The birds they sing on every tree,<br />";
    ly += "All nature seemed content to rest, <br />";
    ly += "But there is still no rest for me<br />";
    ly += "<br />";
    ly += "I grieve to leave my land<br />";
    ly += "To leave my family;<br />";
    ly += "I grieve to leave my man, <br />";
    ly += "To my heart he holds the key.<br />";
    ly += "<br />";
    ly += "CHO<br />";
    ly += "<br />";
    ly += "I have three brothers dead,<br />";
    ly += "Their arms folded ore their chest;<br />";
    ly += "They fell ore the deep blue sea,<br />";
    ly += "That ocean put them to their rest.<br />";
    ly += "<br />";
    ly += "CHO (2x)<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsOneMoreDay()
{
    var ly = "";

    ly += "<u>One More Day</u><br />";
    ly += "Music and Lyrics: Rising Gael<br />";
    ly += "<br />";
    ly += "I tripped over luck and bumped into you,<br />";
    ly += "You said you were feeling lucky too<br />";
    ly += "Done is this summer night and day is on its way,<br />";
    ly += "If you leave there’s one thing left to say<br />";
    ly += "<br />";
    ly += "Cho<br />";
    ly += "<br />";
    ly += "Give me one more day, a day just like today<br />";
    ly += "Give me one more day, a day just like today<br />";
    ly += "<br />";
    ly += "Take life as it comes the good with bad,<br />";
    ly += "a good like you I’ve never had<br />";
    ly += "Now that you’ve been with me I can’t help but see that this day we shared was meant to be<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "Look into your eyes you hold my heart, our future was foretold in the stars<br />";
    ly += "Looking down the road there’s bound to be sorrow, so won’t you join me for tomorrow<br />";
    ly += "<br />";
    ly += "Chorus (3x)<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsSomeday()
{
    var ly = "";
    
    ly += "<u>Some Day</u><br />";
    ly += "Music and Lyrics: Rising Gael<br />";
    ly += "<br />";
    ly += "Sailing out of the harbor,<br />";
    ly += "Packed down in the hold<br />";
    ly += "Bound for land and freedom,<br />";
    ly += "At least that’s what we’ve been told<br />";
    ly += "<br />";
    ly += "Looking at life before me,<br />";
    ly += "So many things I must do<br />";
    ly += "But how will I ever break free,<br />";
    ly += "When what’s stopping me is you<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "And a song and prayer still haunt me,<br />";
    ly += "As I slowly sail away<br />";
    ly += "Driven by life now weary,<br />";
    ly += "Will I ever return to stay?<br />";
    ly += "<br />";
    ly += "Someday<br />";
    ly += "<br />";
    ly += "God up in his heavens,<br />";
    ly += "Devil down below<br />";
    ly += "I’m out on the wild ocean,<br />";
    ly += "Wondering where I’ll go<br />";
    ly += "<br />";
    ly += "Bridge<br />";
    ly += "<br />";
    ly += "And the weight of the world pulls me closer<br />";
    ly += "How long can I fight,<br />";
    ly += "Keeping my head above water<br />";
    ly += "Till my wings take flight<br />";
    ly += "<br />";
    ly += "Chorus 2x<br />";
    ly += "<br />";
    ly += "Na na na, na na nana na, na na na nana na <br />";
    ly += "Na na na, na na nana na, na na na nana na<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsJourneyMan()
{
    var ly = "";

    ly += "<u>Journey Man</u><br />";
    ly += "Music and Lyrics: Rising Gael<br />";
    ly += "<br />";
    ly += "Journeyman came up one night <br />";
    ly += "With walking he was weary<br />";
    ly += "A journeyman came up one night<br />";
    ly += "When the moon shone bright and clearly<br />";
    ly += "He spied a fox upon the road<br />";
    ly += "Running through the heather<br />";
    ly += "He caught that fox upon the road<br />";
    ly += "Whose eyes where quick and clever<br />";
    ly += "<br />";
    ly += "CHO<br />";
    ly += "Johnny’s gone this night to town<br />";
    ly += "He’s on his way tonight<br />";
    ly += "When morning comes no need to work<br />";
    ly += "For gold and silver bright<br />";
    ly += "<br />";
    ly += "The fox said sir let me free<br />";
    ly += "And keep me from the town-o<br />";
    ly += "The fox said sir wishes three<br />";
    ly += "I’ll grant before the dawn-o<br />";
    ly += "The first one said the journeyman<br />";
    ly += "Pointing to his whiskey<br />";
    ly += "My first wish to you is that<br />";
    ly += "My bottle’ll never be empty<br />";
    ly += "<br />";
    ly += "CHORUS<br />";
    ly += "<br />";
    ly += "To test his wish the young man drank<br />";
    ly += "But could not drain the bottle<br />";
    ly += "Before too long the young man sank<br />";
    ly += "And the fox began to smile<br />";
    ly += "When morn’s first light crept o’er the brink<br />";
    ly += "And still the young man slumbered<br />";
    ly += "The fox he hid the young mans drink<br />";
    ly += "And left him there bewildered<br />";
    ly += "<br />";
    ly += "CHORUS (2x)<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsBoldRiley()
{
    var ly = "";

    ly += "<u>Bold Riley</u><br />";
    ly += "Trad. and Original lyrics, Music by Rising Gael<br />";
    ly += "<br />";
    ly += "Oh the rain it rains all day long<br />";
    ly += "Bold Riley<br />";
    ly += "And the northern winds blow so strong<br />";
    ly += "Bold Riley<br />";
    ly += "Come on Mary don’t look so glum<br />";
    ly += "Bold Riley<br />";
    ly += "Come Sunday you’ll be drinking rum<br />";
    ly += "Bold Riley, o-has gone away<br />";
    ly += "<br />";
    ly += "Were outward bound for the Bengal Bay<br />";
    ly += "Bold Riley<br />";
    ly += "Get bending it’s a hell-of-a way<br />";
    ly += "Bold Riley<br />";
    ly += "When the winds blow helm’s a-lee<br />";
    ly += "Bold Riley<br />";
    ly += "I long for the day you’ll sail back to me<br />";
    ly += "Bold Riley has gone away<br />";
    ly += "<br />";
    ly += "CHO<br />";
    ly += "Goodbye my sweetheart<br />";
    ly += "Goodbye my dear-o<br />";
    ly += "Bold Riley Bold Riley<br />";
    ly += "Goodbye my darling<br />";
    ly += "Goodbye my dear-o<br />";
    ly += "Bold Riley has gone away<br />";
    ly += "<br />";
    ly += "Bridge<br />";
    ly += "<br />";
    ly += "CHORUS (2x)<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsHeMovedThroughtheFair()
{
    var ly = "";
    
    ly += "<u>He Moved Through The Fair</u><br />";
    ly += "Trad. Lyrics, Arr. by Rising Gael<br />";
    ly += "<br />";
    ly += "My young love said to me<br />";
    ly += "My mother won’t mind<br />";
    ly += "And my father won’t slight you<br />";
    ly += "For your lack of kind<br />";
    ly += "<br />";
    ly += "And he stepped away form me<br />";
    ly += "And this he did say<br />";
    ly += "It will not be long love<br />";
    ly += "Till our wedding day<br />";
    ly += "<br />";
    ly += "CHO<br />";
    ly += "And he stepped away from me<br />";
    ly += "And he moved through the fair<br />";
    ly += "And fondly I watched him<br />";
    ly += "Move here and move there<br />";
    ly += "And he made his way homeward<br />";
    ly += "With one star awake<br />";
    ly += "As the swan in the evening<br />";
    ly += "Moves over the lake<br />";
    ly += "<br />";
    ly += "The people were saying<br />";
    ly += "No two were a-wed<br />";
    ly += "But that one had a sorrow<br />";
    ly += "That never was said<br />";
    ly += "<br />";
    ly += "And I smiled as he passed me <br />";
    ly += "With his goods and his gear<br />";
    ly += "And that was the last<br />";
    ly += "I saw of my dear<br />";
    ly += "<br />";
    ly += "CHO<br />";
    ly += "And he stepped away from me<br />";
    ly += "And he moved through the fair<br />";
    ly += "And fondly I watched him<br />";
    ly += "Move here and move there<br />";
    ly += "And he made his way homeward<br />";
    ly += "With one star awake<br />";
    ly += "As the swan in the evening<br />";
    ly += "Moves over the lake<br />";
    ly += "<br />";
    ly += "I dreamt last night<br />";
    ly += "That my true love came in<br />";
    ly += "He came in so softly<br />";
    ly += "His feet made no din<br />";
    ly += "<br />";
    ly += "And he came close beside me<br />";
    ly += "And this he did say<br />";
    ly += "It will not be long love<br />";
    ly += "Till our wedding day<br />";
    ly += "<br />";
    ly += "CHO<br />";
    ly += "And he stepped away from me<br />";
    ly += "And he moved through the fair<br />";
    ly += "And fondly I watched him<br />";
    ly += "Move here and move there<br />";
    ly += "And he came close beside me<br />";
    ly += "And this he did say<br />";
    ly += "It will not be long love<br />";
    ly += "Till our wedding day (2x)<br />";
    
    LoadLyrics(ly, 225);
}

function GetLyricsStretchedOnYourGrave()
{
    var ly = "";

    ly += "<u>Stretched on Your Grave</u><br />";
    ly += "Trad. lyrics, music Rising Gael<br />";
    ly += "<br />";
    ly += "I am stretched on your grave <br />";
    ly += "And I'll lie here forever<br />";
    ly += "If you hands were in mine<br />";
    ly += "I'd be sure they would not sever<br />";
    ly += "My apple tree, my brightness,<br />";
    ly += "It's time we were together<br />";
    ly += "For I smell by the Earth<br />";
    ly += "And I'm worn by the weather.<br />";
    ly += "<br />";
    ly += "When my family think<br />";
    ly += "That I'm safely in my bed<br />";
    ly += "Oh, from morn until night<br />";
    ly += "I am stretched out at your head<br />";
    ly += "Calling out unto the earth<br />";
    ly += "With tears hot and wild<br />";
    ly += "For the loss of a girl<br />";
    ly += "That I loved as a child.<br />";
    ly += "<br />";
    ly += "Do you remember the night<br />";
    ly += "Oh, the night when we were lost<br />";
    ly += "In the shade of the blackthorn<br />";
    ly += "And the touch of the frost?<br />";
    ly += "Oh, and thanks be to Jesus<br />";
    ly += "We did all that was right<br />";
    ly += "And your maidenhead still<br />";
    ly += "Is your pillar of light.<br />";
    ly += "<br />";
    ly += "Oh, the priests and the friars<br />";
    ly += "They approach me in dread<br />";
    ly += "Oh, for I love you still<br />";
    ly += "Oh, my life, and you're dead<br />";
    ly += "I still will be your shelter<br />";
    ly += "Through rain and through storm<br />";
    ly += "And with you in your cold grave<br />";
    ly += "I cannot sleep warm<br />";
    ly += "<br />";
    ly += "I am stretched on your grave<br />";
    ly += "And I'll lie here forever<br />";
    ly += "If you hands were in mine<br />";
    ly += "I'd be sure they would not sever<br />";
    ly += "My apple tree, my brightness,<br />";
    ly += "It's time we were together<br />";
    ly += "For I smell by the Earth<br />";
    ly += "And I'm worn by the weather.<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsApril()
{
    var ly = "";

    ly += "<u>April come he will</u><br />";
    ly += "<br />";
    ly += "April come he will<br />";
    ly += "When streams are ripe and swelled with rain;<br />";
    ly += "May, he will stay,<br />";
    ly += "Resting in my arms again.<br />";
    ly += "June, he'll change her tune,<br />";
    ly += "<br />";
    ly += "In restless walks he'll prowl the night;<br />";
    ly += "July, he will fly<br />";
    ly += "And give no warning to his flight.<br />";
    ly += "<br />";
    ly += "August, die he must,<br />";
    ly += "The autumn winds blow chilly and cold;<br />";
    ly += "September Ill remember<br />";
    ly += "A love once new has now grown old.<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsWilliam()
{
    var ly = "";

    ly += "<u>William's Ghost</u><br />";
    ly += "<br />";
    ly += "My true love, my own true William Where thou ever may be<br />";
    ly += "This dark night I long to be with you, why have you gone from me<br />";
    ly += "<br />";
    ly += "Though the night be dark as a dungeon, no light through the window pain<br />";
    ly += "I'll be guided without a stumble into my true love's arms<br />";
    ly += "<br />";
    ly += "I went to my true love's garden, on all Hollow's eve<br />";
    ly += "Through a window pain whispered softly, rise my love with me<br />";
    ly += "<br />";
    ly += "Who's that who's that at my window disturbing my long nights rest<br />";
    ly += "Tis I your lover don't be discovered, open and let me in<br />";
    ly += "<br />";
    ly += "He rose off his soft down pillow, opened and let me in<br />";
    ly += "Both shook hands and embraced each other, oh Willie's back again<br />";
    ly += "<br />";
    ly += "When the night was past and over, cocks began to crow<br />";
    ly += "We both shook hands and cried and kissed, darling I must go<br />";
    ly += "<br />";
    ly += "Oh Willie Willie where are your blushes of long ago<br />";
    ly += "Mary Mary hold me and pray, Mary I'm a ghost<br />";
    ly += "<br />";
    ly += "My true love, my own true William Where thou ever may be<br />";
    ly += "This dark night I long to be with you, why have you gone from me<br />";

    LoadLyrics(ly, 350);
}

function GetLyricsDonald()
{
    var ly = "";
    
    ly += "<u>Donald McGillavry</u><br />";
    ly += "<br />";
    ly += "Donald's gane up the hill hard and hungry,<br />";
    ly += "Donald comes down the hill wild and angry;<br />";
    ly += "Donald will clear the gouk's nest cleverly,<br />";
    ly += "Here's to the king and Donald Macgillavry.<br />";
    ly += "Come like a weighbauk, Donald Macgillavry,<br />";
    ly += "Come like a weighbauk, Donald Macgillavry,<br />";
    ly += "Balance them fair, and balance them cleverly:<br />";
    ly += "Off wi'the counterfeit, Donald Macgillavry.<br />";
    ly += "<br />";
    ly += "Donald's run o'er the hill but his tether, man,<br />";
    ly += "As he were wud, or stang'd wi' an ether, man;<br />";
    ly += "When he comes back, there's some will look merrily:<br />";
    ly += "Here's to King James and Donald Macgillavry.<br />";
    ly += "Come like a weaver, Donald Macgillavry,<br />";
    ly += "Come like a weaver, Donald Macgillavry,<br />";
    ly += "Pack on your back, and elwand sae cleverly;<br />";
    ly += "Gie them full measure, my Donald Macgillavry.<br />";
    ly += "<br />";
    ly += "Donald has foughten wi' rief and roguery;<br />";
    ly += "Donald has dinner'd wi banes and beggary,<br />";
    ly += "Better it were for Whigs and Whiggery<br />";
    ly += "Meeting the devil than Donald Macgillavry.<br />";
    ly += "Come like a tailor, Donald Macgillavry,<br />";
    ly += "Come like a tailor, Donald Macgillavry,<br />";
    ly += "Push about, in and out, thimble them cleverly,<br />";
    ly += "Here's to King James and Donald Macgillavry.<br />";
    ly += "<br />";
    ly += "Donald's the callan that brooks nae tangleness;<br />";
    ly += "Whigging and prigging and a'newfangleness,<br />";
    ly += "They maun be gane: he winna be baukit, man:<br />";
    ly += "He maun hae justice, or faith he'll tak it, man.<br />";
    ly += "Come like a cobler, Donald Macgillavry,<br />";
    ly += "Come like a cobler, Donald Macgillavry;<br />";
    ly += "Beat them, and bore them, and lingel them cleverly,<br />";
    ly += "Up wi' King James and Donald Macgillavry.<br />";
    ly += "<br />";
    ly += "Donald was mumpit wi mirds and mockery;<br />";
    ly += "Donald was blinded wi' blads o' property;<br />";
    ly += "Arles ran high, but makings were naething, man,<br />";
    ly += "Lord, how Donald is flyting and fretting, man.<br />";
    ly += "Come like the devil, Donald Macgillavry,<br />";
    ly += "Come like the devil, Donald Macgillavry;<br />";
    ly += "Skelp them and scaud them that proved sae unbritherly,<br />";
    ly += "Up wi King James and Donald Macgillavry!<br />";
    ly += "<br />";

    LoadLyrics(ly, 300);
}

function GetLyricsStill()
{
    var ly = "";
    
    ly += "<u>Still Haven't Found</u><br />";
    ly += "<br />";
    ly += "I have climbed the highest mountains <br />";
    ly += "I have run through the fields <br />";
    ly += "Only to be with you <br />";
    ly += "Only to be with you <br />";
    ly += "<br />";
    ly += "I have run I have crawled <br />";
    ly += "I have scaled these city walls <br />";
    ly += "Only to be with you <br />";
    ly += "But I still haven't found <br />";
    ly += "What I'm looking for <br />";
    ly += "But I still haven't found <br />";
    ly += "What I'm looking for <br />";
    ly += "<br />";
    ly += "I have kissed parted lips <br />";
    ly += "Felt the healing in your fingertips <br />";
    ly += "It burned like fire <br />";
    ly += "This burning desire<br />";
    ly += " But I still haven't found <br />";
    ly += "What I'm looking for <br />";
    ly += "But I still haven't found <br />";
    ly += "What I'm looking for<br />";
    ly += "<br />";
    ly += "I believe in the Kingdom Come <br />";
    ly += "Then all the colors will bleed into one<br />";
    ly += "Bleed into one<br />";
    ly += "Yes I'm still running.<br />";
    ly += "But I still haven't found <br />";
    ly += "What I'm looking for <br />";
    ly += "But I still haven't found <br />";
    ly += "What I'm looking for<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsFurther()
{
    var ly = "";
    
    ly += "<u>Further I Go</u><br />";
    ly += "<br />";
    ly += "As I row, row, row<br />";
    ly += "Going so slow, slow, slow<br />";
    ly += "Just down below me is the old sea<br />";
    ly += "Just down below me is the old sea<br />";
    ly += "<br />";
    ly += "Nobody knows, knows, knows<br />";
    ly += "So many things, things, so<br />";
    ly += "So out of range<br />";
    ly += "Sometimes so strange<br />";
    ly += "Sometimes so sweet<br />";
    ly += "Sometimes so lonely<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "The further I go<br />";
    ly += "More letters from home never arrive<br />";
    ly += "And I'm alone All of the way<br />";
    ly += "All of the way Alone and alive<br />";
    ly += "<br />";
    ly += "You just have to go, go, go<br />";
    ly += "Where I don't know, know, know<br />";
    ly += "This is the thing<br />";
    ly += "Somebody told me<br />";
    ly += "A long time ago<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsCalls()
{
    var ly = "";

    ly += "<u>Calls on her Angles</u> <br />";
    ly += "<br />";
    ly += "She is 25 years old<br />";
    ly += "The weight of the world is pulling on her soul<br />";
    ly += "She grabs her boy and holds him tight<br />";
    ly += "Mask the pain growing in her side<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "She calls on her Angles<br />";
    ly += "When will they bring her aid?<br />";
    ly += "Is this what she deserves<br />";
    ly += "Is this the life she's made?<br />";
    ly += "<br />";
    ly += "He's hungry to is helpless frame<br />";
    ly += "Reflects her own thinks she's the one to blame<br />";
    ly += "The baby cries she wipes away his tears<br />";
    ly += "And wishes someone was there to calm his fears<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "Times are hard hunger in her friend<br />";
    ly += "Her girlish hopes have met their end<br />";
    ly += "She hides her hands in her frail hands<br />";
    ly += "And pours out the heart she cannot mend<br />";
    ly += "<br />";
    ly += "Chorus 2x<br />";
    ly += "<br />";


    LoadLyrics(ly, 225);
}

function GetLyricsShesGone()
{
    var ly = "";
    
    ly += "<u>She's Gone Down</u><br />";
    ly += "<br />";
    ly += "By the storm-torn shoreline, a woman is standing<br />";
    ly += "The spray strung like jewels in her hair<br />";
    ly += "And the sea tore the rocks near that desolate landing<br />";
    ly += "As though it had known she stood there<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "For she has come down to condemn that wild ocean<br />";
    ly += "For the murderous loss of her man<br />";
    ly += "His ship sailed out on Sunday morning<br />";
    ly += "And it's feared she's gone down with all hands<br />";
    ly += "<br />";
    ly += "And it's white were the wave-caps and wild was their parting<br />";
    ly += "So fierce is the warring of love<br />";
    ly += "But she prayed to the gods, both of men and of sailors<br />";
    ly += "Not to cast their cruel nets o'er her love<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "There's a school on the hill where the son's of dead fathers<br />";
    ly += "Are led toward tempests and gales<br />";
    ly += "Where their God-given wings are clipped close to their bodies<br />";
    ly += "And their eyes are bound round with ships' sails<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsUnchained()
{
    var ly = "";
    
    ly += "<u>Unchained Melody</u><br />";
    ly += "<br />";
    ly += "Oh, my love, my darling,<br />";
    ly += "I've hungered for your touch<br />";
    ly += "a long, lonely time.<br />";
    ly += "And time goes by so slowly<br />";
    ly += "and time can do so much,<br />";
    ly += "are you still mine?<br />";
    ly += "I need your love,<br />";
    ly += "I need your love,<br />";
    ly += "God speed your love ..... to me!<br />";
    ly += "<br />";
    ly += "Lonely rivers flow<br />";
    ly += "to the sea, to the sea,<br />";
    ly += "To the open arms of the sea.<br />";
    ly += "Lonely rivers sigh,<br />";
    ly += "\"Wait for me, wait for me!\"<br />";
    ly += "I'll be coming home, wait for me!<br />";
    ly += "<br />";
    ly += "Oh, my love, my darling,<br />";
    ly += "I've hungered, for your touch<br />";
    ly += "a long, lonely time.<br />";
    ly += "And time goes by so slowly<br />";
    ly += "and time can do so much,<br />";
    ly += "are you still mine?<br />";
    ly += "I need your love<br />";
    ly += "I need your love,<br />";
    ly += "God speed your love...... to me!<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsThisLove()
{
    var ly = "";
    
    ly += "<u>This Love Will Carry</u><br />";
    ly += "<br />";
    ly += "It's a thin line that leads us and keeps a man from shame<br />";
    ly += "And dark clouds quickly gather along the way he came<br />";
    ly += "There's fear out on the mountain and death out on the plain<br />";
    ly += "There's heartbreak and heart-ache in the shadow of the flame<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "[But]this love will carry, this love will carry me<br />";
    ly += "I know this love will carry me<br />";
    ly += "<br />";
    ly += "The strongest web will tangle, the sweetest bloom will fall<br />";
    ly += "And somewhere in the distance we try and catch it all<br />";
    ly += "Success lasts for a moment and failure's always near<br />";
    ly += "And you look down at your blistered hands as turns another year<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "These days are golden, they must not waste away<br />";
    ly += "For our time is like that flower and soon it will decay<br />";
    ly += "And though by storms we're weakened, uncertainty is sure<br />";
    ly += "And like the coming of the dawn it's ours for evermore<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsToLove()
{
    var ly = "";
    
    ly += "<u>To Love a Man</u><br />";
    ly += "<br />";
    ly += "I love a man who makes me smile<br />";
    ly += "He'll win you over with his charm and style<br />";
    ly += "He says the sweetest things you ever heard<br />";
    ly += "Would be much sweeter if he meant one word<br />";
    ly += "Would be much sweeter if he meant one word<br />";
    ly += "<br />";
    ly += "I love a man with many friends<br />";
    ly += "He entertains them till the evening ends<br />";
    ly += "They say he has the friendly touch<br />";
    ly += "And with the lassies a bit too much<br />";
    ly += "And with the lassies a bit too much<br />";
    ly += "<br />";
    ly += "I love a man and he loves me<br />";
    ly += "For many years we've held company<br />";
    ly += "He promised me we'd wed one day<br />";
    ly += "Perhaps he meant when we were old and grey<br />";
    ly += "Perhaps he meant when we were old and grey<br />";
    ly += "<br />";
    ly += "When will he marry me and make me a proper wife<br />";
    ly += "When will he carry me through the doorway of our home<br />";
    ly += "When will he settle down and start to live a proper life<br />";
    ly += "When will I ever see it's the man he is its all he'll ever be<br />";
    ly += "<br />";
    ly += "I love a man my heart is his<br />";
    ly += "I love that man and that's the way it is<br />";
    ly += "A woman's fate seems mean and cruel<br />";
    ly += "For to love a man is to be a fool<br />";
    ly += "To love a man is to be a fool<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsWonder()
{
    var ly = "";

    ly += "<u>I wonder what is keeping my true love this night</u><br />";
    ly += "<br />";
    ly += "I Wonder What is keeping my true love this night<br />";
    ly += "I wonder what is keeping him out of my sight<br />";
    ly += "I wonder if he knows of the pain I endure<br />";
    ly += "And stays from me this night I'm not sure<br />";
    ly += "<br />";
    ly += "Oh love are you coming your cause to advance<br />";
    ly += "Or yet are you waiting for a far far better chance<br />";
    ly += "Are you coming for to tell me you've a new love in store<br />";
    ly += "Or are you coming for to tell me you love me no more<br />";
    ly += "<br />";
    ly += "For I can love lightly and I can love strong<br />";
    ly += "I can love the old love till the new love comes on<br />";
    ly += "I only said I loved you for to give your heart ease<br />";
    ly += "And when I'm not with you I'll love whom I please<br />";
    ly += "<br />";
    ly += "There's gold in my pocket and pain in my heart<br />";
    ly += "For I can't love a man with too many sweethearts<br />";
    ly += "You're my first and only false love but it's lately I knew<br />";
    ly += "That the stronger I loved you the falser you grew<br />";
    ly += "<br />";
    ly += "The spring grass grows the greenest and spring water runs clear<br />";
    ly += "I'm sorry and tormented for the love of my dear<br />";
    ly += "Your love it lies so lightly as the dew on the thorn<br />";
    ly += "That's there in the evening and away with the dawn<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsBlackbird()
{
    var ly = "";
    
    ly += "<u>Blackbird</u><br />";
    ly += "<br />";
    ly += "I am a young maiden, my story is sad<br />";
    ly += "For once I was carefree and in love with a lad<br />";
    ly += "He courted me sweetly by night and by day<br />";
    ly += "But now he has left me and gone far away<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "Oh if I was a blackbird, could whistle and sing<br />";
    ly += "I'd follow the vessel my true love sails in<br />";
    ly += "And in the top rigging I would there build my nest<br />";
    ly += "And I'd flutter my wings o'er his broad golden chest<br />";
    ly += "<br />";
    ly += "He sailed o'er the ocean, his fortune to seek<br />";
    ly += "I missed his caresses and his kiss on my cheek<br />";
    ly += "He returned and I told him my love was still warm<br />";
    ly += "He turned away lightly and great was his scorn<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "He offered to take me to Donnybrook Fair<br />";
    ly += "To buy me fine ribbons, tie them up in my hair<br />";
    ly += "He offered to marry and to stay by my side<br />";
    ly += "But then in the morning he sailed with the tide<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "My parents they chide me, and will not agree<br />";
    ly += "Saying that me and my true love married should never be<br />";
    ly += "Ah but let them deprive me, or let them do what they will<br />";
    ly += "While there's breath in my body, he's the one that I love still<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsBelle()
{
    var ly = "";
    
    ly += "<u>Belle of Belfast Medley</u><br />";
    ly += "(abbreviated) <br />";
    ly += "<br />";
    ly += "I'll tell me ma when I get home/The boys won't leave the girls alone<br />";
    ly += "They pull my hair, they steal my comb/But that's all right till I get home<br />";
    ly += "She is handsome, she is pretty/She is the belle of Belfast city<br />";
    ly += "She is courting one, two, three/Hey, won't you tell me, who is he?<br />";
    ly += "<br />";
    ly += "Albert Mooney says he loves her/All the boys are fighting for her<br />";
    ly += "Knock at the door and ring the bell/Hey, my true love, are you well<br />";
    ly += "Out she comes as white as snow/Rings on her fingers, bells on her toes<br />";
    ly += "Old Jenny Murry says she'll die/If she doesn't get the fellow with the roving eye<br />";
    ly += "<br />";
    ly += "Let the wind blow high let the wind blow low<br />";
    ly += "Through the streets in my kilt I go<br />";
    ly += "All the lassies say hello<br />";
    ly += "Donald where's your trousers<br />";
    ly += "<br />";
    ly += "I just come down from the Isle of Skye<br />";
    ly += "I no very big and I'm awfully shy<br />";
    ly += "All the lassies say I go by<br />";
    ly += "Donald where's your trousers<br />";
    ly += " <br />";
    ly += "Let the wind and the rain and the hail go high/Snow come tumbling from the sky<br />";
    ly += "She's as nice as apple pie/She'll get a fellow by and by<br />";
    ly += "When she gets a lad of her own/She won't tell her ma when she gets home<br />";
    ly += "Let them all come as they will/It's Albert Mooney she loves still<br />";
    ly += "<br />";
    ly += "Step we gaily on we go, Heel and heel And toe for toe,<br />";
    ly += "Arm and arm And row and row, All for Marie's wedding.<br />";
    ly += "Over hillways, up and down, Myrtle green and bracken brown,<br />";
    ly += "Past the sheilings through the town All for the sake of Marie.<br />";
    ly += "<br />";
    ly += "Red her cheeks as Rowan's are, Bright her eyes as any star.<br />";
    ly += "Fairest of them all by far, Is our darlin' Marie.<br />";
    ly += "<br />";
    ly += "I'll tell me ma when I get home/The boys won't leave the girls alone<br />";
    ly += "They pull my hair, they steal my comb/But that's all right till I get home<br />";
    ly += "She is handsome, she is pretty/She is the belle of Belfast city<br />";
    ly += "She is courting one, two, three/Hey, won't you tell me, who is he?<br />";
    ly += "<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsQueen()
{
    var ly = "";
    
    ly += "<u>Queen of All Argyll</u><br />";
    ly += "<br />";
    ly += "Gentlemen it is my duty to inform you of one beauty<br />";
    ly += "Though I'd ask you of a favor, no to seek her for a while<br />";
    ly += "Though I own she is a creature of character and feature<br />";
    ly += "No words can paint the picture of the Queen of all Argyll<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "And if you could have seen her there, boys if you had just been there<br />";
    ly += "The swan was in her movement, and the'marvel in her smile<br />";
    ly += "All the roses in the garden, they bow and ask her pardon<br />";
    ly += "For not one could match the beauty of the queen of all Argyll<br />";
    ly += "<br />";
    ly += "On that evening that I mention, I passed with light intention<br />";
    ly += "Through a part of our dear country known for beauty and for style<br />";
    ly += "Bein' a place of noble thinkers, of scholars and great drinkers<br />";
    ly += "But above them all for splendor shone the Queen of all Argyll<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";
    ly += "So my lads my needs must leave you, my intention no to grieve you<br />";
    ly += "Nor indeed would I deceive you, oh I'll see you in awhile<br />";
    ly += "I must find some way to gain her, to court her and to tame her<br />";
    ly += "I fear my heart's in danger from the Queen of all Argyll<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsStar()
{
    var ly = "";
    
    ly += "<u>Star of the County Down </u><br />";
    ly += "<br />";
    ly += "Near Ban bridge town, in the County Down/ One morning in July<br />";
    ly += "Down a boreen green came a sweet colleen/And she smiled as she passed me by.<br />";
    ly += "She looked so sweet from her two white feet/To the sheen of her nut-brown hair<br />";
    ly += "Such a coaxing elf, I'd to shake myself/To make sure I was standing there.<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "<br />";
    ly += "From Bantry Bay up to Derry Quay<br />";
    ly += "And from Galway to Dublin town<br />";
    ly += "No maid I've seen like the sweet colleen<br />";
    ly += "That I met in the County Down.<br />";
    ly += "<br />";
    ly += "As she onward sped I shook my head<br />";
    ly += "And I gazed with a feeling quare<br />";
    ly += "And I said, says I, to a passerby<br />";
    ly += "\"Who's the maid with the nut-brown hair?\"<br />";
    ly += "He smiled at me, and with pride says he,<br />";
    ly += "\"That's the gem of Ireland's crown.<br />";
    ly += "She's young Rosie McCann from the banks of the Bann<br />";
    ly += "She's the star of the County Down.\"<br />";
    ly += "<br />";
    ly += "chorus<br />";
    ly += "<br />";
    ly += "At the'harvest fair'she'll be surely there<br />";
    ly += "So'I'll dress in my Sunday clothes<br />";
    ly += "And I'll try sheep's eyes, and deludhering lies<br />";
    ly += "On the heart of the nut-brown rose.<br />";
    ly += "No pipe I'll smoke, no horse I'll yoke<br />";
    ly += "Till'my plow with'rust'turns brown<br />";
    ly += "Till a smiling bride by my own fireside<br />";
    ly += "Sits the star of the County Down.<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsFields()
{
    var ly = "";
    
    ly += "<u>Fields of Athenry </u><br />";
    ly += "<br />";
    ly += "By a lonely prison wall, I heard a young girl calling/\"Michael, they have taken you away<br />";
    ly += "For you stole Trevelyan's corn/So the young might see the morn.<br />";
    ly += "Now a prison ship lies waiting in the bay.\"<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "Low lie the fields of Athenry/Where once we watched the small free birds fly<br />";
    ly += "Our love was on the wing. We had dreams and songs to sing<br />";
    ly += "It's so lonely round the fields of Athenry.<br />";
    ly += "By a lonely prison wall, I heard a young man calling. \"Nothing matters, Mary, when you're free Against the famine and the crown, I rebelled, they cut me down. Now you must raise our child with dignity.\"<br />";
    ly += "<br />";
    ly += "Chorus <br />";
    ly += "<br />";
    ly += "By a lonely harbor wall, she watched the last star falling. As the prison ship sailed out against the sky. For she lived to hope and pray for her love in Botany Bay. It's so lonely round the fields of Athenry<br />";
    ly += "<br />";
    ly += "Chorus<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}

function GetLyricsFare()
{
    var ly = "";
    
    ly += "<u>Fare Thee Well</u><br />";
    ly += "<br />";
    ly += "Fare thee well/My own true love<br />";
    ly += "Farewell for a while/I'm going away<br />";
    ly += "But I'll return/If I go 10,000 miles<br />";
    ly += "<br />";
    ly += "10,000 miles/My own true love<br />";
    ly += "10,000 miles or more/And the rocks may melt<br />";
    ly += "And the seas may burn/If I no more return<br />";
    ly += "<br />";
    ly += "And you see/Yon lonesome dove<br />";
    ly += "Sitting on an ivy tree/She's weeping for<br />";
    ly += "Her own true love/As I will weep for mine<br />";
    ly += "<br />";
    ly += "Oh come back/My own true love<br />";
    ly += "Stay a while with me/For if I had a friend<br />";
    ly += "All on this earth/Then you'll be a friend to me, my dear<br />";
    ly += "<br />";
    ly += "Oh come back/My own true love<br />";
    ly += "Stay a while with me/For if I had a friend<br />";
    ly += "All on this earth<br />";
    ly += "<br />";
    ly += "Then you'll be that friend to me, my dear<br />";
    ly += "You'll be that friend to me<br />";
    ly += "Then you'll be that friend to me, my dear. You'll be that friend to me<br />";
    ly += "<br />";

    LoadLyrics(ly, 225);
}


function GetLyricsJourneyman()
{
    var ly = "";
    
    ly += "<u>Journeyman</u><br />";
    ly += "<br />";
    ly += "A Journeyman came up one night,<br />";
    ly += "With walking he was weary.<br />";
    ly += "A Journeyman came up one night,<br />";
    ly += "When the moon shone bright and clearly.<br />";
    ly += "He met a fox upon the road,<br />";
    ly += "A-running through the heather.<br />";
    ly += "He caught that fox upon the road,<br />";
    ly += "Whose eyes were quick and clever.<br />";
    ly += "<br />";
    ly += "Chorus:<br />";
    ly += "Johnny’s gone this night to town,<br />";
    ly += "He’s on his way tonight.<br />";
    ly += "When morning comes no need to work,<br />";
    ly += "For gold or silver bright.<br />";
    ly += "<br />";
    ly += "The fox said 'sir, let me free,<br />";
    ly += "And keep me from this town-o.'<br />";
    ly += "The fox said 'sir, wishes three,<br />";
    ly += "I’ll grant before the dawn-o.'<br />";
    ly += "'My first wish,' said the Journeyman,<br />";
    ly += "a-pointing to his whiskey,<br />";
    ly += "'My first wish to you is that<br />";
    ly += "my bottle never be empty.'<br />";
    ly += "<br />";
    ly += "Cho<br />";
    ly += "<br />";
    ly += "To test his wish, the young man drank<br />";
    ly += "But could not drain the bottle.<br />";
    ly += "Before too long, the young man sank<br />";
    ly += "And the fox began to smile.<br />";
    ly += "When morn’s first light crept o’er the brink<br />";
    ly += "And still the young man slumbered,<br />";
    ly += "The fox he hid that young man’s drink<br />";
    ly += "And left him there bewildered.<br />";
    ly += "<br />";
    ly += "Cho x2<br />";

    LoadLyrics(ly, 225);
}

function StopSound()
{
    if(playing)
    {
        playing = false;
        sound.stop();
        songplaying = "";
    }
}

function BreakSound()
{
    sound.stop();
    //sound.__call('StopPlay', sound.object_id);
    sound.object_id = null;
    document.getElementById('divMovie').innerHTML = "";
    sound = null;
}

function LatestNewsClick()
{
    UnionStation("./Pages/Blogs.aspx", true, "");
    var img = document.getElementById('imgHead');
    //alert(img.src);
    img.src = "./Pictures/Menu/HeadShotBanner2.png";
    //alert(img.src);
}

function UpcomingEventsClick()
{
    UnionStation("./Pages/Events.aspx", true, "");
    LoadMaps();
    var img = document.getElementById('imgHead');
   // alert(img.src);
    img.src = "./Pictures/Menu/HeadShotBanner2.png";
    //alert(img.src);
}

function RecalcTotals()
{
    var q1 = document.getElementById("txtCD1").value;
    var q2 = document.getElementById("txtCD2").value;
    var q3 = document.getElementById("txtCD3").value;

    var t1 = Number(q1)*12.5;
    var t2 = Number(q2)*15.0;
    var t3 = Number(q3)*15.0;

    disp1 = MoneyDisplay(t1);
    disp2 = MoneyDisplay(t2);
    disp3 = MoneyDisplay(t3);

    document.getElementById("lblTotal1").innerHTML = disp1;
    document.getElementById("lblTotal2").innerHTML = disp2;
    document.getElementById("lblTotal3").innerHTML = disp3;

    var sum = t1 + t2 + t3 + 4.5;
    
    disp = MoneyDisplay(sum);

    document.getElementById("lblOrderTotal").innerHTML = disp;
}

function MoneyDisplay(sum)
{
    var disp = "$" + Math.floor(sum) + ".";
    var remain = sum - Math.floor(sum);

    if(remain < 0.10)
        disp = disp + "0";

    disp = disp + Math.round(remain*100);
    return disp;
}

function SubmitForm()
{
    var q1 = document.getElementById("txtCD1").value;
    var q2 = document.getElementById("txtCD2").value;
    var q3 = document.getElementById("txtCD3").value;
    
    var goog1 = document.getElementById("item_quantity_1");
    var goog2 = document.getElementById("item_quantity_2");
    var goog3 = document.getElementById("item_quantity_3");
    
    goog1.value = q1;
    goog2.value = q2;
    goog3.value = q3;

    var name_1 = document.getElementById("item_name_1");
    var name_2 = document.getElementById("item_name_2");
    var name_3 = document.getElementById("item_name_3");

    var description_1 = document.getElementById("item_description_1");
    var description_2 = document.getElementById("item_description_2");
    var description_3 = document.getElementById("item_description_3");

    var price_1 = document.getElementById("item_price_1");
    var price_2 = document.getElementById("item_price_2");
    var price_3 = document.getElementById("item_price_3");

    var frm = document.getElementById("formSubmit");

    if(q1 == 0 && q2 == 0 && q3 == 0) 
    {
        frm.action = "";
        return;
    }
    else
    {
        frm.action = "https://checkout.google.com/cws/v2/Merchant/305653405115291/checkoutForm";
        //frm.action = "https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/167159265225802";
    }

    var tbl = document.getElementById("tblData");

    /*000
    001
    010
    011
    100
    101
    110
    111*/

    frm.action = "https://checkout.google.com/cws/v2/Merchant/305653405115291/checkoutForm";
    //frm.action = "https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/167159265225802";

    if(q1 == 0 && q2 == 0 && q3 == 0)
    {
        //none
        frm.action = "";
        return;
    }
    else if(q1 == 0 && q2 == 0 && q3 != 0)
    {
        //no row 1 or 2

        goog3.id = "item_quantity_1";
        goog3.name = "item_quantity_1";

        name_3.id = "item_name_1";
        name_3.name = "item_name_1";

        description_3.id = "item_description_1";
        description_3.name = "item_description_1";

        price_3.name = "item_price_1";
        price_3.id = "item_price_1";

        tbl.deleteRow(1);
        tbl.deleteRow(0);
    }
    else if(q1 == 0 && q2 != 0 && q3 == 0)
    {
        //no row 1 or 3

        goog2.id = "item_quantity_1";
        goog2.name = "item_quantity_1";

        name_2.id = "item_name_1";
        name_2.name = "item_name_1";

        description_2.id = "item_description_1";
        description_2.name = "item_description_1";

        price_2.name = "item_price_1";
        price_2.id = "item_price_1";

        tbl.deleteRow(2);
        tbl.deleteRow(0);
    }
    else if(q1 == 0 && q2 != 0 && q3 != 0)
    {
        //no row 1

        goog3.id = "item_quantity_1";
        goog3.name = "item_quantity_1";

        name_3.id = "item_name_1";
        name_3.name = "item_name_1";

        description_3.id = "item_description_1";
        description_3.name = "item_description_1";

        price_3.name = "item_price_1";
        price_3.id = "item_price_1";

        tbl.deleteRow(0);
    }
    else if(q1 != 0 && q2 == 0 && q3 == 0)
    {
        //only Rising Gael, sold out
        frm.action = "";
        tbl.deleteRow(2);
        tbl.deleteRow(1);
        return;
    }
    else if(q1 != 0 && q2 == 0 && q3 != 0)
    {
        //no row 2

        goog3.id = "item_quantity_2";
        goog3.name = "item_quantity_2";

        name_3.id = "item_name_2";
        name_3.name = "item_name_2";

        description_3.id = "item_description_2";
        description_3.name = "item_description_2";

        price_3.name = "item_price_2";
        price_3.id = "item_price_2";

        tbl.deleteRow(1);
    }
    else if(q1 != 0 && q2 != 0 && q3 == 0)
    {
        //no row 3
        tbl.deleteRow(2);
    }
    else if(q1 != 0 && q2 != 0 && q3 != 0)
    {
        //all
    }
}


// stop hiding from me ---> 
