// JScript source code

function showFabric(imageName,textName,textDescription)
{
	var popW = 300, popH = 350;
	var w = screen.availWidth, h = screen.availHeight;
	if (popW > w) popW=w;
	if (popH > h) popH=h;
	var leftPos = (w - popW)/2, topPos = (h - popH)/2;
	var sw = screen.width - 20;
	var sh = screen.height;
	var positionleft = (sw - 250)/2;
	var positiontop = (sh - 300)/2.5;
		
	var HTMLText;
	var swatchWin;
	
	HTMLText = "<html>";
	HTMLText = HTMLText + "<html>";
	HTMLText = HTMLText + "<head>";
	HTMLText = HTMLText + "<title>" + textName + "</title>";
	HTMLText = HTMLText + "<link rel=stylesheet href=sallystyle.css>"
	HTMLText = HTMLText + "</head>";
	HTMLText = HTMLText + "<body border='0' class='product' onload='window.focus();' topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0'>";
	HTMLText = HTMLText + "<table  align='center' width='100%' height='100%'>";
	HTMLText = HTMLText + "<tr><td align='center' class='productDetailText'>"
	HTMLText = HTMLText + "<img src=img/swatch/" + imageName + ">";
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "<tr><td align='center'>"
	HTMLText = HTMLText + "<span class='productDetailText'>" + textDescription + "</span>";
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "<tr><td>"
	HTMLText = HTMLText + "<div align='center'><a href=javascript:close()>close</a></div>";
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "</table>"
	HTMLText = HTMLText + "</body>";
	HTMLText = HTMLText + "</html>";
	
	swatchWin =  window.open('','swatchWin','width='+popW+',height='+popH+',scrollbars=0,resizable=0,status=0');
	swatchWin.focus();
	for(width1 = 1 ; width1 <= positionleft ; width1 = width1 + 10){
		swatchWin.moveTo(width1,positiontop)
	}

	swatchWin.document.write(HTMLText);
	swatchWin.document.close();
}

