var affiliate = "test";

function Set_Cookie( name, value, expires, path, domain, secure ) 
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
// -->

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
	
}

function CookieBannerImage(){
    var value = readCookie("Partner");
    affiliate = value;
    if(value == 'AmtgardStore')
    {
        document.imageBanner.src ='http://www.edhellen.com/title.jpg';     
    }
    else if(value == 'NeroStore')
    {
        document.imageBanner.src ='http://www.edhellen.com/Banner_Nero_468x60.gif';  			    
    }
    else if(value == 'NyghtShade')
    {
        document.imageBanner.src ='http://www.edhellen.com/ad_nyght_ed.gif';  			    
    }
    else if(value == 'play')
    {
        document.imageBanner.src ='http://www.edhellen.com/play.gif';  			    
    }
    else if(value == 'finalhavenlarp')
    {
        document.imageBanner.src ='http://www.edhellen.com/finalhavenlarp.gif';  			    
    }
    else if(value == 'nerocentral')
    {
        document.imageBanner.src ='http://www.edhellen.com/nerocentral.gif';  			    
    }
    else if(value == 'nerokentucky')
    {
        document.imageBanner.src ='http://www.edhellen.com/nerokentucky.gif';  			    
    }
    else if(value == 'neromiddletennessee')
    {
        document.imageBanner.src ='http://www.edhellen.com/neromiddletennessee.gif';  			    
    }
    else if(value == 'neronewbrunswick')
    {
        document.imageBanner.src ='http://www.edhellen.com/neronewbrunswick.gif';  			    
    }
    else if(value == 'neronebraska')
    {
        document.imageBanner.src ='http://www.edhellen.com/neronebraska.gif';  			    
    }
    else if(value == 'thelarpzone')
    {
        document.imageBanner.src ='http://www.edhellen.com/thelarpzone.gif';  			    
    }
    else if(value == 'onlineeffects')
    {
        document.imageBanner.src ='http://www.edhellen.com/onlineeffects.gif';  			    
    }
    else if(value == 'triumphlarp')
    {
        document.imageBanner.src ='http://www.edhellen.com/triumphlarp.gif';  			    
    }
    else if(value == 'visionsoftherealm')
    {
        document.imageBanner.src ='http://www.edhellen.com/visionsoftherealm.gif';  			    
    }
    else if(value == 'LarpStore')
    {
        document.imageBanner.src ='http://www.edhellen.com/mm5/images/larpstore_photbnr_800.JPG';  			    
    }
    else if(value == 'talinor')
    {
        document.imageBanner.src ='http://www.edhellen.com/talinor.gif';  			    
    }
    else if(value == 'rendezvous')
    {
        document.imageBanner.src ='http://www.edhellen.com/rendezvous.gif';  			    
    }
    else
    {
    }
}

function SetAffiliate()
{
    affiliate = readCookie("Partner");
    if(!affiliate)
    {
        affiliate='Edhellen';
    }
    return affiliate;
}
function SetMainBackground()
{
    if(affiliate=="LarpStore")
    {
        document.write("<table width=\"100%\" border=\"0\"  cellspacing=\"0\" cellpadding=\"0\">");
    }
    else
    {
         document.write("<table width=\"100%\" border=\"0\"  cellspacing=\"0\" cellpadding=\"0\">");
    }
}

