			//The code for setActiveStylesheet, readCookie, and the 
			//window.onload function are adapted slightly from the 
			//open source style switching code available from the website
			//www.alistapart.com.
			//
			//Edited by Patrick Boe Dec 7, 2004
			//
			//What this code does is set the market stylesheet for the page
			//that calls it, and disable all the other market stylesheets,
			//so there is a custom look for each market.  When the user hits
			//the index page or any market page, the page sets a cookie with the
			//title of the stylesheet.  That stylesheet 
			//remains active for all pages on the site until the user hits
			//a page that sets a new market cookie.  
			
			function setActiveStyleSheet(title)
			{
				var i, a, main, found;
				found=false;
				for(i=0; (a=document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1 
					&& a.getAttribute("title")) {
						a.disabled=true;
						if(a.getAttribute("title")==title) 
						{
							found=true;
							a.disabled=false;
						}
					}
				}
				if(!found&&title!="entry")
				{
					setActiveStyleSheet("entry");
				}
			}
			
			function readCookie(name){
				var c
				var nameEQ = name+"=";
				var ca = document.cookie.split(';');
				for(var i=0; i<ca.length;i++)
				{
					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;
			}
			
			var cookie = readCookie("GC_MKRT_GRP_Run");
			var title = cookie ? cookie : "entry";
			setActiveStyleSheet(title);
