//<!-- Copyright (c) 1999-2005 UniteU Technologies Inc.  All rights reserved.   //-->
// ************************************************************************************
// ****    DO NOT MODIFY THIS FILE!!!  **************************************************
// **************************************************************************************
//This file will be re-generated any time the site is upgrade, any changes will be lost.
//	Also, This folder is NOT included in Transfers.  Please make your own js file.
//<% version = " 4.91dg 05/17/05 " %>
//<!--

//flag set when product available - used by product page and draw_sku_option()
var isAvail = false;


function draw_image_1(){
	if (product_image[0].image!="" && product_image[0].image_show==1){
		document.write("<IMG ALT=\"" + product_name + "\" ALIGN=\"" + product_image[0].align + "\" BORDER=0 SRC=\"assets/product_images/" + product_image[0].image + "\" usemap=\"#" + pf_id + "\" ");
		if (product_image[0].width!="") {
			document.write("WIDTH =" +product_image[0].width);
		}
		document.write(" BORDER=0  VSPACE=0  HSPACE=0>");
	}
}

function draw_image_2(){
	 if (product_image[1].scr=="PRODUCT" && product_image[1].image!="" ) { 
		if (product_image[1].image_show=="TARGET REG" || product_image[1].image_show=="TARGET" ){
			if (product_image[1].image_show=="TARGET REG"){
				if (user_guid==""){
					document.write("<A HREF=\"shopper_lookup.asp?target=" + product_image[1].target + "&\" onClick=return(visitargs('shopper_lookup.asp',\"target=" + product_image[1].target + "&\")); target=\"_top\" >");
				}else {
					document.write("<A HREF=\"" + product_image[1].target + "\" onClick=return(visitargs('" + product_image[1].target + "')); target=\"_top\" >");
				}
			}else {
				document.write("<a HREF=\"" + product_image[1].target + "\" target=\"_top\">");
			}
			document.write("<img ALIGN =" + product_image[1].align + " "); 
			if (product_image[1].width!=""){document.write("WIDTH =" + product_image[1].width + " ");}
			document.write(" BORDER=0  VSPACE=5  HSPACE=5 ALT=\"" + product_image[1].alt_text + "\" ");         
			document.write(" SRC=\"assets/product_images/" + product_image[1].image +"\"></a>");
		}else{
			document.write("<img ALIGN =\"" + product_image[1].align + "\" "); 
			if (product_image[1].width!=""){document.write("WIDTH =" + product_image[1].width + " ");}
			document.write(" BORDER=0  VSPACE=5  HSPACE=5 ALT=\"" + product_image[1].alt_text + "\" ");         
			document.write(" SRC=\"assets/product_images/" + product_image[1].image +"\">");
		}  		
	}
	else{
		document.write("<img src=\"assets/product_images/product.gif\">");
	}
}

/* JMS Replace this old function with newer share function below Oct 28, 2008 for SUP33375
function shareproduct(PageURL,sharepage,SURL,rtntarget) 
{ 
	var targetURL;
	var referer ;
	var linkback;
	if (SURL=="SURL"){
		targetURL=i_jscript_uu_rootSURL + PageURL + "?" ;
	} else {
		targetURL =i_jscript_uu_rootURL+ PageURL + "?" ;
	}
	if(user_guid!=" "){
		targetURL=targetURL + "mscssid=" + user_guid + "&";
	}
	else {
		targetURL=targetURL + "mscssid=&";
	}
	if(sharepage="none" || sharepage==""){
		referer= i_jscript_uu_rootURL + "product.asp" ;
	}
	else {
		referer= i_jscript_uu_rootURL + sharepage ;
	}
	
	linkback="<A HREF=" + referer + "?dept_id=" + dept_id + "&pf_id=" + pf_id + "& > " + product_name + " </A> ";
	if (product_image[0].image !=""){
	linkback= linkback + "<BR><A HREF=" + referer + "?dept_id=" + dept_id + "&pf_id=" + pf_id + "& ><IMG SRC="+ i_jscript_uu_rootURL + "assets/product_images/"+ product_image[0].image + " border=0 alt=" + product_name + "  ></A> ";
	}
	
	targetURL=targetURL + "email_body="+  escape(linkback)+"&";
		
	if(rtntarget=="" || rtntarget==undefined ){
		targetURL=targetURL + "target="+  escape(document.location)+"&";
	}
	else{
		targetURL=targetURL + "target="+  escape(rtntarget)+"&";
	}
	
	targetURL += "referer="+escape(i_jscript_uu_rootURL+"product.asp?pf_id="+ pf_id +"&dept_id=" + dept_id + "&") ;
	window.location=targetURL
	 return(false);
} //end shareproduct
*/