function WriteBanner()
{
    if(affiliate=="LarpStore")
    {
        document.write("<a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=on-sale-now\" id=\"linkBanner\"><img src=\"images/larpstore_photbnr_800.JPG\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="Avendale")
    {
        document.write("<a href=\"http://www.avendale.com\" id=\"linkBanner\"><img src=\"images/avendalebannermain.jpg\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="NyghtShade")
    {
        document.write("<a href=\"http://www.nyghtshade.net\" id=\"linkBanner\"><img src=\"images/ad_nyght_ed.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="play")
    {
        document.write("<a href=\"http://www.adventuresforyouth.com\" id=\"linkBanner\"><img src=\"images/play.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="finalhavenlarp")
    {
        document.write("<a href=\"http://www.finalhavenlarp.com\" id=\"linkBanner\"><img src=\"images/finalhavenlarp.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="nerocentral")
    {
        document.write("<a href=\"http://www.nerocentral.com\" id=\"linkBanner\"><img src=\"images/nerocentral.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="nerokentucky")
    {
        document.write("<a href=\"http://www.nerokentucky.com\" id=\"linkBanner\"><img src=\"images/nerokentucky.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="neromiddletennessee")
    {
        document.write("<a href=\"http://www.neromiddletennessee.com\" id=\"linkBanner\"><img src=\"images/neromiddletennessee.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="neronewbrunswick")
    {
        document.write("<a href=\"http://www.nero.nb.ca\" id=\"linkBanner\"><img src=\"images/neronewbrunswick.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="neronebraska")
    {
        document.write("<a href=\"http://www.neronebraska.com\" id=\"linkBanner\"><img src=\"images/neronebraska.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="thelarpzone")
    {
        document.write("<a href=\"http://www.larpzone.com\" id=\"linkBanner\"><img src=\"images/thelarpzone.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="onlineeffects")
    {
        document.write("<a href=\"http://www.onlineeffects.com\" id=\"linkBanner\"><img src=\"images/onlineeffects.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="triumphlarp")
    {
        document.write("<a href=\"http://www.triumphlarp.com\" id=\"linkBanner\"><img src=\"images/triumphlarp.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="visionsoftherealm")
    {
        document.write("<a href=\"http://www.visionsoftherealm.com\" id=\"linkBanner\"><img src=\"images/visionsoftherealm.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="talinor")
    {
        document.write("<a href=\"http://www.talinor.org\" id=\"linkBanner\"><img src=\"images/talinor.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else if(affiliate=="rendezvous")
    {
        document.write("<a href=\"http://www.321layon.com\" id=\"linkBanner\"><img src=\"images/rendezvous.gif\" name=\"imageBanner\" border=\"0\" ></a>");
    }
    else
    {
        document.write("<a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=on-sale-now\" id=\"linkBanner\"><img src=\"images/stores.jpg\" name=\"imageBanner\" border=\"0\" ></a>");
    }
}
function WriteInformation(){

	if(affiliate == 'Avendale')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=AVEN&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/avendaleinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'NyghtShade')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=nyghtshade&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/nyghtshadeinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'play')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=play&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/playinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'finalhavenlarp')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=finalhavenlarp&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/finalhavenlarpinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'nerocentral')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=nerocentral&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/nerocentralinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'nerokentucky')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=nerokentucky&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/nerokentuckyinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'neromiddletennessee')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=neromiddletennessee&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/neromiddletennesseeinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'neronewbrunswick')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=neronewbrunswick&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/neronewbrunswickinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'neronebraska')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=neronebraska&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/neronebraskainfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'thelarpzone')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=thelarpzone&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/thelarpzoneinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'onlineeffects')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=onlineeffects&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/onlineeffectsinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'triumphlarp')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=triumphlarp&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/triumphlarpinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'visionsoftherealm')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=visionsoftherealm&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/visionsoftherealminfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'talinor')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=talinor&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/talinorinfo.gif\" border=\"0\"/>");
	}
	else if(affiliate == 'rendezvous')
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=rendezvous&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/rendezvousinfo.gif\" border=\"0\"/>");
	}
	else
	{
		document.write("<map name=\"Information\"> ");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTLG&Store_Code=EA\" shape =\"rect\" coords =\"0,29,126,49\" />");
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=WHSL&Store_Code=EA\" shape =\"rect\" coords =\"0,50,126,69\" />");  
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=RETA&Store_Code=EA\" shape =\"rect\" coords =\"0,70,126,89\" />");      
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=BULK&Store_Code=EA\" shape =\"rect\" coords =\"0,90,126,109\" />");  
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=AFFL&Store_Code=EA\" shape =\"rect\" coords =\"0,110,126,129\" />");       
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ABOU&Store_Code=EA\" shape =\"rect\" coords =\"0,130,126,150\" />");      
		document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CONT&Store_Code=EA\" shape =\"rect\" coords =\"0,151,126,175\" />");
        document.write("</map>"); 
        document.write("<img usemap=\"#Information\" src=\"images/information.gif\" border=\"0\"/>");
    }
}
function WriteStoreFrontSubtitle()
{
	if(affiliate == 'LarpStore')
	{
		document.write("<h3>Welcome to the Larp Store</h3>");
 	}
 	else if(affiliate == "Avendale")
	{
	    document.write("<h3>Welcome to Nero Avendale Store</h3>");
	}
 	else if(affiliate == "NyghtShade")
	{
	    document.write("<h3>Welcome to NyghtShade Boffer Store</h3>");
	}
 	else if(affiliate == "nerokentucky")
	{
	    document.write("<h3>Welcome to the NERO Kentucky Store</h3>");
	}
 	else if(affiliate == "nerocentral")
	{
	    document.write("<h3>Welcome to the NERO Central Store</h3>");
	}
 	else if(affiliate == "neromiddletennessee")
	{
	    document.write("<h3>Welcome to the NERO Middle Tennessee Store</h3>");
	}
 	else if(affiliate == "neronewbrunswick")
	{
	    document.write("<h3>Welcome to the NERO New Brunswick Store</h3>");
	}
 	else if(affiliate == "neronebraska")
	{
	    document.write("<h3>Welcome to the NERO Nebraska Store</h3>");
	}
 	else if(affiliate == "visionsoftherealm")
	{
	    document.write("<h3>Welcome to the Visions of the Realm Store</h3>");
	}
 	else if(affiliate == "triumphlarp")
	{
	    document.write("<h3>Welcome to the Triumph LARP Store</h3>");
	}
 	else if(affiliate == "onlineeffects")
	{
	    document.write("<h3>Welcome to the Online Effects Store</h3>");
	}
 	else if(affiliate == "thelarpzone")
	{
	    document.write("<h3>Welcome to the LARP Zone Store</h3>");
	}
 	else if(affiliate == "play")
	{
	    document.write("<h3>Welcome to the P.L.A.Y. Store</h3>");
	}
 	else if(affiliate == "finalhavenlarp")
	{
	    document.write("<h3>Welcome to the Final Haven Larp Store</h3>");
	}
 	else if(affiliate == "talinor")
	{
	    document.write("<h3>Welcome to the Talinor Store</h3>");
	}
 	else if(affiliate == "rendezvous")
	{
	    document.write("<h3>Welcome to the Rendezvous LARP Store</h3>");
	}
	else
	{
	    document.write("<h3>Welcome to Edhellen Armoury</h3>");
    }
}
function WriteStoreFrontMainText()
{
	if(affiliate == 'LarpStore')
	{
		document.write("Every adventurer needs good equipment<br /><br />");
		document.write("We offer the best LARP equipment available. We carry a fine assortment of chainmail armor, hybrid replica armor, latex weapons, and standard boffer swords. We also carry materials for building your own boffer weapons. No matter what type of Live Action Role-playing game you play – Gothic, Pirates, Fantasy, Theater style, Live combat, Medieval, or SCA – we have something for you. Our wares are perfect for Theater and Film as well.<br /><br />");
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
        document.write("The Larp-Store is powered by Edhellen Armoury<br /><br />");
 	}
	else if(affiliate == "Avendale")
	{
        document.write("Welcome to the NERO LARP Avendale Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the Avendale Store carries a complete line of Nero approved latex weapons, supplies for constructing your own weapons, and equipment for a new tournament fighting system called <a href=\"http://www.hacsinterational.com\">HACS</a>. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Avendale staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Avendale LARP Affiliate please be sure that you enter the site through <a href=\"http://www.avendale.com/store\">www.avendale.com/store</a> to set the cookie, so that Avendale can get credit for the purchase. The Avendale banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "NyghtShade")
	{
        document.write("Welcome to the NyghtShade Boffer Store - for all of your combat equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for fighting groups, allows the group to earn gear credits for each and every purchase made from the affiliate web store.<br/><br/>");
	    document.write("Currently the NyghtShade Store carries a complete line of NyghtShade approved weapons and supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The NyghtShade staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for NyghtShade Affiliate please be sure that you enter the site through <a href=\"http://www.nyghtshade.net\">www.nyghtshade.net</a> to set the cookie, so that NyghtShade can get credit for the purchase. The NyghtShade banner should be flying high on the screen!<br/><br/>");	    
	    document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=fullcontact\"><img src=\"graphics/00000001/flambergel.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");
    }
	else if(affiliate == "neronebraska")
	{
        document.write("Welcome to the NERO LARP Nebraska Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the NERO Nebraska Store carries a complete line of Nero approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The NERO Nebraska staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for NERO Nebraska Affiliate please be sure that you enter the site through <a href=\"http://www.neronebraska.com\">www.neronebraska.com</a> to set the cookie, so that NERO Nebraska can get credit for the purchase. The NERO Nebraska banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "neronewbrunswick")
	{
        document.write("Welcome to the NERO LARP New Brunswick Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the NERO New Brunswick Store carries a complete line of Nero approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The NERO New Brunswick staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for NERO New Brunswick Affiliate please be sure that you enter the site through <a href=\"http://www.nero.nb.ca\">www.nero.nb.ca</a> to set the cookie, so that NERO New Brunswick can get credit for the purchase. The NERO New Brunswick banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "neromiddletennessee")
	{
        document.write("Welcome to the NERO LARP Middle Tennessee Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the NERO Middle Tennessee Store carries a complete line of Nero approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The NERO Middle Tennessee staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for NERO Middle Tennessee Affiliate please be sure that you enter the site through <a href=\"http://www.neromiddletennessee.com\">www.neromiddletennessee.com</a> to set the cookie, so that NERO Middle Tennessee can get credit for the purchase. The NERO Middle Tennessee banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "nerocentral")
	{
        document.write("Welcome to the NERO LARP Central Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the NERO Central Store carries a complete line of Nero approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The NERO Central staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for NERO Central Affiliate please be sure that you enter the site through <a href=\"http://www.nerocentral.com\">www.nerocentral.com</a> to set the cookie, so that NERO Central can get credit for the purchase. The NERO Central banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "nerokentucky")
	{
        document.write("Welcome to the NERO LARP Kentucky Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the NERO Kentucky Store carries a complete line of Nero approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The NERO Kentucky staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for NERO Kentucky Affiliate please be sure that you enter the site through <a href=\"http://www.nerokentucky.com\">www.nerokentucky.com</a> to set the cookie, so that NERO Kentucky can get credit for the purchase. The NERO Kentucky banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "visionsoftherealm")
	{
        document.write("Welcome to the Visions of the Realm LARP Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the Visions of the Realm Store carries a complete line of approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Visions of the Realm staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Visions of the Realm Affiliate please be sure that you enter the site through <a href=\"http://www.visionsoftherealm.com\">www.visionsoftherealm.com</a> to set the cookie, so that Visions of the Realm can get credit for the purchase. The Visions of the Realm banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "triumphlarp")
	{
        document.write("Welcome to the Triumph LARP Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the Triumph LARP Store carries a complete line of approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Triumph LARP staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Triumph LARP Affiliate please be sure that you enter the site through <a href=\"http://www.triumphlarp.com\">www.triumphlarp.com</a> to set the cookie, so that Triumph LARP can get credit for the purchase. The Triumph LARP banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "onlineeffects")
	{
        document.write("Welcome to the Online Effects Store - for all of your combat equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for fighting groups, allows the group to earn gear credits for each and every purchase made from the affiliate web store.<br/><br/>");
	    document.write("Currently the Online Effects Store carries a complete line of Online Effects approved weapons and supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Online Effects staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Online Effects Affiliate please be sure that you enter the site through <a href=\"http://www.onlineeffects.com\">www.onlineeffects.com</a> to set the cookie, so that Online Effects can get credit for the purchase. The Online Effects banner should be flying high on the screen!<br/><br/>");	    
	    document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=fullcontact\"><img src=\"graphics/00000001/flambergel.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");
    }
	else if(affiliate == "thelarpzone")
	{
        document.write("Welcome to The LARP Zone Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently The LARP Zone Store carries a complete line of approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The LARP Zone staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for The LARP Zone Affiliate please be sure that you enter the site through <a href=\"http://www.larpzone.com\">www.larpzone.com</a> or <a href=\"http://www.nerolasvegas.com\">www.nerolasvegas.com</a> to set the cookie, so that The LARP Zone can get credit for the purchase. The LARP Zone banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"images/larpzone1.jpg\" border=\"0\"></a></center><br /><br />");		
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"images/larpzone2.jpg\" border=\"0\"></a></center><br /><br />");		
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"images/larpzone3.jpg\" border=\"0\"></a></center><br /><br />");		
	}
	else if(affiliate == "play")
	{
        document.write("Welcome to the P.L.A.Y Store - for all of your combat equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for fighting groups, allows the group to earn gear credits for each and every purchase made from the affiliate web store.<br/><br/>");
	    document.write("Currently the P.L.A.Y Store carries a complete line of P.L.A.Y approved weapons and supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The P.L.A.Y staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for P.L.A.Y Affiliate please be sure that you enter the site through <a href=\"http://www.adventuresforyouth.com\">www.adventuresforyouth.com</a> to set the cookie, so that P.L.A.Y can get credit for the purchase. The P.L.A.Y banner should be flying high on the screen!<br/><br/>");	    
	    document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=fullcontact\"><img src=\"graphics/00000001/flambergel.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");
    }
	else if(affiliate == "finalhavenlarp")
	{
        document.write("Welcome to the Final Haven LARP Store - for all of your combat equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for fighting groups, allows the group to earn gear credits for each and every purchase made from the affiliate web store.<br/><br/>");
	    document.write("Currently the Final Haven LARP Store carries a complete line of Final Haven LARP approved weapons and supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Final Haven LARP staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Final Haven LARP Affiliate please be sure that you enter the site through <a href=\"http://www.finalhavenlarp.com\">www.finalhavenlarp.com</a> to set the cookie, so that Final Haven LARP can get credit for the purchase. The Final Haven LARP banner should be flying high on the screen!<br/><br/>");	    
	    document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=fullcontact\"><img src=\"graphics/00000001/flambergel.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");
    }
	else if(affiliate == "talinor")
	{
        document.write("Welcome to the Talinor Store - for all of your combat equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for fighting groups, allows the group to earn gear credits for each and every purchase made from the affiliate web store.<br/><br/>");
	    document.write("Currently the Talinor Store carries a complete line of weapons and supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Talinor staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Talinor Affiliate please be sure that you enter the site through <a href=\"http://www.talinor.org\">www.talinor.org</a> to set the cookie, so that Talinor can get credit for the purchase. The Talinor banner should be flying high on the screen!<br/><br/>");	    
	    document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=fullcontact\"><img src=\"graphics/00000001/flambergel.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");
    }
	else if(affiliate == "rendezvous")
	{
        document.write("Welcome to the Rendezvous LARP Store - for all of your LARP equipment needs.<br/><br/>");
	    document.write("This program, created by Edhellen Armoury for LARP Groups, allows the LARP group to earn LARP Gear credits for each and every purchase made from the LARP affiliate web store. These proceeds will be used to provide gear to better outfit our actors - those who play ally, adversary and monster.<br/><br/>");
	    document.write("Currently the Rendezvous LARP Store carries a complete line of approved latex weapons, supplies for constructing your own weapons. While in the near future we will have full lines of armor, garb and accessories.<br/><br/>");
        document.write("The Rendezvous LARP staff has added their comments to the descriptions of some of the products to help you select some of the weapons that they have used.<br/><br/>");	    
        document.write("To ensure credit for Rendezvous LARP Affiliate please be sure that you enter the site through <a href=\"http://www.321layon.com\">www.321layon.com</a> to set the cookie, so that Rendezvous LARP can get credit for the purchase. The Rendezvous LARP banner should be flying high on the screen!<br/><br/>");	    
        document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-1&Category_Code=soft-latex-weapons\"><img src=\"graphics/00000001/softlongl.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");		
	}
	else
	{
	    document.write("<br/>Finally! Winter has ended at Edhellen Armoury! We have been busy working with our new partners at Stonehouse Park. If you haven’t checked out their website out yet, take a couple minutes to do so! www.stonehousepark.net Stonehouse Park is a HUGE private park located in Earlville, IL that is dedicated to reenactment of all kinds. There is something going on almost every week. Check out these events or contact the Stonehouse Park crew to schedule your own.<br/> ");
	    document.write("<br/>Be sure to check us out at the conventions we will be attending this summer:<br/> ");
	    document.write("<a href=\"http://www.originsgamefair.com/\">Origins Dungeon Module 1.Edhellen Armoury is sponsoring a huge dungeon crawl at Origins this year. Come check us out in Exhibit Hall F. Adventuring parties starting out every half hour Thursday-Saturday all day long.</a><br/> ");
	    document.write("<a href=\"http://www.gencon.com/\">GenCon</a><br/>");
	    document.write("<a href=\"http://www.dragoncon.com/\">DragonCon</a><br/>");
	    document.write("<br/> ");
	    document.write("<br/>Edhellen Armoury makes a wide variety of full contact weapons and armor for use in many foam fighting sports, LARPS, and martial arts training. If you are a member of Belegarth, NERO, Amtgard, Darkon, SCA Boffer or other foam fighting organizations we have the perfect foam sword or shield for you. Our weapons are manufactured with durability and functionality in mind. One cannot find a foam weapon that will serve you better or longer than an Edhellen weapon.<br/><h3>All Edhellen Armoury products are designed for and should be used by persons 13 and older.</h3><br/>");
	    document.write("<center><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=EA&Category_Code=fullcontact\"><img src=\"graphics/00000001/flambergel.jpg\" width=\"250\" border=\"0\"></a></center><br /><br />");
	    
    }
}


function WriteRightMargin()
{
	if(affiliate == 'LarpStore')
	{
	
	}
	else if(affiliate == 'Avendale')
    {
         document.write("<table>");
        document.write("<tr><td valign=\"top\" width=\"20\" align=\"right\"><img src=\"images/bestsellers.gif\" alt=\"Avendale Favorites\" /></td></tr>");
        document.write("<tr height=\"20\"><td></td></tr>");
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-2&Category_Code=soft-latex-weapons\" id=\"link1\"><img src=\"graphics/00000001/softbroads.jpg\" name=\"image1\" border=\"2\" alt=\"Soft Broad Sword\"></a></td></tr>");        
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a class=\"small_link\" href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=SL-2&Category_Code=soft-latex-weapons\" id=\"link1a\">Soft Broadsword</a></td></tr>");                
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=FD-A0202&Category_Code=latex-swords\" id=\"link2\"><img src=\"graphics/00000001/adventurers.jpg\" name=\"image2\" border=\"2\" alt=\"Adventurer Sword\"></a></td></tr>");  
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a class=\"small_link\" href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=FD-A0202&Category_Code=latex-swords\" id=\"link2a\">Adventurer Sword</a></td></tr>");          
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=FD-A0101&Category_Code=latex-swords\" id=\"link3\"><img src=\"graphics/00000001/basics.jpg\" name=\"image3\" border=\"2\" alt=\"Basic Sword\"></a></td></tr>");  
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a class=\"small_link\" href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=FD-A0101&Category_Code=latex-swords\" id=\"link3\">Basic Sword</a></td></tr>");  
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=NERO_RULE&Category_Code=books\" id=\"link4\"><img src=\"graphics/00000001/NERORuleBookfrontsmall.jpg\" name=\"image4\" border=\"2\" alt=\"Rulebook\"></a></td></tr>");  
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a class=\"small_link\" href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=NERO_RULE&Category_Code=books\" id=\"link4a\">Nero Rulebook</td></tr>");  
        document.write("</table>");
    }
	else
	{
        document.write("<table>");
        document.write("<tr><td valign=\"top\" width=\"20\" align=\"right\"><input id=\"RadioBestSeller\" type=\"radio\" name=\"rightpane\" checked=\"checked\" language=\"javascript\" onclick=\"return RadioBestSeller_onclick()\" /></td><td align=\"left\"><img src=\"images/bestsellers.gif\" alt=\"Best Sellers\" /></td></tr>");
   
        document.write("<tr height=\"20\"><td></td></tr>");
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=LB-S-2806&Category_Code=one-handed-swords\" id=\"link1\"><img src=\"graphics/00000001/longbroads.jpg\" name=\"image1\" border=\"2\" alt=\"Long Broad Sword\"></a></td></tr>");        
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=mace&Category_Code=flails\" id=\"link2\"><img src=\"graphics/00000001/thumpymaces.jpg\" name=\"image2\" border=\"2\" alt=\"Mace\"></a></td></tr>");  
        document.write("<tr ><td align=\"center\" colspan=\"2\"><a href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=PROD&Store_Code=EA&Product_Code=R-S-SH&Category_Code=strap-shields\" id=\"link3\"><img src=\"graphics/00000001/standardrounds.jpg\" name=\"image3\" border=\"2\" alt=\"Standard Round Shield\"></a></td></tr>");  
        document.write("</table>");
    }
}


function WriteGameLinks()
{
	if(affiliate == 'LarpStore')
	{
	
	}
	else if(affiliate == 'NyghtShade')
	{
	
	}
	else if(affiliate == 'neronebraska')
	{
	
	}
	else if(affiliate == 'neronewbrunswick')
	{
	
	}
	else if(affiliate == 'neromiddletennessee')
	{
	
	}
	else if(affiliate == 'nerocentral')
	{
	
	}
	else if(affiliate == 'nerokentucky')
	{
	
	}
	else if(affiliate == 'visionsoftherealm')
	{
	
	}
	else if(affiliate == 'triumphlarp')
	{
	
	}
	else if(affiliate == 'onlineeffects')
	{
	
	}
	else if(affiliate == 'thelarpzone')
	{
	
	}
	else if(affiliate == 'play')
	{
	
	}
	else if(affiliate == 'finalhavenlarp')
	{
	
	}
	else if(affiliate == 'talinor')
	{
	
	}
	else if(affiliate == 'rendezvous')
	{
	
	}
	else if(affiliate == 'Avendale')
	{
        document.write("<map name=\"Community\">");
        document.write("<area  href=\"http://www.avendale.com\" shape =\"rect\" coords =\"0,29,126,49\" />");
        document.write("<area  href=\"http://www.nerolarp.com\" shape =\"rect\" coords =\"0,50,126,69\" />");

//HACS LINK GOES IN THE LINE BELOW

        document.write("<area  href=\"http://www.edhellen.com\" shape =\"rect\" coords =\"0,70,126,89\" />");       
        document.write("</map>");
        document.write("<img usemap=\"#Community\" src=\"images/avendalegames.gif\" border=\"0\"/>"); 	
	
	}

	else
	{
        document.write("<map name=\"Community\">");

//HACS LINK GOES IN THE LINE BELOW

        document.write("<area  href=\"http://www.edhellen.com\" shape =\"rect\" coords =\"0,29,126,49\" />");
        document.write("<area  href=\"http://www.belegarth.com\" shape =\"rect\" coords =\"0,50,126,69\" />");
        document.write("<area  href=\"http://www.nerolarp.com\" shape =\"rect\" coords =\"0,70,126,89\" />");       
        document.write("<area  href=\"http://www.amtgardinc.com\" shape =\"rect\" coords =\"0,90,126,109\" />");   
        document.write("<area  href=\"http://www.darkon.org\" shape =\"rect\" coords =\"0,110,126,129\" />");       
        document.write("<area  href=\"http://www.sca.org\" shape =\"rect\" coords =\"0,130,126,150\" />");  
        document.write("<area  href=\"http://www.edhellen.com/mm5/merchant.mvc?Screen=ADDL&Store_Code=EA\" shape =\"rect\" coords =\"0,150,126,170\" />");
        document.write("</map>");
        document.write("<img usemap=\"#Community\" src=\"images/communitylist.gif\" border=\"0\"/>"); 
    }
}


function WriteAffiliateStoreFront(){

    if(affiliate == 'AmtgardStore')
    {
        document.write("<H1>Amtgard Store in Heading 1</H1>");
    }
    else if(affiliate == 'NeroStore')
    {
        document.write("<H3>Nero Store in Heading 3</H3>");    }
    else
    {
	document.write("<br>");
    }
}
function WriteProduct(file)
{
    if(affiliate == 'Avendale')
    {
        frames['AffiliateDescription'].location.href = affiliate + "/" + file;
    }
}