function showProduct(imageName,textName,fabricName)
{
	
	var popW = 500, popH = 700;
	var w = screen.availWidth, h = screen.availHeight;
	if (popW > w) popW=w;
	if (popH > h) popH=h;
	var leftPos = (w - popW)/2, topPos = (h - popH)/2;
	var sw = screen.width - 20;
	var sh = screen.height;
	var positionleft = (sw - 350)/2;
	var positiontop = (sh - 300)/2;
		
	var HTMLText;
	var productWin;

	HTMLText = "<html>";
	HTMLText = HTMLText + "<head>";
	HTMLText = HTMLText + "<title>" + textName + "</title>";
	HTMLText = HTMLText + "<link rel=stylesheet href=sallystyle.css>"
	HTMLText = HTMLText + "</head>";
	HTMLText = HTMLText + "<body border='0' class='product' onload='window.focus();' topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0'>";
	HTMLText = HTMLText + "<table border='0'  align='center' width='100%' height='100%'>";
	HTMLText = HTMLText + "<tr><td align='center' class='productDetailText'>"
	HTMLText = HTMLText + "<img src=img/products/" + imageName + ">";
	if(textName == 'TEES')
		HTMLText = HTMLText + "<br><br><br><font color='#666666'>" + fabricName +"<br>";
	else if(textName == 'BABY CLUTCH')
		HTMLText = HTMLText + "<br><br><br><b><font color='#666666'>" + textName + "</font></b><br>";
	else
		HTMLText = HTMLText + "<br><br><br><b><font color='#666666'>" + textName + "</font></b> - " + fabricName +"<br>";
		HTMLText = HTMLText + "<br>"
		
	switch(textName)
	{
		case "ALI BAG":
			HTMLText = HTMLText + "<br>Zip closure and one pocket on the inside.<br><br><br>";				
			HTMLText = HTMLText + "Height 7\" Width 9.5\" Depth 4\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "RUBY BAG":
		    HTMLText = HTMLText + "<br>One cell phone multi-function pocket on the inside, one pocket on the outside and a zip closure.<br><br><br>";
			HTMLText = HTMLText + "Height 10\" Width 14\" Depth 3\"";
			break;
		case "SMALL TOTE":
			HTMLText = HTMLText + "<br>One cell phone multi-function pocket on the inside and a magnetic snap closure.<br><br><br>";				
			HTMLText = HTMLText + "Height 9\" Width 11\" Depth 3\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "MEDIUM TOTE":
			HTMLText = HTMLText + "<br>Two Pockets on the inside and magnetic snap closure.<br><br><br>";		
			HTMLText = HTMLText + "Height 13\" Width 12\" Depth 6\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "SIGNATURE TOTE":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one cell phone pocket and a magnetic snap closure.<br><br><br>";		
			HTMLText = HTMLText + "Height 13\" Width 12\" Depth 6\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "LARGE TOTE":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one cell phone pocket and no closure.<br><br><br>";
			HTMLText = HTMLText + "Height 13\" Width 14\" Depth 10\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY BAG/GYM BAG":
		    HTMLText = HTMLText + "<br>Three pockets on the inside, one pocket on the outside, two bottle holders and a magnetic snap closure. Baby Bag comes with a removable changing pad.<br><br><br>";
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY TOTE":
		    HTMLText = HTMLText + "<br>Three pockets on the inside, one cell phone pocket, one pocket on the outside, two bottle holders and a magnetic snap closure. Baby Tote comes with a removable changing pad.<br><br><br>";
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY TOTE/POCKET TOTE BAG":
		    HTMLText = HTMLText + "<br>Three pockets on the inside, one cell phone pocket, one pocket on the outside, two bottle holders and a magnetic snap closure.  Baby Tote comes with a removable changing pad.<br><br>";
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			break;
		case "BABY BAG":
		    HTMLText = HTMLText + "<br>Three pockets on the inside, one cell phone pocket, one pocket on the outside, two bottle holders, and a removable changing pad and a magnetic snap closure.<br><br><br>";
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "HOBO BAG":
			HTMLText = HTMLText + "<br>One cell phone multi-function pocket on the inside and a zip closure.<br><br><br>";		
			HTMLText = HTMLText + "Height 8.5\" Width 11\" Depth 4.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BUCKET BAG":
			HTMLText = HTMLText + "<br>One cell phone multi-function pocket on the inside and a magnetic snap closure.<br><br><br>";		
			HTMLText = HTMLText + "Height 11\" Width 14\" Depth 4\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "SMALL CLUTCH":
			HTMLText = HTMLText + "Height 5\" Width 8\" Depth 3.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "EXTRA SMALL CLUTCH":
			HTMLText = HTMLText + "Height 4\" Width 5\" Depth 2.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;		
		case "MEDIUM CLUTCH":
			HTMLText = HTMLText + "Height 6\" Width 10\" Depth 4\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY CLUTCH":
			HTMLText = HTMLText + "Height 10\" Width 8\" Depth 0\"";
			HTMLText = HTMLText + "<br><br>"
			break;			
		case "LARGE CLUTCH":
			HTMLText = HTMLText + "Height 8\" Width 11.5\" Depth 5\"";
			HTMLText = HTMLText + "<br><br>"
			break;		
		case "SHOULDER BAG":
			HTMLText = HTMLText + "<br>One cell phone multi-function pocket on the inside, one  pocket on the outside and a zip closure.<br><br><br>";	
			HTMLText = HTMLText + "Height 10\" Width 7\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"
			break;		
		case "POUCH":
			HTMLText = HTMLText + "Height 5\" Width 9\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"
			break;		
		case "COIN PURSE":
			HTMLText = HTMLText + "Height 5\" Width 6.5\" Depth 0\"";
			HTMLText = HTMLText + "<br><br>"
			break;		
		case "WEEKENDER":
			HTMLText = HTMLText + "<br>One large pocket on the inside, two pockets on the outside and a zip closure.<br><br><br>";
			HTMLText = HTMLText + "Height 12\" Width 20\" Depth 9\"";
			HTMLText = HTMLText + "<br><br>"
			break;		
		case "BACKPACK":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one pocket on the outside, and one bottle holder.<br><br><br>";
			HTMLText = HTMLText + "Height 16\" Width 16\" Depth 7.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY BACKPACK":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one pocket on the outside, one bottle holder, and a removable changing pad.<br><br><br>";
			HTMLText = HTMLText + "Height 16\" Width 16\" Depth 7.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;			
		case "MESSENGER BAG":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one cell phone pocket, one pocket on the outside, one bottle holder.<br><br><br>";	
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "SMALL MESSENGER BAG":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one pocket on the outside and one bottle holder.<br><br><br>";	
			HTMLText = HTMLText + "Height 10\" Width 11\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY MESSENGER BAG":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one cell phone pocket, one pocket on the outside, one bottle holder and a removable changing pad.<br><br><br>";	
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "SMALL BABY MESSENGER BAG":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one cell phone pocket, one pocket on the outside, one bottle holder and a removable changing pad.<br><br><br>";	
			HTMLText = HTMLText + "Height 10\" Width 11\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "TRIFOLD COSMETIC ROLL":
			HTMLText = HTMLText + "<br>Three zippered pockets and a grosgrain loop for hanging.<br><br><br>";
			HTMLText = HTMLText + "Height 21.5\" Width 13\" Depth 0\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "SADDLE BAG":
			HTMLText = HTMLText + "<br>One cell phone multi function pocket on the inside, zippered closure and a magnetic snap closure on flap.<br><br><br>";
			HTMLText = HTMLText + "Height 8\" Width 9\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "LAPTOP BAG":
			HTMLText = HTMLText + "<br>Quarter inch high density foam for ultimate protection. Laptop bag comes with removable strap.<br><br><br>";
			HTMLText = HTMLText + "Height 13\" Width 16.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "WRISTLET":
			HTMLText = HTMLText + "<br>Two compartments on the inside and a zip closure.<br><br><br>";
			HTMLText = HTMLText + "Height 4\" Width 8\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "EVENING BAG":
			HTMLText = HTMLText + "Height 6.5\" Width 8\" Depth 3\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "DOGGIE TOTE":
			HTMLText = HTMLText + "<br>One outside pocket, buckle closure, leash attachment.<br><br><br>";
			HTMLText = HTMLText + "Height 11\" Width 14\" Depth 8\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "DOGGIE CARRIER":
			HTMLText = HTMLText + "<br>Two outside pockets, top zip closure, side mesh with zip closure.  Airline Friendly.<br><br><br>";
			HTMLText = HTMLText + "Height 10\" Width 17\" Depth 8\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "LINGERIE BAG":
			HTMLText = HTMLText + "<br>Inside divider and zip closure.<br><br><br>";
			HTMLText = HTMLText + "Height 9.75\" Width 12\" Depth 0\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BALBOA BAG":
			HTMLText = HTMLText + "<br>One cell phone multi-function pocket on the inside, one pocket on the outside and zip closure.<br><br><br>";
			HTMLText = HTMLText + "Height 10.5\" Width 13.5\" Depth 3.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;							
		case "JEWELRY POUCH":
			HTMLText = HTMLText + "<br>Five compartments on the inside and a zip closure.<br><br><br>";
			HTMLText = HTMLText + "Height 5\" Width 11\" Depth 0\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY BACKPACK/BACKPACK":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one pocket on the outside and one bottle holder. Baby Backpack comes with a removable changing pad.<br><br><br>";
			HTMLText = HTMLText + "Height 16\" Width 16\" Depth 7.5\"";
			HTMLText = HTMLText + "<br><br>"
			break;
		case "BABY MESSENGER BAG/MESSENGER BAG":
			HTMLText = HTMLText + "<br>Two pockets on the inside, one cell phone pocket, one pocket on the outside, one bottle holder and a removable changing pad.<br><br><br>";	
			HTMLText = HTMLText + "Height 12\" Width 15\" Depth 6.5\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "DAY MESSENGER BAG":
			HTMLText = HTMLText + "Height 13\" Width 12\" Depth 6\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "TRANSIT MESSENGER BAG":
			HTMLText = HTMLText + "Height 13\" Width 18\" Depth 8\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "DOP KIT":
			HTMLText = HTMLText + "Height 6\" Width 10\" Depth 5\"";
			HTMLText = HTMLText + "<br><br>"		
			break;	
		case "SMALL BAGUETTE":
			HTMLText = HTMLText + "Height 2\" Width 6\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "MEDIUM BAGUETTE":
			HTMLText = HTMLText + "<br>Two compartments on the inside and zippered closure.<br><br><br>";	
			HTMLText = HTMLText + "Height 3.5\" Width 7\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "LARGE BAGUETTE":
			HTMLText = HTMLText + "<br>Two compartments on the inside and zippered closure.<br><br><br>";	
			HTMLText = HTMLText + "Height 4\" Width 8\" Depth 2\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "MARINA BABY TOTE":
			HTMLText = HTMLText + "<br>Two large outside pockets with snap closure, two outside bottle pockets, one zippered pocket on the inside and one multi-functional pocket on the inside. Comes with a removable changing pad.<br><br><br>";	
			HTMLText = HTMLText + "Height 12\" Width 14\" Depth 6\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "MARINA TOTE":
			HTMLText = HTMLText + "<br>Two large outside pockets with snap closure, two outside bottle pockets, one zippered pocket on the inside and one multi-functional pocket on the inside.<br><br><br>";	
			HTMLText = HTMLText + "Height 12\" Width 14\" Depth 6\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
		case "JEWELRY ROLL":
			HTMLText = HTMLText + "<br>Four zippered pockets.<br><br><br>";	
			HTMLText = HTMLText + "Height 21.5\" Width 6\" Depth 0\"";
			HTMLText = HTMLText + "<br><br>"		
			break;
	}
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "<tr><td>"
	HTMLText = HTMLText + "<div align='center'><a href=javascript:close()>close</a></div>";
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "</table>"
	HTMLText = HTMLText + "</body>";
	HTMLText = HTMLText + "</html>";
	
	productWin =  window.open('','productWin','width='+popW+',height='+popH+',scrollbars=0,resizable=0,status=0');
	
	productWin.focus();
	for(width1 = 1 ; width1 <= positionleft ; width1 = width1 + 10){
		//productWin.moveTo(width1,positiontop)
		productWin.moveTo(width1,150)
	}
	productWin.document.write(HTMLText);
	productWin.document.close();
}

