

/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequest();
}
return request_type;F
}


var http = createObject();

var nocache = 0;







function winelearnmoreexpansion(intProductId, intCategoryId) {

nocache = Math.random();

http.open('get', '/ajax.cfm?page=productexpanded&intProductId='+intProductId+'&intCategoryId='+intCategoryId+'&nocache='+nocache);
http.onreadystatechange = function() {

 if(http.readyState == 4){ 

document.getElementById('showwineexpander'+intProductId).innerHTML = http.responseText;


nocache = Math.random();

http.open('get', '/ajax.cfm?page=ProductThumbnails&intProductId='+intProductId+'&intCategoryId='+intCategoryId+'&nocache='+nocache);
http.onreadystatechange = function() {

 if(http.readyState == 4){ 

document.getElementById('showwineexpanderthumbs'+intProductId).innerHTML = http.responseText;

 }

};


http.send(null);


 }

};






http.send(null);
}






function closewineexpander(intProductId, intCategoryId) {

nocache = Math.random();

http.open('get', '/ajax.cfm?page=product_closed&intProductId='+intProductId+'&intCategoryId='+intCategoryId+'&nocache='+nocache);
http.onreadystatechange = function() {

 if(http.readyState == 4){ 

document.getElementById('showwineexpander'+intProductId).innerHTML = http.responseText;
document.getElementById('showwineexpanderthumbs'+intProductId).innerHTML = '';
 }

};
http.send(null);
}










