
function openWindow(theURL, width, height, features, winName) { //v2.0
	if(typeof(width) == "undefined" || width == 0){
		width = 500;
	}
	
	if(typeof(height) == "undefined" || height == 0){
		height = 500;
	}
	
	if(typeof(features) == "undefined" || features == ""){
		features = "status=yes,menubar=no,scrollbars=yes,resizable=yes";
	}
	
	features = features + ', width = ' + width + ', height = ' + height;
	
  window.open(theURL,winName,features);
}

/*
//switch image (f.g. amazon)
//@require jquery
$(function(){
	
	//if($("#detailother")){
		$("ul#detailother li").hover(function(){
			 var other = $("img", $(this));
			 var dtlimg =  $('div.dtl_box div.img p img.picture');
			 dtlimg.attr('osrc', dtlimg.attr('src'));
			 dtlimg.attr('src', other.attr('osrc'));
		},
		function(){
			 var dtlimg =  $('div.dtl_box div.img p img.picture');
			 dtlimg.attr('src', dtlimg.attr('osrc'));
		});	
	//}

});
*/