function shareproduct(PageURL,args,SURL) 
{ 
	var plink;
	var emailbody;
	var url;
	if (args.indexOf("=")<0 ||args.indexOf("&")<0 ){
	args="";
	}
		if (user_guid !=' ') 
		{
			PageURL =PageURL + '?mscssid='+ user_guid+ '&dept_id='+dept_id+ '&pf_id='+pf_id+ '&'+ args ;
		}else{
			PageURL =PageURL + '?dept_id='+dept_id+ '&pf_id='+pf_id+ '&'+ args ;
		}
		
		plink=i_jscript_uu_rootURL+"product.asp?dept_id=" + dept_id + "&pf_id="+ pf_id +"&" ;
		emailbody="Dear #RecipientName#,<BR><br> #Text_field_3# <BR><BR>";
		if (product_image[0].image!=""){
		emailbody = emailbody + "<A HREF=\"#URL#\" ><img src=\""+i_jscript_uu_rootURL+"assets/product_images/"+product_image[0].image+"\" border=0 alt=\""+ product_name+"\" ></a><br>" ;
	}
	emailbody = emailbody + "<A HREF=\"#URL#\" >"+ product_name + "</a><BR><br>" ;
	emailbody = emailbody + "from #FromName#  at <A href=\"mailto:#FromEmail#\">#FromEmail#" ;
	window.location=PageURL +"referer="+escape(plink)+"&email_body="+escape(emailbody)+"&target="+ escape(window.location.href)+"&";
	//Note: This return is required as well
	// false tells the browser to ignore the default action entirely
	//usage Click Here II
	 return(false);
} //end shareproduct

function draw_options(){
	i=0;
	while (attr_label[i]!= "") { 
		if (attr_label[i]!= "U_Prod_Xlink"){
			if (attr_values[i].length > 0){
				document.write("<TR VALIGN=TOP ><TD class=ProductAttrlabel >" + attr_label[i] + ":</TD><TD class=ProductAttr>");
			}
			if (attr_values[i].length==0){
				document.write("<INPUT TYPE=HIDDEN  NAME=\"attr_value" + (i+1) + "\" VALUE=\"\" >");
			}else if (attr_values[i].length==1){
				while (attr_values[i][0].indexOf("'")>0){
					attr_values[i][0]=attr_values[i][0].replace("'","&#39;");
				}
				document.write("<INPUT TYPE=HIDDEN  NAME=\"attr_value" + (i+1) + "\" VALUE='" + attr_values[i][0] + "' >");
				document.write(attr_values[i][0]);
				document.write("</TD>");
			}else if(attr_values[i].length >1) {
				document.write("<SELECT class=ProductAttr NAME=\"attr_value" + (i+1) + "\" onchange=return(argschange(\"" + (i+1) + "\")); >");
				for (atn=0;atn< attr_values[i].length ;atn++){
					writeoption(attr_values[i][atn],attr_values[i][atn],sel_values[i]);
				}
				document.write("</SELECT></TD>");
			}
			if (attr_values[i].length > 0){document.write("</TR><tr><td height=2></td></tr>");}		
		}
		if (attr_label[i]== "U_Prod_Xlink" ){
			document.write("<TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 VALIGN=TOP ALIGN=CENTER >");	
			i_rows=0;
			for (atn=0;atn< U_Prod_Xlink.length ;atn++){
				if (i_rows ==0){document.write("<TR><TD></TD>");} 
				i_rows++ ;		
				document.write("<TD VALIGN=TOP CELLPADDING=1 WIDTH =60 ALIGN=CENTER >");
				document.write("<A HREF=\"#\" onClick=return(visitargs('product.asp','dept_id=" + U_Prod_Xlink[atn].dept_id + "&pf_id=" + U_Prod_Xlink[atn].pf_id + "&'));>");
				document.write("<img ALIGN =CENTER WIDTH =60 BORDER=0  VSPACE=0  HSPACE=0  ALT=\""+ U_Prod_Xlink[atn].name +"\"");  
				document.write("SRC=\"assets/product_images/"+ U_Prod_Xlink[atn].image + " \"> </A>");
				document.write("<SMALL>"+ U_Prod_Xlink[atn].name +"</SMALL> </TD>");
				if (i_rows == 4) {
					document.write("</TR>"); 
					i_rows=0;
				} 
			}
		}	
		i++;	
	}
} // end function draw_options

