
var ModelSelected = "J"

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
function getFlashMovieObjectTwo(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
function getFlashMovieObjectThree(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
function getFlashMovieObjectFour(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


// ENCODE FOCUS

function copyit() {
theField = document.getElementById('EmbedCode')
var tempval=eval(document.getElementById('EmbedCode'))
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
	
	
// refine boxes...


var xmlHttpRefineMenu
function showRefine()
{
xmlHttpRefineMenu=GetXmlHttpObjectRefineMenu()
if (xmlHttpRefineMenu==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var Bx1 = document.getElementById("strCat").value
var Bx2 = document.getElementById("strBrand").value
var Bx3 = document.getElementById("strMerchants").value
var urlRefineMenu="refine.asp?Bx1="+Bx1+"Bx2="+Bx2+"Bx3="+Bx3+""

xmlHttpRefineMenu.onreadystatechange=stateChangedRefineMenu;
xmlHttpRefineMenu.open("GET",urlRefineMenu,true);
xmlHttpRefineMenu.send(null);
} 
function stateChangedRefineMenu() 
{ 
if (xmlHttpRefineMenu.readyState==4)
{ 
document.getElementById("RefineMenuResults").innerHTML = xmlHttpRefineMenu.responseText
alert("yes")
}
}
function GetXmlHttpObjectRefineMenu()
{
var xmlHttpRefineMenu=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpRefineMenu=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpRefineMenu=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpRefineMenu=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpRefineMenu;
}
	
	
// AJAX SHOW RESULTS IN BOX



var xmlHttp

function showResults(MnValue,MnType)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var strText = document.getElementById("strText").value
var strPrice = document.getElementById("intPrice").value
var strCat = document.getElementById("strCat").value
var strMerchants = document.getElementById("strMerchants").value
var strBrand = document.getElementById("strBrand").value
var strCountry = document.getElementById("strCountry").value

if(MnType=="Cat"){
var strText = "all"
var strPrice = "all"
var strCat = MnValue
var strMerchants = "all"
var strBrand = "all"
var strCountry = "all"
	}
if(MnType=="Brand"){
var strText = "all"
var strPrice = "all"
var strCat = "all"
var strMerchants = "all"
var strBrand = MnValue
var strCountry = "all"
	}
if(MnType=="Mer"){
var strText = "all"
var strPrice = "all"
var strCat = "all"
var strMerchants = MnValue
var strBrand = "all" 
var strCountry = "all"
	}
	
var url="searchAction.asp?strText="+strText+"&strPrice="+strPrice+"&strBrand="+strBrand+"&strMerchants="+strMerchants+"&strCat="+strCat+"&strCountry="+strCountry+""
//document.write (url);
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 
function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("lyr1").innerHTML = xmlHttp.responseText
//SendDataToFlashMovie(xmlHttp.responseText)
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function showReset(BtnColour){
	document.getElementById("DD"+BtnColour).selected=true;
	//document.getElementById("Refine").reset(); 
	}
function resetSelection(){
	document.getElementById("Refine").reset(); 
	}
// AJAX RESULTS

// AJAX ONE

var xmlHttpProducts
function showProducts(strLoggedOn,strRated,idProducts,RatingID,Uid)
{

xmlHttpProducts=GetXmlHttpObjectProducts()
if (xmlHttpProducts==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var strCountry = document.getElementById("strCountry").value
var urlProducts="results.asp?id="+idProducts+"&rated="+strRated+"&loggedon="+strLoggedOn+"&rating="+RatingID+"&uid="+Uid+"&country="+strCountry+""
xmlHttpProducts.onreadystatechange=stateChangedProducts;
xmlHttpProducts.open("GET",urlProducts,true);
xmlHttpProducts.send(null);
} 
function stateChangedProducts() 
{ 
if (xmlHttpProducts.readyState==4)
{ 
updateproduct(xmlHttpProducts.responseText)
EmbedCode()
}
}
function GetXmlHttpObjectProducts()
{
var xmlHttpProducts=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpProducts=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpProducts=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpProducts=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpProducts;
}

// SETS



var xmlHttpSets
function showSets(MdSets)
{

xmlHttpSets=GetXmlHttpObjectSets()
if (xmlHttpSets==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlSets="results.asp?id="+MdSets+""
xmlHttpSets.onreadystatechange=stateChangedSets;
xmlHttpSets.open("GET",urlSets,true);
xmlHttpSets.send(null);
} 
function stateChangedSets() 
{ 
if (xmlHttpSets.readyState==4)
{ 
updateproduct(xmlHttpSets.responseText)
EmbedCode()
}
}
function GetXmlHttpObjectSets()
{
var xmlHttpSets=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpSets=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpSets=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpSets=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpSets;
}


// HTTP LOGIN AJAX
// AJAX ONE

function showLogin(flashId)
{	
strUser = document.getElementById("EmailAddress").value;
strPassword = document.getElementById("Password").value;
xmlHttpLogin=GetXmlHttpObjectLogin()
if (xmlHttpLogin==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlLogin="userLogon.asp?user="+strUser+"&password="+strPassword+"&id="+flashId
xmlHttpLogin.onreadystatechange=stateChangedLogin;
xmlHttpLogin.open("GET",urlLogin,true);
xmlHttpLogin.send(null);
} 
function stateChangedLogin() 
{ 
if (xmlHttpLogin.readyState==4)
{ 
UserComments(xmlHttpLogin.responseText,'','')
prettyForms()
document.getElementById("Dis-Rating").innerHTML = "please vote"
}
}
function GetXmlHttpObjectLogin()
{
var xmlHttpLogin=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpLogin=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpLogin=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpLogin=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpLogin;
}
// END LOGIN

function showMyAccount()
{	
strUser = document.getElementById("EmailAddress").value;
strPassword = document.getElementById("Password").value;
xmlHttpMyAccount=GetXmlHttpObjectMyAccount()
if (xmlHttpMyAccount==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlMyAccount="myLogon.asp?user="+strUser+"&password="+strPassword
xmlHttpMyAccount.onreadystatechange=stateChangedMyAccount;
xmlHttpMyAccount.open("GET",urlMyAccount,true);
xmlHttpMyAccount.send(null);
} 
function stateChangedMyAccount() 
{ 
if (xmlHttpMyAccount.readyState==4)
{ 
//xmlHttpMyAccount.responseText

if(xmlHttpMyAccount.responseText == "no"){
//document.getElementById("Dis-Rating").innerHTML = xmlHttpMyAccount.responseText
document.getElementById("Dis-Rating").innerHTML = "please try again"
	}
if(xmlHttpMyAccount.responseText == "yes"){
window.location="dressing-room.asp";	
	}
		
}
}
function GetXmlHttpObjectMyAccount()
{
var xmlHttpMyAccount=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpMyAccount=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpMyAccount=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpMyAccount=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpMyAccount;
}



// Log Off

function showLogOff(UserId)
{
xmlHttpLogOff=GetXmlHttpObjectLogOff()
if (xmlHttpLogOff==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlLogOff="userLogoff.asp?user="+UserId;
xmlHttpLogOff.onreadystatechange=stateChangedLogOff;
xmlHttpLogOff.open("GET",urlLogOff,true);
xmlHttpLogOff.send(null);
} 
function stateChangedLogOff() 
{ 
if (xmlHttpLogOff.readyState==4)
{ 
UserComments(xmlHttpLogOff.responseText,'','')
}
}
function GetXmlHttpObjectLogOff()
{
var xmlHttpLogOff=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpLogOff=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpLogOff=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpLogOff=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpLogOff;
}




// LOG OFF

var xmlHttpBasket

function UserComments(ProductId,Uid,Rate,YourId)
{
xmlHttpBasket=GetXmlHttpObjectBasket()
if (xmlHttpBasket==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlBasket="userComments.asp?id="+ProductId+"&uid="+Uid+"&rate="+Rate+"&YourId="+YourId;
xmlHttpBasket.onreadystatechange=stateChangedBasket;
xmlHttpBasket.open("GET",urlBasket,true);
xmlHttpBasket.send(null);
} 
function stateChangedBasket() 
{ 
if (xmlHttpBasket.readyState==4)
{ 
var BasketContent = xmlHttpBasket.responseText
document.getElementById("userComments").innerHTML = xmlHttpBasket.responseText;
prettyForms()
}
}
function GetXmlHttpObjectBasket()
{
var xmlHttpBasket=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpBasket=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpBasket=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpBasket=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpBasket;
}

// send comments

var xmlHttpSendFm

function SendComments(ProductId,Uid)
{
Comment = document.getElementById("txtNarration").value
xmlHttpSendFm=GetXmlHttpObjectSendFm()
if (xmlHttpSendFm==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlSendFm="sendComments.asp?id="+ProductId+"&uid="+Uid+"&comment="+Comment
xmlHttpSendFm.onreadystatechange=stateChangedSendFm;
xmlHttpSendFm.open("GET",urlSendFm,true);
xmlHttpSendFm.send(null);
} 
function stateChangedSendFm() 
{ 
if (xmlHttpSendFm.readyState==4)
{ 
var SendFmContent = xmlHttpSendFm.responseText
//document.getElementById("strResults").innerHTML = xmlHttpSendFm.responseText
document.getElementById("strFm").innerHTML = "<br><br>your post has been sent off for authorisation" 
}
}
function GetXmlHttpObjectSendFm()
{
var xmlHttpSendFm=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpSendFm=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpSendFm=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpSendFm=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpSendFm;
}



// UPDATE PRODUCT

function updateproduct(code1){
document.getElementById("DisplayInfo").innerHTML = code1
}


// SEND TO FLASH

function SendDataToFlashMovie(strValue)
{
var flashMovie=getFlashMovieObject("engine");
flashMovie.SetVariable("/:modelSet", strValue);
}

function showModel(strValue)
{
    //ModelSelected = strValue
	var flashMovie=getFlashMovieObject("engine");
	//if(strValue == "P"){
	//document.getElementById("Md1").src = "stock/sets/P-Active.jpg"
		//}else{
	//document.getElementById("Md1").src =  "stock/sets/P-Disable.jpg"			
		//	}	
		//if(strValue == "A"){
	//document.getElementById("Md2").src = "stock/sets/A-Active.jpg"
		//}else{
	//document.getElementById("Md2").src =  "stock/sets/A-Disable.jpg"			
		//	}	
		//	if(strValue == "J"){
	//document.getElementById("Md3").src = "stock/sets/J-Active.jpg"
	//	}else{
	//document.getElementById("Md3").src =  "stock/sets/J-Disable.jpg"			
		//	}
		//	if(strValue == "E"){
	//document.getElementById("Md4").src = "stock/sets/E-Active.jpg"
		//}else{
	//document.getElementById("Md4").src =  "stock/sets/E-Disable.jpg"			
		//	}	
			//	if(strValue == "H"){
	//document.getElementById("Md5").src = "stock/sets/H-Active.jpg"
	//	}else{
	//document.getElementById("Md5").src =  "stock/sets/H-Disable.jpg"			
		//	}
	flashMovie.SetVariable("/:modelSize", strValue);
    document.getElementById("model").value = strValue;
	EmbedCode()
}

// CHANGE CLOTHING

var xmlHttpRefine

//function UserComments(ProductId,Uid,Rate,YourId)
function changeCloths(ImageVal)
{
SendDataToFlashMovie(ImageVal)
document.getElementById("set").value = ImageVal;
var ImageMod = document.getElementById("model").value;

xmlHttpRefine=GetXmlHttpObjectRefine()
if (xmlHttpRefine==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var urlRefine="changeCloths.asp?SetId="+ImageVal+"&ImageMod="+ ImageMod;
xmlHttpRefine.onreadystatechange=stateChangedRefine;
xmlHttpRefine.open("GET",urlRefine,true);
xmlHttpRefine.send(null);
} 
function stateChangedRefine() 
{ 
if (xmlHttpRefine.readyState==4)
{ 
var RefineContent = xmlHttpRefine.responseText
document.getElementById("ModelImages").innerHTML = RefineContent
EmbedCode()
}
}
function GetXmlHttpObjectRefine()
{
var xmlHttpRefine=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttpRefine=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttpRefine=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttpRefine=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttpRefine;
}

// END CHANGE CLOTHS



function EmbedCode(){

MdSet = document.getElementById("set").value 
Md = document.getElementById("model").value 
var EmbedCode = "<object width='348' height='424'><param name='movie'></param><param name='wmode' value='transparent'></param><embed src='http://www.knickerpicker.com/EmbedEngine.swf?MdSet="+MdSet+"&Md="+Md+"' type='application/x-shockwave-flash' wmode='transparent' width='328' height='424'></embed></object>"
document.getElementById("EmbedCode").value = EmbedCode
	}
function displayBx(ProDesc,ProName){	
	}

	
// OVERLAY


var horizontal_offset="3px"


var vertical_offset="0"
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
document.getElementById('projectimg').src= "images/loading.gif"
}
function overlaycloseLg(subobj1){
document.getElementById(subobj1).style.display="none"
document.getElementById("LgImagePic").src = "images/loadingLg.gif"
}

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function overlayMd(curobj, subobjstr, opt_position, NewVal){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
if(navigator.userAgent.indexOf("Firefox") != -1){
   OffsetHeight = 200;
   }else{
   OffsetHeight = 90;
}
var xpos=getposOffset(curobj, "left")
var ypos=getposOffset(curobj, "top")-OffsetHeight;
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlay(curobj, subobjstr, opt_position, NewVal){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
if(navigator.userAgent.indexOf("Firefox") != -1){
   OffsetHeight = 236;
   }else{
   OffsetHeight = 216;
}
var xpos=getposOffset(curobj, "left")
var ypos=getposOffset(curobj, "top")-OffsetHeight;
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}
function overlayLg(curobj, subobjstr, ImageVal, ProductDesc){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
if(navigator.userAgent.indexOf("Firefox") != -1){
   OffsetHeight = 100;
   OffsetWidth = 340;
   }else{
   OffsetHeight = 100;
   OffsetWidth = 340;
}
var xpos=getposOffset(curobj, "left")-OffsetWidth;
var ypos=getposOffset(curobj, "top")-OffsetHeight
document.getElementById("LgImagePic").src = "stock/images/large/"+ImageVal+".jpg"
document.getElementById("LgDescription").innerHTML = ProductDesc
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}


// project text and images

function projectInner(projectimg,projecttxt)
{
document.getElementById('projectimg').src=projectimg
document.getElementById('projecttxt').innerHTML=projecttxt
}

function largeImage(ImageVal,ProductDesc){
document.getElementById("LgImage").style.display = ""
document.getElementById("LgImagePic").src = "stock/images/large/"+ImageVal+".jpg"
document.getElementById("LgDescription").innerHTML = ProductDesc
document.getElementById("strCat").style.display = "none"
document.getElementById("strBrand").style.display = "none"
document.getElementById("intPrice").style.display = "none"
}
function hideLgImage(){
document.getElementById("LgImagePic").src = "stock/products/lg/blank.jpg"
document.getElementById("LgImage").style.display = "none"
document.getElementById("strCat").style.display = ""
document.getElementById("strBrand").style.display = ""
document.getElementById("intPrice").style.display = ""
}
function showSignUp(){
document.getElementById("signup").style.display = ""
}
	
function LoadProduct(strProduct,strValue,strModel,strSet)
{
	var flashMovieMain=getFlashMovieObjectTwo("modelPicker");
	flashMovieMain.SetVariable("/:MdBx", strSet);
	var flashMovie=getFlashMovieObject("engine");
	flashMovie.SetVariable("/:modelSize", strModel);
	flashMovie.SetVariable("/:modelSet", strSet);
	flashMovie.SetVariable("/:modelProduct", strProduct);
	flashMovie.SetVariable("/:messageBx", strValue);
	showProducts('results','content',strValue.split(",",1));
}


function BtnColour(BtnColour){	

	if(BtnColour=='BtnColour'){
	BtnColour = document.refineform.strCat.options[document.refineform.strCat.selectedIndex].name	
		}
	
	if(BtnColour=='Shorts'){
	document.getElementById("Shorts").style.color = "#F564A5"
	}else{
	document.getElementById("Shorts").style.color = "#9E9E9E"
		}
		if(BtnColour=='Bras'){
	document.getElementById("Bras").style.color = "#F564A5"
	}else{
	document.getElementById("Bras").style.color = "#9E9E9E"
		}
			if(BtnColour=='Knickers'){
	document.getElementById("Knickers").style.color = "#F564A5"
	}else{
	document.getElementById("Knickers").style.color = "#9E9E9E"
		}

						if(BtnColour=='Sportswear'){
	document.getElementById("Sportswear").style.color = "#F564A5"
	}else{
	document.getElementById("Sportswear").style.color = "#9E9E9E"
		}
						if(BtnColour=='Nightwear'){
	document.getElementById("Nightwear").style.color = "#F564A5"
	}else{
	document.getElementById("Nightwear").style.color = "#9E9E9E"
		}
								if(BtnColour=='Swimwear'){
	document.getElementById("Swimwear").style.color = "#F564A5"
	}else{
	document.getElementById("Swimwear").style.color = "#9E9E9E"
		}
	}
	