var magWin;
function showMag(imageName,textName,width,height)
{	

	if (magWin != null)
		if (magWin.closed != true)
			magWin.close();
			
	var w = screen.availWidth, h = screen.availHeight;
	if (width > w) width=w;
	if (height > h) height=h;
	var leftPos = (w - width)/2, topPos = (h - height)/2;
	var sw = screen.width - 20;
	var sh = screen.height;
	var positionleft = (sw - 600)/2;
	var positiontop = (sh - 540)/2.5;
		
	var HTMLText;
	
	HTMLText = "<html>";
	HTMLText = HTMLText + "<head>";
	HTMLText = HTMLText + "<title>" + textName + "</title>";
	HTMLText = HTMLText + "<link rel=stylesheet href=sallystyle.css>"
	HTMLText = HTMLText + "</head>";
	HTMLText = HTMLText + "<body border='0' class='product' onload='window.focus();' topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0'>";
	HTMLText = HTMLText + "<table  align='center' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>";
	HTMLText = HTMLText + "<tr><td align='center' class='productDetailText'>"
	HTMLText = HTMLText + "<img border='0' src=img/press/" + imageName + ">";
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "<tr><td>"
	HTMLText = HTMLText + "<div align='center' valign='top'><a href=javascript:close()>close</a></div>";
	HTMLText = HTMLText + "</td></tr>"
	HTMLText = HTMLText + "</table>"
	HTMLText = HTMLText + "</body>";
	HTMLText = HTMLText + "</html>";
	
	magWin =  window.open('','magWin','width='+width+',height='+height+',scrollbars=0,resizable=0,status=0');
	magWin.focus();
	for(width1 = 1 ; width1 <= positionleft ; width1 = width1 + 10){
		magWin.moveTo(width1,positiontop)
	}


	magWin.document.write(HTMLText);
	magWin.document.close();
	
}



function switchSwatchOn(myThis,direction)
{
	myThis.className = 'swatchImageOn';
}
	
function switchSwatchOff(myThis)
{
	myThis.className = 'swatchImageOff';
}

function clickAni()
{
  document.fly.src='img/flyani.gif';
  timer=setTimeout('history.back()',1000);
}

function moveWin() {
	for (var i = 1; i < 1001; i++)
	window.moveBy(1, 1);
	window.moveBy(-1000, -1000);
}


function swapImageOn(myThis,imgName)
{	
	myThis.src = "/img/" + imgName + "-on.gif";
}

function swapImageOff(myThis,imgName)
{
	myThis.src = "/img/" + imgName + "-off.gif";
}

function swapImage(myThis,imgName)
{
	myThis.src = "/img/" + imgName + ".gif";
}

function openWindow(sURL,height,width)
{
	var popW = width, popH = height;
	var w = screen.availWidth, h = screen.availHeight;
	if (popW > w) popW=w;
	if (popH > h) popH=h;
	var leftPos = (w - popW)/2, topPos = (h - popH)/2;
	var sURL;

	window.open(sURL,'winSale','top='+topPos+',left='+leftPos+',width='+popW+',height='+popH+',scrollbars=0,resizable=0,status=1');
	
}	