function enlarge(src){
window.open("images/" + src+".jpg","","width=355,height=329");
}

function enlarge2(src,w,h){
window.open("images/" + src+"_large.jpg","","width="+w+",height="+h+",menu=0");
}


function orderShoe(pID,vID){
var productID = pID;
var vendorID = document.getElementById(vID)[document.getElementById(vID).selectedIndex].value;
//alert(vID + "  : " + vendorID + "  :  " + pID);
if(vendorID == "W5" || vendorID == "W6" || vendorID == "W7" || vendorID == "W8" || vendorID == "W9" || vendorID == "W10") {
	productID = "2123";
	vendorID = vID+"_"+vendorID;
	
} else if(vendorID == "B5" || vendorID == "B6" || vendorID == "B7" || vendorID == "B8" || vendorID == "B9" || vendorID == "B10") {
	productID = "2124";
	vendorID = vID+"_"+vendorID;
} 
else if (vendorID == "R5" || vendorID == "R6" || vendorID == "R7" || vendorID == "R8" || vendorID == "R9" || vendorID == "R10")
{	
	productID = "2116";
	vendorID = vID+"_"+vendorID;
}

var vURL = "https://secure.infomercial.tv/www_v2/addToCart.asp?prodId="+productID+"&vendorId="+vendorID+"&TemplateId=1931&Network=1&SessionID=<cfoutput>#cookie.aff_session#&source=#cookie.aff_source#</cfoutput>&SiteId=237"
document.location = vURL;

}
function orderShorts(pID,vID){
var productID = pID;
var color = document.getElementById(vID)[document.getElementById(vID).selectedIndex].value;

vendorID = "boyshorts_"+ vID + color;
//alert (productID + "    " + vendorID);

var vURL = "https://secure.infomercial.tv/www_v2/addToCart.asp?prodId="+productID+"&vendorId="+vendorID+"&TemplateId=1931&Network=1&SessionID=<cfoutput>#cookie.aff_session#&source=#cookie.aff_source#</cfoutput>&SiteId=237"
document.location = vURL;

}

function orderPants(pID,vID){
var productID = pID;
var size = document.getElementById(vID)[document.getElementById(vID).selectedIndex].value;

vendorID = "yoga_pants"+ size;
//alert (productID + "    " + vendorID);

var vURL = "https://secure.infomercial.tv/www_v2/addToCart.asp?prodId="+productID+"&vendorId="+vendorID+"&TemplateId=1931&Network=1&SessionID=<cfoutput>#cookie.aff_session#&source=#cookie.aff_source#</cfoutput>&SiteId=237"
document.location = vURL;

}

function orderShirt2(pID,vID){
var productID = pID;
var color = document.getElementById(vID)[document.getElementById(vID).selectedIndex].value;
var size = document.getElementById(vID+"_size")[document.getElementById(vID+"_size").selectedIndex].value;
vendorID = "exotic_"+ vID + color +  size;
//alert(productID + "    " + vendorID);
//vendorID = "exotic_camisole1_black_xl";
var vURL = "https://secure.infomercial.tv/www_v2/addToCart.asp?prodId="+productID+"&vendorId="+vendorID+"&TemplateId=1931&Network=1&SessionID=<cfoutput>#cookie.aff_session#&source=#cookie.aff_source#</cfoutput>&SiteId=237"
//alert(vURL);
document.location = vURL;
}


function orderShirt(vID){

var color = document.getElementById(vID)[document.getElementById(vID).selectedIndex].value;
var size = document.getElementById(vID+"_size")[document.getElementById(vID+"_size").selectedIndex].value;

var suf = "";
if (size == 2311 || size == 2314 || size == 2312){
	suf = "";
} else if (size == 2322 || size == 2319 || size == 2325){
	suf = "_m";
} else if (size == 2323 || size == 2320 || size == 2326){
	suf = "_l";
}else if (size == 2324 || size == 2321 || size == 2327){
	suf = "_xl";
}



vendorID = "exotic_"+ vID + color + suf;
//alert (vendorID);

var vURL = "https://secure.infomercial.tv/www_v2/addToCart.asp?prodId="+size+"&vendorId="+vendorID+"&TemplateId=1931&Network=1&SessionID=<cfoutput>#cookie.aff_session#&source=#cookie.aff_source#</cfoutput>&SiteId=237"
//alert(vURL);
document.location = vURL;

}

/* Dance Poles Functions */

function orderPole(pID,vID){
var productID = pID;
var vendorID = document.getElementById(vID)[document.getElementById(vID).selectedIndex].value;


var vURL = "https://secure.infomercial.tv/www_v2/addToCart.asp?prodId="+productID+"&vendorId="+vendorID+"&TemplateId=1931&Network=1&SessionID=<cfoutput>#cookie.aff_session#&source=#cookie.aff_source#</cfoutput>&SiteId=237"
document.location = vURL;

}