var extraWindow;
function createPopWindow()
{
  var tempWindow = window.open('','prints','height=325,width=325,top=0,left=0,scrollbars=no,resizable');
  tempWindow.document.write("<html><head><title>Product Image</title></head><body><table><tr><td id=\"pop_content\"></td></tr></table></body></html>");
  return tempWindow;
}
function simple_pop_args(product_name,image_name) 
{				
    if (extraWindow==null){
    extraWindow = createPopWindow();
    }
    var mycontentArea = extraWindow.document.getElementById('pop_content');
    mycontentArea.innerHTML = "<td><div style=\"position:absolute; top:0; left:0; width:350px; background-color: #ffffff;\"><FONT color=red><B> "+ product_name + " </B></FONT><BR><BR><img src=\"assets/product_images/" + image_name + "\"  border=\"0\"></div></td>";
		extraWindow.window.focus();
		extraWindow = null;
		//Note: This return is required as well
		// false tells the browser to ignore the default action entirely
	return;	
	}

function killWindow()
{
  extraWindow = null;
}

function draw_alu_swatch(){
		
		if (U_Prod_Xlink.length > 1 ){
			document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=3 VALIGN=TOP ALIGN=CENTER >");
	
			i_rows=0;
				for (atn=0;atn< U_Prod_Xlink.length ;atn++){
					if (i_rows ==0){
					document.write("<TR>");
					} 
				i_rows++ ;		
				document.write("<TD VALIGN=TOP CELLPADDING=0 ALIGN=CENTER ><table cellpadding=0 cellspacing=0 border=0><tr><td align=center>");
				document.write("<A HREF=\"javascript:simple_pop_args('" + U_Prod_Xlink[atn].name + "','" + U_Prod_Xlink[atn].image2 + "');\" >");
				document.write("<img ALIGN =CENTER BORDER=0  VSPACE=0  HSPACE=0  width=60 height=60 ALT=\""+ U_Prod_Xlink[atn].short_description +"\"");  
				document.write("SRC=\"assets/product_images/"+ U_Prod_Xlink[atn].image + "\" > </A>");
				document.write("</td></tr><tr><td align=center><A HREF=\"javascript:simple_pop_args('" + U_Prod_Xlink[atn].name + "','" + U_Prod_Xlink[atn].image2 + "');\" >");
				document.write(U_Prod_Xlink[atn].name +"</A></td></tr></table>");
				document.write("</TD>");
					if (i_rows == 5) {
					document.write("</TR>"); 
					i_rows=0;
					} 
				}
			document.write("</table>");	
		}
} // end function draw_alu_swatch


