

if (screen.width < 1024) {
	document.write("<LINK href=\"../css/style800.css\" type=\"text/css\" rel=\"stylesheet\" />");
	}
else {
	document.write("<LINK href=\"../css/style1024.css\" type=\"text/css\" rel=\"stylesheet\" />");	
	}

var overSub = false;

function getElement(id) {
return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
}

// MOVE OBJECT TO COORDINATE
function moveObjectTo(objectID,x,y) {
var el = getElement("submenu1");
el.style.left = x;
el.style.top = y;
}

// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu() {
var el = getElement("submenu1");
el.style.left = "413px";
el.style.top = "95px";

}


// HIDE ONE SUB MENU
function hideSubMenu() {
	if ( overSub == false ) {
		 moveObjectTo("submenu1","-500px", "-500px");
	}
}




function showPicture(url) {
var picurl;
picurl = "../tier/largepic.asp?pic=" + url;
popupWin = window.open(picurl,'largePic','width=780,height=860,location=no,menubar=no,left=400,top=100,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no');
}

function showAdditionalView(url) {
var picurl;
picurl = "../tier/additionalView.asp?pic=" + url;
popupWin = window.open(picurl,'largePic','width=780,height=860,location=no,menubar=no,left=400,top=100,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no');
}

function showWindow(url) {
window.open(url,'PicOfWeek2','width=780,height=535,location=no,menubar=no,left=400,top=100,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no');
}

function showMap(url) {
window.open(url,'PicOfWeek3','width=670,height=865,location=no,menubar=no,left=400,top=100,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no');
}

function go()
{
	var box;
	var destination;
	box = document.forms[1].navi;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function go2()
{
	var box;
	var destination;
	box = document.forms[1].navi2;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function goCat()
{
	var box;
	var destination;
	box = document.forms[1].shopByCat;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function swapSwatches(image1, image2, largepic, altpic, photopath){
eval("document.img_" + image1 + ".src = '" + photopath + image2 + "'");
var picurl = "JavaScript:showAdditionalView('" + largepic + "');";
var picurl2 = "JavaScript:showAdditionalView('" + photopath + altpic + "');";

	if (navigator.appName=="Netscape") {
		eval("document.links['lg_" + image1 + "'].href = picurl");
		eval("document.links['lg1_" + image1 + "'].href = picurl");
	}
	
	else {
		eval("document.links('lg_" + image1 + "').href = picurl");
		eval("document.links('lg1_" + image1 + "').href = picurl");		
                 
	}
	
}

