body {
	scrollbar-face-color: #0A4B8B;
	scrollbar-highlight-color: #333333;
	scrollbar-shadow-color: #000000;
	scrollbar-3dlight-color: #ffffff;
	scrollbar-arrow-color: #A3C1E0;
	scrollbar-track-color: #ffffff;
	scrollbar-darkshadow-color: #333333;
	font-size: 11px;
	font-family : verdana;
	color : #000000;
	background-image: url('media/htpc-pc.gif');
	margin:0;
}

form {
	margin: 0;padding: 0;

}

TD.topbg {
	font-size: 11px;
	font-family : Arial;
	font-weight: bold;
	color : #FFF;
	padding-bottom: 2px;
	background-color: #ffffff;

}

TD.rightmenutop {
	
	font-family: Arial;
	font-size: 10px;
	color: #FFF;
	background-color: #004BA8;
	background-image: url('media/backblue.gif');
	}
TD.yellow {
	
	font-family: Arial;
	font-size: 10px;
	color: #FFF;
	background-color: #004BA8;
	background-image: url('media/backblue.gif');
	}
.yellow A:link {text-decoration: underline; color: #ffffff;}
.yellow A:visited {text-decoration: underline; color: #ffffff;}
.yellow A:active {
	text-decoration: none;
	color: #ffffff;}
.yellow A:hover {text-decoration: none; color: #66ffff;
	background-image: url('media/backblue.gif');
}
TD.yellow1 {
	
	font-family: Arial;
	font-size: 10px;
	color: #FFff00;
	background-image: url('media/menuback.gif');
	}
.yellow1 A:link {text-decoration: underline; color: #FFff00;}
.yellow1 A:visited {text-decoration: underline; color: #FFff00;}
.yellow1 A:active {
	text-decoration: none;
	color: #FFff00;}
.yellow1 A:hover {text-decoration: none; color: #FFFFFF;
	background-image: url('media/menuback.gif');
}

TD.barbg {
	}

TD.linebg {
	background-image: url('images/rightdotbg.gif');
}

TD.rightdots {
	background-image: url('images/rightdots.gif');
	font-family: Arial;
	font-size: 10px;
	color: #0A4B8B;

}

TD.tabledots {
	background-image: url('images/rightdotbg.gif');
}

TD.buttonbg {
	font-size: 12px;
	font-family : Arial;
	font-weight: bold;
	color : #FFCC00;
	background-image: url('images/buttonbg.jpg');
}

TD.footer {
	font-size: 11px;
	font-family : Arial;
	color : #FFFFFF;
	
}

TD.text {
	font-size: 12px;
	font-family : Arial;
	color : #000000;
}
p.text {
	font-size: 11px;
	font-family : verdana;
	color : #000000;
}
.text A:link {text-decoration: none; color: #010F1F;}
.text A:visited {text-decoration: none; color: #010F1F;}
.text A:active {text-decoration: underline; color: #000000;}
.text A:hover {text-decoration: underline; color: #000000;
	
}

.barsearch {
	
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #585858;
	line-height: 20px;
	background-color: #ffffff;
}

TD.news {
	font-size: 11px;
	font-family: Arial;
	color: #FFFFFF;
	font-weight : bold;
}

.textarea {
font-size: 10pt;
font-family: Tahoma;
color: #666666;
padding-top: 3px;
}

TD.whitetext {
	font-size: 11px;
	font-family : Arial;
	font-weight: bold;
	color : #0A4B8B;

}

TD {
	font-size: 11px;
	font-family : Verdana;
}

P {
	font-size: 11px;
	font-family : Verdana;
	line-height: 1.8;
}

TD.smaller {
	font-size: 11px;
	font-family : Verdana;
	color : #0A4B8B;
}

P.smaller {
	font-size: 11px;
	font-family : Verdana;
	color : #0A4B8B;
	font-weight: normal;

}

TD.mincart {
	font-size: 11px;
	font-family : Arial;
	color : #FFFFFF;	
	background-image: url('media/mediaback.gif');
}
.mincart
{
	background-image: url('media/mediaback.gif');
}
P.mincart {
	font-size: 11px;
	font-family : Arial;
}
.mincart A:link {text-decoration: underline; color: #ffffff;}
.mincart A:visited {text-decoration: underline; color: #ffffff;}
.mincart A:active {
	text-decoration: none;
	color: #ffffff;
}
.mincart A:hover {text-decoration: none; color: #66ffff;
	
}
.menu {
	font-size: 11px;
	font-family : Verdana;
	background-color: #FFCC00;
}
.menu A:link {text-decoration: none; color: #ffffff;}
.menu A:visited {text-decoration: none; color: #ffffff;}
.menu A:active {text-decoration: underline; color: #666666;}
.menu A:hover {text-decoration: underline; color: #cccccc;

}
topmenu {
	
	font-family : Verdana;
	vertical-align: middle;
	background-image: url('media/HTPC_MENU.jpg');
	padding-top: 4px;
	 z-index:-1;
	 position:absolute;
	
}
.topmenu A:link {text-decoration: none; color: #ffffff;}
.topmenu A:visited {text-decoration: none; color: #ffffff;}
.topmenu A:active {text-decoration: underline; color: #666666;}
.topmenu A:hover {text-decoration: underline; color: #ffcc00;
}
P.footer {
	font-size: 11px;
	font-family : Arial;
}
.footer A:link {text-decoration: underline; color: #333333;}
.footer A:visited {text-decoration: underline; color: #666666;}
.footer A:active {
	text-decoration: none;
	color: #333333;
	
}
.footer A:hover {text-decoration: none; color: #333333;
}
HR {
	color : #0066CC;
	height : 1px;
}
.white {
	background-color: #FFFFFF;
}
.top {
	
}

.whiteline {
	font-family: arial;
	font-size: 12px;
	font-weight: bold;
	color: #0A4B8B;
}


TABLE.cobtbl{ background-color: #cccccc;
}

TD.cobhl{
background-color: #ffffff;
font-size: 11px;
font-family : Verdana;
color : #000033;
}

TD.cobll{
background-color: #ffffff;
color : #000033;
}

P.catname {
text-align: bottom;
font-size: 11px;
font-family : Verdana;
color : #000033; 
margin-top: 0px;
margin-bottom: 4px; 
vertical-align:bottom;
text-align: center;
}
.catname {
text-align: bottom;
font-size: 11px;
font-family : Verdana;
color : #000033; 
margin-top: 0px;
margin-bottom: 4px; 
vertical-align:bottom;
text-align: center;
}
.catname A:link {text-decoration: none; color: #000033;}
.catname A:visited {text-decoration: none; color: #000033;}
.catname A:active {text-decoration: none; color: #000033;}
.catname A:hover {text-decoration: underline; color: #333333;
}

P.catdesc {
margin-top: 0px;
margin-bottom: 4px;
vertical-align:bottom;
font-size: 11px;
font-family : Verdana;
color : #000033; 
}

IMG.catimage {
border:1px;
border-thickness: 1px; border-color: #FFff00; border-style: solid;
vertical-align:top;
}

TD.catimage { 
vertical-align:top; 
font-size: 11px;
font-family : Verdana;
color : #0A4B8B; 
} 

TD.catname {
vertical-align:bottom;
text-align: center;
font-size: 11px;
font-family : Verdana;
color : #000033; 
height: 200px;
margin: 4px;
}

TD.catnavigation {
vertical-align:middle;
text-align: center;
font-size: 11px;
font-family : Verdana;
color : #000033; 
}
.catnavigation A:link {text-decoration: none; color: #000033;}
.catnavigation A:visited {text-decoration: none; color: #000033;}
.catnavigation A:active {text-decoration: none; color: #000033;}
.catnavigation A:hover {text-decoration: underline; color: #666666;
}

td.detailimage: {vertical-align: top;
}
img.prodimage: {vertical-align: top;
}
.detailimage {
vertical-align : top;
} 

SELECT.prodoption {
font-size: 11px;
font-family : Verdana;
color : #000033; 
}

span.price, .detailprice {
color: #000033;
font-weight:bold;
text-align: center;
font-size: 13px;
padding-top: 4px;
} 

div.listprice {
text-align: center;
color: #FF0000;
font-weight:bold;
text-align: center;
font-size: 11px;
padding-top: 4px;
}

P.pagenums {
font size: 11px;
font-family : Verdana;
font-weight: bold;
color: #000033;
}
SPAN.currpage {
color: #000033;
font-weight: bold;
}
.pagenums A:link {text-decoration: underline; color: #000033;}
.pagenums A:visited {text-decoration: none; color: #000033;}
.pagenums A:active {text-decoration: none; color: #000033;}
.pagenums A:hover {text-decoration: underline; color: #666666;
}
.links A:link {text-decoration: none; color: #000033;}
.links A:visited {text-decoration: none; color: #000033;}
.links A:active {text-decoration: none; color: #ff9900;}
.links A:hover {text-decoration: underline; color: #666666;
}
SPAN.extracurr {
font-size: 9px;
font-family : Verdana;
color: #666666;
}
td.prodnavigation {
font-size: 11px;
font-family : Verdana;
color : #000033;
}
P.prodnavigation {
font-size: 11px;
font-family : Verdana;
color : #000033;
}
.prodnavigation {
font-size: 11px;
font-family : Verdana;
color : #000033;
}
.prodnavigation A:link {text-decoration: none; color: #000033;}
.prodnavigation A:visited {text-decoration: none; color: #000033;}
.prodnavigation A:active {text-decoration: none; color: #000033;}
.prodnavigation A:hover {text-decoration: underline; color: #666666;
}
P.prodname {
font-size: 11px;
font-family : Verdana;
}
.prodname A:link {text-decoration: none; color: #000033;}
.prodname A:visited {text-decoration: none; color: #000033;}
.prodname A:active {text-decoration: none; color: #000033;}
.prodname A:hover {text-decoration: underline; color: #666666;}
TD.product {
	font-size: 11px;
	font-family : Arial;
	border: 1px dotted #ffff00;
background-color: #FFF;
}





.detaildescription {
	font-size: 11px;
	font-family : Tahoma, Geneva, Arial, Helvetica, sans-serif;
	color: #333333;
	left: 0px;
}

.detailname {
font-size: 11px;
font-family : Verdana;
color: #666666;
}
.detailoptions {
font-size: 11px;
font-family : Verdana;
color: #333333;
}


.bl {} 
.br {} 

.tl {} 
.tr {
padding:10px
} 
.clear {font-size: 1px; height: 1px}

{
.dottedbox {border:1px dotted #FFff00;height:250px}
}

.horizontaldots {
	background-image: url(Waterfed%20pole%20system,%20water-fed%20pole%20accessories,%20water%20fed%20pole%20window%20cleaning%20image_files/dotsline.gif);
}
.box {
	border-top: 1px solid #ffff00;
	border-right: none;
	border-bottom: none;
	border-left: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	color: #FFC718;
	line-height: 25px;
	text-transform: uppercase;
	background-image: url('media/backblue.gif');
	vertical-align: middle;

}
.box A:link {text-decoration: none; color: #ffffff;}
.box A:visited {text-decoration: none; color: #ffffff;}
.box A:active {text-decoration: none; color: #ffffff;}
.box A:hover {text-decoration: underline; color: #ffffff;}

.box1 {
	border-top: 1px solid #ffff00;
	border-right: none;
	border-bottom: none;
	border-left: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	color: #ffffff;
	line-height: 25px;
	text-transform: uppercase;
	background-image: url('media/menuback.gif');
	vertical-align: middle;

}
.box1 A:link {text-decoration: none; color: #ffffff;}
.box1 A:visited {text-decoration: none; color: #ffffff;}
.box1 A:active {text-decoration: none; color: #ffffff;}
.box1 A:hover {text-decoration: underline; color: #FFff00;}

.cssnav
{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/mediacenter2.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 220px;
	height: 158px;
	margin: 0;
	padding: 0;
	left: 0px;}
.cssnav a
{display: block;
color: #000000;
font-size: 11px;
width: 220px;
height: 158px;
display: block;
float: left;
color: black;
text-decoration: none;}
.cssnav img{
width: 220px;
height: 158px;
border: 0}
* html a:hover{
visibility:visible}
.cssnav a:hover img{
visibility:hidden}
.cssnav span{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;} 

.cssnav1{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/mediacentre2.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 220px;
	height: 119px;
	margin: 0;
	padding: 0;
	left: 0px;}
.cssnav1 a
{display: block;
color: #000000;
font-size: 11px;
width: 220px;
height: 119px;
display: block;
float: left;
color: black;
text-decoration: none;}
.cssnav1 img{
width: 220px;
height: 119px;
border: 0}
* html a:hover{
visibility:visible}
.cssnav1 a:hover img{
visibility:hidden}
.cssnav1 span{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;} 

.cssnav2{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/mediacentres2.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 220px;
	height: 101px;
	margin: 0;
	padding: 0;
	left: 0px;}
.cssnav2 a
{display: block;
color: #000000;
font-size: 11px;
width: 220px;
height: 101px;
display: block;
float: left;
color: black;
text-decoration: none;}
.cssnav2 img{
width: 220px;
height: 101px;
border: 0}
* html a:hover{
visibility:visible}
.cssnav2 a:hover img{
visibility:hidden}
.cssnav2 span{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;} 

.cssnav3{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/mediacenters2.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 220px;
	height: 132px;
	margin: 0;
	padding: 0;
	left: 0px;}
.cssnav3 a
{display: block;
color: #000000;
font-size: 11px;
width: 220px;
height: 132px;
display: block;
float: left;
color: black;
text-decoration: none;}
.cssnav3 img{
width: 220px;
height: 132px;
border: 0}
* html a:hover{
visibility:visible}
.cssnav3 a:hover img{
visibility:hidden}
.cssnav3 span{
position: absolute;
left: 35px;
top: 15px;
margin: 0px;
padding: 0px;
cursor: pointer;} 

						
														
.nav
{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/productshome.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 84px;
	height: 88px;
	margin: 0;
	padding: 0;
	left: 0px;}
.nav a
{display: block;
color: #000000;
font-size: 11px;
width: 84px;
height: 88px;
display: block;
float: left;
color: black;
text-decoration: none;}
.nav img{
width: 84px;
height: 88px;
border: 0}
* html a:hover{
visibility:visible}
.nav a:hover img{
visibility:hidden}

.nav1{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/productsproducts.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 105px;
	height: 88px;
	margin: 0;
	padding: 0;
	left: 0px;}
.nav1 a
{display: block;
color: #000000;
font-size: 11px;
width: 105px;
height: 88px;
display: block;
float: left;
color: black;
text-decoration: none;}
.nav1 img{
width: 105px;
height: 88px;
border: 0}
* html a:hover{
visibility:visible}
.nav1 a:hover img{
visibility:hidden}
							
.nav2{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/productsmedia.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 226px;
	height: 88px;
	margin: 0;
	padding: 0;
	left: 0px;}
.nav2 a
{display: block;
color: #000000;
font-size: 11px;
width: 226px;
height: 88px;
display: block;
float: left;
color: black;
text-decoration: none;}
.nav2 img{
width: 226px;
height: 88px;
border: 0}
* html a:hover{
visibility:visible}
.nav2 a:hover img{
visibility:hidden}

.nav3{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/productscontacts.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 131px;
	height: 88px;
	margin: 0;
	padding: 0;
	left: 0px;}
.nav3 a
{display: block;
color: #000000;
font-size: 11px;
width: 131px;
height: 88px;
display: block;
float: left;
color: black;
text-decoration: none;}
.nav3 img{
width: 131px;
height: 88px;
border: 0}
* html a:hover{
visibility:visible}
.nav3 a:hover img{
visibility:hidden}
	
.nav4{
	position: relative;
	font-family: arial, helvetica, sans-serif;
	background: url(media/productslogin.jpg) no-repeat;
	white-space: nowrap;
	display: block;
	width: 84px;
	height: 88px;
	margin: 0;
	padding: 0;
	left: 0px;}
.nav4 a
{display: block;
color: #000000;
font-size: 11px;
width: 84px;
height: 88px;
display: block;
float: left;
color: black;
text-decoration: none;}
.nav4 img{
width: 84px;
height: 88px;
border: 0}
* html a:hover{
visibility:visible}
.nav4 a:hover img{
visibility:hidden}
.topshadow {
	background-image: url(media/topshadow.jpg);
}
.menuborder {
	border-right-color: #ffff00;
	border-right-width: 2px;
	background-image: url(media/menuback.gif);
}
.cstitle {
font-size: 13px;
font-family : Verdana,Arial,sans-serif;
font-weight : bold;
background: #fdedc9;
border: 1px solid #ffff00;
color : #333;
padding: 4px;
}
<style>td.product {
border:1px dotted #ffff00;
background-color:#FFF;
}</style>
<%
crosssellaction="recommended"
%>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#include file=%22vsadmin/inc/inccrosssell.asp%22--%3E" fileRef="vsadmin/inc/inccrosssell.asp" depFiles="file:///C|/Users/paul/Desktop/wwwroot/vsadmin/inc/inccrosssell.asp"><%
'This code is copyright (c) Internet Business Solutions SL, all rights reserved.
'The contents of this file are protected under law as the intellectual property
'of Internet Business Solutions SL. Any use, reproduction, disclosure or copying
'of any kind without the express and written permission of Internet Business 
'Solutions SL is forbidden.
'Author: Vince Reid, vince@virtualred.net
currFormat1="" : currFormat2="" : currFormat3=""
if request.totalbytes > 10000 then response.end
WSP = ""
OWSP = ""
TWSP = "pPrice"
cs=csstyleprefix
if pricecheckerisincluded<>TRUE then pricecheckerisincluded=FALSE
thesessionid=Session.SessionID
if Session("clientUser")<>"" then
	if (Session("clientActions") AND 8) = 8 then
		WSP = "pWholesalePrice AS "
		TWSP = "pWholesalePrice"
		if wholesaleoptionpricediff=TRUE then OWSP = "optWholesalePriceDiff AS "
	end if
	if (Session("clientActions") AND 16) = 16 then
		Session.LCID = 1033
		WSP = Session("clientPercentDiscount") & "*pPrice AS "
		TWSP = Session("clientPercentDiscount") & "*pPrice"
		if wholesaleoptionpricediff=TRUE then OWSP = Session("clientPercentDiscount") & "*optPriceDiff AS "
		Session.LCID = saveLCID
	end if
end if
Set rs = Server.CreateObject("ADODB.RecordSet")
Set rs2 = Server.CreateObject("ADODB.RecordSet")
Set cnn=Server.CreateObject("ADODB.Connection")
if crosssellcolumns="" then if productcolumns="" then crosssellcolumns=3 else crosssellcolumns=productcolumns
if crosssellrows="" then crosssellrows=1
numberofproducts=crosssellcolumns*crosssellrows
productcolumns=crosssellcolumns
if csnobuyorcheckout=TRUE then nobuyorcheckout=TRUE
if csnoshowdiscounts=TRUE then noshowdiscounts=TRUE
if csnoproductoptions=TRUE then noproductoptions=TRUE
if IsEmpty(forcedetailslink) then forcedetailslink=TRUE
iNumOfPages=1
showcategories=FALSE
isrootsection=TRUE
catid = "0"
if IsEmpty(Count) then Count=0 else Count=(Count+crosssellcolumns)-(Count MOD crosssellcolumns)
if session("sortby")<>"" then sortBy=int(session("sortby"))
if sortBy=2 then
	sSortBy = " ORDER BY products.pID"
elseif sortBy=3 then
	sSortBy = " ORDER BY "&TWSP
elseif sortBy=4 then
	sSortBy = " ORDER BY "&TWSP&" DESC"
elseif sortBy=5 then
	sSortBy = ""
elseif sortBy=6 then
	sSortBy = " ORDER BY pOrder"
elseif sortBy=7 then
	sSortBy = " ORDER BY pOrder DESC"
elseif sortBy=8 then
	sSortBy = " ORDER BY pDateAdded"
elseif sortBy=9 then
	sSortBy = " ORDER BY pDateAdded DESC"
else
	sSortBy = " ORDER BY "&getlangid("pName",1)
end if
if NOT (prodlist<>"") then prodlist=""
if request.form("mode") <> "checkout" AND request.form("mode") <> "add" AND request.form("mode") <> "go" AND request.form("mode") <> "paypalexpress1" then
	cnn.open sDSN
	alreadygotadmin = getadminsettings()
	crosssellactionarr = split(crosssellaction, ",")
	for csindex=0 to UBOUND(crosssellactionarr)
		crosssellaction=trim(crosssellactionarr(csindex))
		addcomma="" : relatedlist=""
		if crosssellaction="alsobought" then ' Those who bought what's in your cart also bought.
			if csalsoboughttitle="" then crossselltitle="Customers who bought these products also bought." else crossselltitle=csalsoboughttitle
			if prodlist="" then
				addcomma=""
				sSQL = "SELECT cartProdID FROM cart WHERE cartCompleted=0 AND " & getsessionsql()
				rs.Open sSQL, cnn, 0, 1
					do while NOT rs.EOF
						prodlist = prodlist & addcomma & "'" & replace(rs("cartProdID"),"'","''") & "'"
						addcomma=","
						rs.MoveNext
					loop
				rs.Close
			end if
			addcomma="" : sessionlist="" : thecount=0
			if prodlist<>"" then
				sSQL = "SELECT "&IIfVr(mysqlserver<>true,"TOP "&numberofproducts,"")&" alsobought.cartProdID, count(*) as timesselected FROM cart AS buyingcart INNER JOIN (cart AS othercarts INNER JOIN cart AS alsobought ON othercarts.cartSessionID = alsobought.cartSessionID AND othercarts.cartProdID <> alsobought.cartProdID) ON buyingcart.cartProdID = othercarts.cartProdID AND buyingcart.cartSessionID <> othercarts.cartSessionID "
				sSQL = sSQL & "WHERE buyingcart.cartProdID IN ("&prodlist&") AND othercarts.cartCompleted=1 AND NOT (alsobought.cartProdID IN ("&prodlist&")) GROUP BY alsobought.cartProdID ORDER BY "&IIfVr(mysqlserver=TRUE, "timesselected", "COUNT(*)")&" DESC"&IIfVr(mysqlserver=true," LIMIT 0,"&numberofproducts,"")
				rs.Open sSQL, cnn, 0, 1
					addcomma="" : relatedlist="" : thecount=0
					do while NOT rs.EOF AND thecount<numberofproducts
						relatedlist = relatedlist & addcomma & "'" & replace(rs("cartProdID"),"'","''") & "'"
						addcomma=","
						thecount=thecount+1
						rs.MoveNext
					loop
				rs.Close
			end if
		elseif crosssellaction="recommended" then ' Top x recommended products (Needs v5.1)
			if csrecommendedtitle="" then crossselltitle="These products are our current recommendations for you." else crossselltitle=csrecommendedtitle
			if prodlist="" then
				addcomma=""
				sSQL = "SELECT cartProdID FROM cart WHERE cartCompleted=0 AND " & getsessionsql()
				rs.Open sSQL, cnn, 0, 1
					do while NOT rs.EOF
						prodlist = prodlist & addcomma & "'" & replace(rs("cartProdID"),"'","''") & "'"
						addcomma=","
						rs.MoveNext
					loop
				rs.Close
			end if
			sSQL = "SELECT pID FROM products WHERE pDisplay<>0 AND pRecommend<>0"
			if prodlist<>"" then sSQL = sSQL & " AND pID NOT IN (" & prodlist & ")"
			rs.Open sSQL, cnn, 0, 1
				addcomma="" : relatedlist=""
				do while NOT rs.EOF
					relatedlist = relatedlist & addcomma & "'" & replace(rs("pID"),"'","''") & "'"
					addcomma=","
					rs.MoveNext
				loop
			rs.Close
		elseif crosssellaction="related" then ' Products recommended with this product (Would need v5.1)
			if csrelatedtitle="" then crossselltitle="These products are recommended with items in your cart." else crossselltitle=csrelatedtitle
			if prodlist="" then
				addcomma=""
				sSQL = "SELECT cartProdID FROM cart WHERE cartCompleted=0 AND " & getsessionsql()
				rs.Open sSQL, cnn, 0, 1
					do while NOT rs.EOF
						prodlist = prodlist & addcomma & "'" & replace(rs("cartProdID"),"'","''") & "'"
						addcomma=","
						rs.MoveNext
					loop
				rs.Close
			end if
			if prodlist<>"" then
				sSQL = "SELECT rpRelProdID FROM relatedprods WHERE rpProdID IN ("&prodlist&") AND rpRelProdID NOT IN ("&prodlist&")"
				if relatedproductsbothways=TRUE then sSQL = sSQL & " UNION SELECT rpProdID FROM relatedprods WHERE rpRelProdID IN ("&prodlist&") AND rpProdID NOT IN ("&prodlist&")"
				rs.Open sSQL, cnn, 0, 1
					addcomma="" : relatedlist=""
					do while NOT rs.EOF
						relatedlist = relatedlist & addcomma & "'" & replace(rs("rpRelProdID"),"'","''") & "'"
						addcomma=","
						rs.MoveNext
					loop
				rs.Close
			end if
		elseif crosssellaction="bestsellers" then ' Top X best sellers
			if csbestsellerstitle="" then crossselltitle="These are our current best sellers." else crossselltitle=csbestsellerstitle
			sSQL = "SELECT "&IIfVr(mysqlserver<>true,"TOP "&numberofproducts,"")&" cartProdID,COUNT(cartProdID) AS pidcount FROM cart INNER JOIN products ON cart.cartProdID=products.pID WHERE pDisplay<>0 "&IIfVr(crosssellsection<>"", " AND pSection IN ("&crosssellsection&")", "")&IIfVr(crosssellnotsection<>"", " AND pSection NOT IN ("&crosssellnotsection&")", "")&" GROUP BY cartProdID ORDER BY "&IIfVr(mysqlserver=true,"pidcount","COUNT(cartProdID)")&" DESC"&IIfVr(mysqlserver=true," LIMIT 0,"&numberofproducts,"")
			relatedlist="" : thecount=0
			rs.Open sSQL, cnn, 0, 1
				do while NOT rs.EOF AND thecount<numberofproducts
					relatedlist = relatedlist & addcomma & "'" & replace(rs("cartProdID"),"'","''") & "'"
					addcomma=","
					thecount=thecount+1
					rs.MoveNext
				loop
			rs.Close
		else
			if crosssellaction<>"" then response.write "<p>Unrecognized crosssell action " & crosssellaction & "</p>"
		end if
		if relatedlist<>"" then
			saveprodlist=prodlist
			prodlist=relatedlist
			sSQL = "SELECT pId,pSKU,"&getlangid("pName",1)&",pImage,pImage2,pImage3,pImage4,pImage5,"&WSP&"pPrice,pListPrice,pSection,pSell,pStockByOpts,pStaticPage,pInStock,pExemptions,pLargeImage,pTax,pTotRating,pNumRatings"&IIfVr(manufacturerfield<>"",",mfName","")&",'' AS "&getlangid("pDescription",2)&","&getlangid("pLongDescription",4)&" FROM products "&IIfVr(manufacturerfield<>"","LEFT OUTER JOIN manufacturer on products.pManufacturer=manufacturer.mfID ","")&"WHERE pDisplay<>0 AND pId IN (" & relatedlist & ")"
			if useStockManagement AND noshowoutofstock=TRUE then sSQL = sSQL & " AND (pInStock>0 OR pStockByOpts<>0)"
			sSQL = sSQL & sSortBy
			' response.write replace(sSQL,",", ", ") & "<br>"
			rs.CursorLocation = 3 ' adUseClient
			rs.CacheSize = numberofproducts
			rs.Open sSQL, cnn
			if NOT rs.EOF then
				response.write "<p class=""cstitle""><strong>"&crossselltitle&"</strong></p>"
				rs.MoveFirst
				rs.PageSize = 100
				rs.AbsolutePage = 1
				adminProdsPerPage = rs.RecordCount
%>
<!--#include file="incproductbody2.asp"-->
<%
			end if
			rs.Close
			prodlist=saveprodlist
		end if
	next
	cnn.Close
end if
set rs = nothing
set cnn = nothing
%><MM:EndLock> 

.proddescription, .detaildescription{
line-height: 1.3;
font-size: 12px;
font-family : Verdana,Arial,sans-serif;
color : #000;
}
DIV.search-container {
	TEXT-ALIGN: right; MARGIN-TOP: 11px; FLOAT: right; COLOR: #888; z-index:10000; position:absolute;
	}
	.search-field TEXTAREA {
	BORDER-BOTTOM: #ffcc00 1px solid; BORDER-LEFT: #ffcc00 1px solid; BORDER-TOP: #ffcc00 1px solid; BORDER-RIGHT: #ffcc00 1px solid; z-index:10000;	position:absolute; }
	
	

#content-explorer {
	padding-top: 20px;
	width:100%;
	line-height:normal;
	}
	#content-explorer ul {
		padding: 10px 10px 0;
		list-style: none;
		max-width: 770px;
		background: url(images/menu_bg.gif) bottom repeat-x;
		height: 31px;
		}
		#content-explorer ul li {
			float: left;
			background: url(images/right.gif) right top no-repeat;
			text-align: center;
			overflow: hidden;
			margin-left: 5px;
			}
			#content-explorer ul li a {
				display: block;
				background: url(images/left.gif) left top no-repeat;
				padding: 10px 20px 6px 20px;
				font-weight: bold;
				color: #999;
			}
			#content-explorer ul li a:hover {
				color: #990000;
			}
			#content-explorer ul li.selected {
				background: url(images/right_cur.gif) right top no-repeat;
			}
			#content-explorer ul li.selected a {
				background: url(images/left_cur.gif) left top no-repeat;
				padding-bottom: 8px;
				color: #990000;
			}
div.yui-content {
	overflow: auto;
	border-bottom: 1px solid black;
	border-right: 1px solid black;
	border-left: 1px solid black;
	padding: 10px;
}
.menuback {
		
			background: url(media/menuback.gif);
			}
.minimenubg {
		
			background: url(media/htpc_cases.jpg);
			}
.minimenubg1 {
		
			background: url(media/htpc_cases1.jpg);
			}
			.minimen {
		
			background: url(media/greybottom.jpg);
			}
.topshadowgrey {
		
			background: url(media/topshadowgrey.jpg);
			}
ul.ectmenu1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	list-style: none;
	border:0px solid;
	font-size:10px;
	padding:0px;
	line-height: 20px;
	text-transform: uppercase;
	background: url(media/menuback.gif);
	vertical-align: middle;
	color: #000;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-decoration: none;
}
li.ectmenu1 {
border-top: 1px solid #ffff00;
padding:0px;
background: url(media/menuback.gif);
color: #fff;
text-decoration: none;
}
li.ectmenuhassub1 a{
display:block;
padding:4px;
color: #fff;
text-decoration: none;
}
li.ectmenuhassub1 a:hover{
display:block;
padding:4px;
background-color: #ffff00;
color: #fff;
text-decoration: none;
}
li.ectmenu1 a{
display:block;
padding:4px;
color: #fff;
text-decoration: none;
}
li.ectmenu1 a:hover{
background-color: #ffff00;
color: #000;
text-decoration: none;
}

