function RetailerWebsite(ddlBuyNow,colorid,isunique)
	{
		var clientId = ddlBuyNow.options[ddlBuyNow.selectedIndex].value;
		if(clientId == "-1")
		{
		    window.location = "where-to-buy.aspx";
		    return;
		}
		if (clientId != "0" && clientId !="-1")
		{
		    var redirpath = "buynow.axd?client="+clientId+"&color="+colorid+"&unique="+isunique;
		    window.open(redirpath);
		}
		else
		{
		    ddlBuyNow.selectedIndex = 0;
		}
	}

//Placeholder functions for buynow buttons	
function buynow_open(el){}
function buynow_close(el){}
function closeOther(el){}
/*******************************************/
	
function ShowImage(myImageLink) {
    var myImage = myImageLink.href;
    var capt = "";
    var height = "650";
    var width = "650";
    var windowWidth = "670";
    var imgs = myImageLink.getElementsByTagName("img");
    if (imgs.length > 0)
    {
        capt = imgs[0].alt;
        height = (imgs[0].height * 5) + 150;
        width = imgs[0].width * 5;
        windowWidth = (imgs[0].width * 5) + 20;
    
    
     var displayimg=new Image();
        displayimg.src=myImage;
        if ( displayimg.width > 0 & displayimg.height > 0)
        {
            width = displayimg.width;
            height = displayimg.height + 150;
            windowWidth = width + 20;
        }
       
    }
   
    TheImgWin = window.open('', 'child', 'height=' + height + ',width= ' + windowWidth);

    var str = '<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN" "http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd"><html xmlns="http:\/\/www.w3.org\/1999\/xhtml">';
    str += '<head><title><\/title><\/head>';
    str += '<body style="overflow:hidden;" bgcolor="#ffffff">';
    str += '<div style="text-align:center; margin:10px 15px 0 2px; font-family: Verdana, Arial; font-size: 11pt;"><img src="'+myImage+'" border="0" width="'+width+'"  alt="'+capt+'">';
    str += '<p>'+capt+'<\/p>';
    str += '<div style="font-size: .8em;"><a href="javascript:window.close();"><font color="#663399">Close<\/font><\/a><\/div><\/div>';
    str += '<\/body><\/html>';
    TheImgWin.document.open();
    TheImgWin.document.writeln(str);
    TheImgWin.document.close();
    TheImgWin.focus();

    return false;
}

function ImgError(source){
        source.src = "images/flashDummy.jpg";
        source.onerror = "";
        return true;
}