//overridden to hide out of stock 
function draw_sku_option()
{
	//flag set when select is displayed
	var displaySelect = 0;
	

	if (product_var.length > 1 ){ 
		document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>");
		document.write("<TR VALIGN=TOP >");
		
		for (atn=0;atn< product_var.length ;atn++){
			if (product_var[atn].avail>0){ //if product available...
				//set flag
				isAvail = true;
				
				//only start the select if there is an available option to show
				//if select already displayed, don't display it again
				if(displaySelect==0)
				{
					document.write("<TD class=ProductAttrlabel ><b>Select From:</b><br></TD></TR><TR><TD><SELECT class=ProductAttr NAME=sku  >");
								
					//i=0;
					labelstr="Size"; // Warren Tharp wants just Size to appear as first option in select
					//while (attr_label[i]!= "" && i < attr_values.length ) {
						//labelstr=labelstr + attr_label[i] + " ";
						
						//i++;
					//}
					
					writeoption("",labelstr ,sel_values[0]);
					
					//select already opened, set flag so it is not opened again
					displaySelect=1;
					
				}
				
				//show size in dropdown
				if (product_var[atn].attr_value1!="")
				{
					writeoption(product_var[atn].sku,(product_var[atn].attr_value1),sel_values[0]);
				}
				
				/* CUSTOMER WANTS ONLY THE SIZE TO APPEAR IN DROPDOWN
				
				if (useVariantPrice=="True"){
					
					if (on_sale=="True"){												
						
						if (product_var[atn].attr_value5!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4 + " - " + product_var[atn].attr_value5), sel_values[0]);
						}
						else if (product_var[atn].attr_value4!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4 ),sel_values[0]);
						}
						else if (product_var[atn].attr_value3!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 ),sel_values[0]);
						}
						else if (product_var[atn].attr_value2!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1),sel_values[0]);
						}
						else{
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1),sel_values[0]);
						}
						
					}else{ //if not on sale
						
						if (product_var[atn].attr_value5!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4 + " - " + product_var[atn].attr_value5),sel_values[0]);
						}
						else if (product_var[atn].attr_value4!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4),sel_values[0]);
						}
						else if (product_var[atn].attr_value3!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3),sel_values[0]);
						}
						else if (product_var[atn].attr_value2!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2),sel_values[0]);
						}
						else{
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1),sel_values[0]);
						}
					}// end if (on_sale=="True")
					
				}else{ //if not using variant pricing
					if (product_var[atn].avail_msg==""){
						product_var[atn].avail_msg="";
					}
										
					if (product_var[atn].attr_value5!=""){
						writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4 + " - " + product_var[atn].attr_value5),sel_values[0]);
					}
					else if (product_var[atn].attr_value4!=""){
						writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4),sel_values[0]);
					}
					else if (product_var[atn].attr_value3!=""){
						writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3),sel_values[0]);
					}
					else if (product_var[atn].attr_value2!=""){
						writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2),sel_values[0]);
					}
					else if (product_var[atn].attr_value1!=""){
						writeoption(product_var[atn].sku,(product_var[atn].attr_value1),sel_values[0]);
					}
					else{
						if (product_var[atn].attr_value5!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4 + " - " + product_var[atn].attr_value5),sel_values[0]);
						}
						else if (product_var[atn].attr_value4!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3 + " - " + product_var[atn].attr_value4),sel_values[0]);
						}
						else if (product_var[atn].attr_value3!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2 + " - " + product_var[atn].attr_value3),sel_values[0]);
						}
						else if (product_var[atn].attr_value2!=""){
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1 + " - " + product_var[atn].attr_value2),sel_values[0]);
						}
						else{
							writeoption(product_var[atn].sku,(product_var[atn].attr_value1),sel_values[0]);
						}
					}
				}// end if (useVariantPrice=="True")
				*/
			} //end if (product_var[atn].avail>0)
		}// end for
		
		//only close the select if the select was opened
		if(displaySelect==1) 
		{
			document.write("</SELECT>");	
		}
		else
		{
			document.write("<TD class=ProductAttrlabel>This product is currently out of stock.");
		}
		
		document.write("</TD>");	
		document.write("</TR></TABLE>");
		
	}else if(product_var.length==1){
		
	
		document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>");
		
		
		if (product_var[0].avail>0){
			//set flag
			isAvail = true;
			
			i=0;
			var attTemp;
			
			while (attr_label[i]== "Size") { 		
				document.write("<TR VALIGN=TOP >");
				document.write("<TD class=ProductAttrlabel >" + attr_label[i] + " </TD><TD>");
				attTemp = eval("product_var[0].attr_value"+ (i+1));
				document.write("&nbsp;" + attTemp + "&nbsp;");
				document.write("</TD></tr>");
				i++;
			}
		}
		else{
		document.write("<TR VALIGN=TOP >");
		document.write("<TD class=ProductAttrlabel></TD><TD>");
		document.write("&nbsp;</TD>");
		document.write("</TR>");
		}
		
		document.write("<TR VALIGN=TOP >");
		document.write("<INPUT TYPE=HIDDEN  NAME=sku VALUE=\"" + product_var[0].sku + "\" >");
		document.write("</TR></TABLE>");
	} // end if (product_var.length >= 1 )
	
} //end draw_sku_option


