arr=new Array();

arrCollection=new Array("access.html",
						"accessories_collection_4.html",
						"accessories_collection_2.html",
						"accessories_collection_1.html",
					//	"access_flora_bella.html",
					//	"access_pearled_elegance.html",
					//	"access_pearled_corners.html",
						"access_calla_lily.html",
                    	"access_grace.html",
                        "access_manhattan.html",
                        "access_lace.html",
						"access_monte_carlo.html",
						"access_venetian.html",
						"access_regalia.html",
						"access_florenzia.html",
						"access_eloquent.html",
						"access_savant.html",
						"access_crimson_rose.html",
						"access_serenade.html",
						"access_infinity.html",
						"access_crystal_shimmer.html",
						"access_alure.html",
						"access_silver_leaf.html",
						"access_hearts_roses.html",
						"access_vintage.html",
						"access_seashore.html",
						"access_cherub_tassel.html",
						"access_sophisticate.html",
						"access_amour.html",
						"access_tres_beau.html",
						"access_springtime.html",
						"access_celebrity.html",
						"access_audrey.html",
						"access_simplicity.html",
						"access_classique.html",
						"access_glamour.html",
						"access_love_knot.html",
						"access_english_garden.html",
						"access_flutes_1.html",
						"access_knifes.html",
						"access_cake_top_1.html");	
											
						//"access_something_blue.html",
						//"access_collection_3.html",
						//"access_whisper.html",
						//"access_opulence.html",
						//"access_caress.html",

function ck(form,arrName){
	for (i=0; i<arrName.length; i++){
		if(form.access[i].selected)
		break;
		}
	ckvalue=i
if(ckvalue!=0){
	window.location=arrName[i-1];
	}
}

function forword(){
	for(i=0; i<arrCollection.length; i++)
		if(window.location.href.indexOf(arrCollection[i])!=-1)
			window.location=arrCollection[i+1]
}

function backword(){
	for(i=0; i<arrCollection.length; i++)
		if(window.location.href.indexOf(arrCollection[i])!=-1)			
			window.location=arrCollection[i-1]
}

function dropdown_menu_collection(){
	var menu="";
		menu+="<FORM name=form1>"
		menu+="<SELECT name=access onchange='ck(this.form,arrCollection)'>"
		menu+="<OPTION>Select your Wedding Accessories</OPTION>"
		menu+="<OPTION>Collections page 1- Index</OPTION>"
		menu+="<OPTION>Collections page 2- Index</OPTION>"
		menu+="<OPTION>Collections page 3- Index</OPTION>"
		menu+="<OPTION>Collections page 4- Index</OPTION>"
		menu+="<OPTION>Calla Lily Collection</OPTION>"	
		menu+="<OPTION>Grace Collection </OPTION>"	
		menu+="<OPTION>Manhattan Collection</OPTION>"	
		menu+="<OPTION>Lace Collection</OPTION>"	
		menu+="<OPTION>Monte Carlo collection</OPTION>"	
		menu+="<OPTION>Venetian collection</OPTION>"
		menu+="<OPTION>Regalia collection</OPTION>"
		menu+="<OPTION>Florenzia collection</OPTION>"
		menu+="<OPTION>Eloquent collection</OPTION>"
		menu+="<OPTION>Savant collection</OPTION>"
		menu+="<OPTION>Crimson Rose collection</OPTION>"
		menu+="<OPTION>Serenade collection</OPTION>"
		menu+="<OPTION>Infinity collection</OPTION>"
		menu+="<OPTION>Crystal Shimmer collection</OPTION>"
		menu+="<OPTION>Allure collection</OPTION>"
	    menu+="<OPTION>Silver Leaf collection</OPTION>"
		menu+="<OPTION>Heart & Roses collection</OPTION>"
		menu+="<OPTION>Vintage collection</OPTION>"
		menu+="<OPTION>Seashore collection</OPTION>"
		menu+="<OPTION>Cherub Tassel collection</OPTION>"
		menu+="<OPTION>Sophisticate collection</OPTION>"
		menu+="<OPTION>Amour collection</OPTION>"
		menu+="<OPTION>Tres Beau collection</OPTION>"
		menu+="<OPTION>Springtime collection</OPTION>"
		menu+="<OPTION>Celebrity collection</OPTION>"
		menu+="<OPTION>Audrey collection</OPTION>" 
		menu+="<OPTION>Simplicity collection</OPTION>"
		menu+="<OPTION>Classique collection</OPTION>"
				menu+="<OPTION>Glamour collection</OPTION>"
		menu+="<OPTION>Love Knot collection</OPTION>"
		menu+="<OPTION>English Garden collection</OPTION>"
		menu+="<OPTION>Flutes</OPTION>"
		menu+="<OPTION>Cake Knifes and Server Sets</OPTION>"
		menu+="<OPTION>Cake Tops</OPTION>"
		menu+="</SELECT></FORM>"

	document.write(menu);
	for(i=1; i<arrCollection.length; i++){
		if(window.location.href.indexOf(arrCollection[i])!=-1){
			document.form1.access.options[i+1].selected=true;
		}
	}
}

