function setTheme(selectname) {
	var chosenTheme = selectname.value;
	var currentURL = window.location.href;
	var destURL = "";
	if(chosenTheme!="X" && currentURL.indexOf(chosenTheme) == -1) {

		if(chosenTheme=="summer") destURL = "/default-summer.aspx";
		else if(chosenTheme=="winter") destURL = "/default-winter.aspx";
		else destURL = "/default.aspx";

		window.location.href = destURL;
	}
}

function showRecommendAFriendForm(url) {
	var openForm = window.open(url,'recommendafriend', 'height=390,width=383,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,status=no,directories=no');
	if(window.focus) openForm.focus();
}

function showNewsletterForm(url) {
	var openForm = window.open(url,'newslettersignup', 'height=300,width=320,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,status=no,directories=no');
	if(window.focus) openForm.focus();
}

/* DS's JS Rollover effect stuff */

function articleOn(info){
    info.className = 'news-item color-back';
}

function articleOff(info) {
    info.className = 'news-item';
}

function articleClick(info) {
    var thisId = info.getAttribute("id")
    window.location.href = "/news-article.aspx?productid=" + thisId;
}