function draw_related(){
	var prodlink="";
	//page_option_4: 0=horizontal 1=vertical
	
	if (nRelated>0)
	{
		document.write("<Table border=0 cellpadding=2 cellspacing=2 width=\"100%\"><TR>");
		for (atn=0;atn< nRelated ;atn++)
		{
			prodlink="<A HREF=\"product.asp?pf_id=" + Related_prod[atn].pf_id + "&dept_id=" + Related_prod[atn].dept_id + "&\" onClick=\"return(visitargs('product.asp','pf_id=" + Related_prod[atn].pf_id + "&dept_id=" + Related_prod[atn].dept_id + "&'));\">";
			if (page_option_4==1){
			document.write("<TD class=relProduct WIDTH=\"100%\" VALIGN=TOP ALIGN=CENTER>");
			}else{
			document.write("<TD class=relProduct VALIGN=TOP ALIGN=CENTER>");
			}
			//product image & link
			if ((Related_prod[atn].image!="")&&(rel_image_enable!="NONE")){
			document.write(prodlink);
			if (rel_image_width !=""){
			document.write("<img ALIGN=CENTER WIDTH =\"" + rel_image_width + "\" BORDER=0  VSPACE=0  HSPACE=0  ALT=\"" + Related_prod[atn].name + "\" SRC=\"assets/product_images/" + Related_prod[atn].image + "\"><\/A>");
			}else{
			document.write("<img ALIGN=CENTER WIDTH =\"" + Related_prod[atn].width + "\" BORDER=0  VSPACE=0  HSPACE=0  ALT=\"" + Related_prod[atn].name + "\" SRC=\"assets/product_images/"+ Related_prod[atn].image +"\"><\/A>");
			}
			if (page_option_4==1){
			document.write("<\/TD><\/TR><TR class=relProduct><TD class=relProduct WIDTH=100% VALIGN=TOP ALIGN=CENTER>");
			}else{
			document.write("<BR>");
			}
			}
			
			//product name link
			document.write(prodlink + Related_prod[atn].name + "<\/A>");
			
			//product price (if enabled)
			if ((page_option_5==1)&&(Related_prod[atn].list_price!="")){
			if (Related_prod[atn].sale_price!="" && Related_prod[atn].sale_price < Related_prod[atn].list_price){
			document.write("<font class=ListPricewSaleR>" + rel_list_pricelab + Related_prod[atn].list_price + " <\/font>");
			document.write("<font class=SalePriceR>" + rel_sale_pricelab + Related_prod[atn].sale_price + " <\/B><\/font>");
			}else{
			document.write("<font class=ListPricewoSaleR>" + rel_our_pricelab + Related_prod[atn].list_price + " <\/font>");
			}
			}
			document.write("<\/TD>");
			if (page_option_4!=1){
			if ((atn+1)%3==0){
			if((atn+1)%3==0&&(atn+1)!==nRelated){
			document.write("</tr>");
			}
			}
			}
		if (page_option_4==1){document.write("<\/TR>");}
		}
		document.write("<\/Table>");
	}
}//end function draw_related