function item(product,style,description,color,price){
	this.product=product;
	this.style=style;
	this.description=description;
	this.color=color;
	this.price=price;
	if(item.arguments[5]!=null)
		this.picture=item.arguments[5];

}

function writeItems(){
var str="";

returnValue="";
	for(arri=0; arri<arr.length; arri++){
			if(window.location.href.indexOf(arr[arri])!=-1){
				returnValue=arr[arri];
			}
	}
	if(returnValue==""){
		for(arri=0; arri<arrCollection.length; arri++){
			if(window.location.href.indexOf(arrCollection[arri])!=-1){
				returnValue=arrCollection[arri];
			}
		}
	}

if (returnValue=="" || returnValue=="access_flutes_1.html" || returnValue=="access_knifes.html" || returnValue=="access_cake_top_1.html" || returnValue=="bears.html")
	valueOfRow="";
else
	valueOfRow="<TR>";


for(itemsLength=0; itemsLength<arguments.length; itemsLength++){
	itemI=arguments[itemsLength]

str+=valueOfRow;
str+='<FORM method="POST" action="http://www.mikawed.com">';
if (returnValue!="")
	str+="<TD valign=top colspan=2>";
str+="<input type=hidden name=name value='" + itemI.product +" "+ itemI.style+"'>"
str+="<input type=hidden name=price value='" + itemI.price +"'>"
str+="<input type=hidden name=sh value='1.983'>"
str+="<input type=hidden name=return value='http://www.mikawed.com/" + returnValue +"'>"
str+="<B>" + itemI.style +"</B>"

if(itemI.description!="")
	str+="<BR>"+itemI.description;

if(itemI.color!=""){
	str+="<BR>Color: ";
	var splitArrItem=itemI.color.split("|")
	if (splitArrItem.length==1){
		str+="<input type=hidden name=custom2 value='Color: " + splitArrItem[0] +"'>";
		str+=splitArrItem[0];
	}
	else{
		str+="<SELECT name=custom2>"
		for(s=0; s<splitArrItem.length; s++){
			str+="<option value='Color: "+splitArrItem[s]+"'>"+splitArrItem[s]
		}
	str+="</select>"
	}
}

//str+="</TD><TD valign='bottom'>"
str+="<BR><BR><center>Price: $"+itemI.price+".00"
str+="<BR><BR><input type=hidden name=add value=1'>"
//str+="<input type=image name=Order src='http://www.mikawed.com/cart/cart_add.gif' border=0>"
//str+="<BR>"
//str+="<a href='http://www.mikawed.com'><img src='http://www.mikawed.com/cart/cart_view.gif' border=0></a>"
str+="</center>";
if (returnValue=!"")
	str+="</TD>"
str+="</form>"
	}
document.write(str);
}

function printPicture(pictureName){
	PictureStr1="";
	PictureStr1+="<A HREF='http://www.mikawed.com/pic/accessories/"+pictureName+"' target='_blank'>";
	PictureStr1+="<IMG src='http://www.mikawed.com/pic/accessories/"+pictureName+"' width=200>";
	PictureStr1+="</A>";
	document.write(PictureStr1);
}
	