//get all sale and list prices for each product
function getPrices()
{
	for (atn=0;atn< product_var.length ;atn++){
		if (product_var[atn].avail>0){
			//add sale price to sale price holder to determine prices to show
			if (on_sale=="True"){	addSalePriceStr(product_var[atn].price_sale); }
			
			//add regular price to regular price holder to determine prices to show
			addPriceStr(product_var[atn].price_list);
		} //end if product available
	}//end for
}

//collect all sale prices to determine ranges to show based on products/attribs available and shown in dropdown
var arrSalePrice = new Array();
function addSalePriceStr(price)
{
	arrSalePrice[arrSalePrice.length] = price;

	return;
}

//collect all regular/list prices to determine ranges to show based on products/attribs available and shown in dropdown
var arrPrice = new Array();
function addPriceStr(price)
{
	arrPrice[arrPrice.length] = price;

	return;
}

//show prices
function getPriceStr()
{
  //get all the prices
  getPrices();
  
  var price_str = "<br><span class=ListPricewoSale>Price ";
  //regular/list price
  if (arrPrice.length>0)
  {
    arrPrice.sort(integer_sort);
    var minp = arrPrice[0];
    var maxp = arrPrice[arrPrice.length-1];
    if (minp == maxp)
    {
      price_str += "$" + OKStrOfPenny(minp);
    }else{
      price_str += "Ranging from $" + OKStrOfPenny(minp) + " to $" + OKStrOfPenny(maxp);
    }
    price_str += "</span>";
  }else{
    price_str = product_price;
  }
    
  //sale price
  if (arrSalePrice.length>0)
  {
	price_str += "<br><span class=SalePrice>Sale Price ";
    arrSalePrice.sort(integer_sort);
    var minp = arrSalePrice[0];
    var maxp = arrSalePrice[arrSalePrice.length-1];
    if (minp == maxp)
    {
      price_str += "$" + OKStrOfPenny(minp);
    }else{
      price_str += "Ranging from $" + OKStrOfPenny(minp) + " to $" + OKStrOfPenny(maxp);
    }
    price_str += "</span>";
  }else{
    price_str = product_price;
  }
  
  return price_str;
}

function argschange(attr){
	// false tells the browser to ignore the default action entirely
	return(false);	
}
function popargs(dept_id,pf_id){
	// false tells the browser to ignore the default action entirely
	return(false);	
}

//--------------------------------
// Structures
//--------------------------------
function PImage()
{
	this.image
	this.image_show
	this.align
	this.width
	this.alt_text
	this.scr
	this.target
}

function XLINK()
{
	this.pf_id
	this.dept_id
	this.name
	this.short_description
	this.image
	this.image2
}

function Sku()
{
	this.sku
	this.attr_value1
	this.attr_value2
	this.attr_value3
	this.attr_value4
	this.attr_value5
	this.price_list
	this.price_sale
	this.price_MSRP
	this.avail
	this.avail_msg
}

function Attrbute()
{
	this.attname
	this.attvalue
}

function RelSku()
{
	this.sku
	this.attr_value1
	this.attr_value2
	this.attr_value3
	this.attr_value4
	this.attr_value5
	this.price_list
	this.price_sale
	this.price_MSRP
	this.avail
	this.avail_msg
}
function Related()
{
	this.pf_id
	this.dept_id
	this.name
	this.image
	this.onsale
	this.MSRP_price
	this.list_price
	this.sale_price
	this.skus	
}
function searchable_attr_struct(){
	this.sku
	this.name
	this.value
}
//-->	